Connect OpenCode to Harvey
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Harvey
A preset of real Harvey operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Harvey
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
Harvey
23 toolsList Vault Projects and Knowledge Bases. https://developers.harvey.ai/api-reference/vault/list-vault-projects-and-knowledge-bases
List Vaults in the Recycle Bin. https://developers.harvey.ai/api-reference/vault/list-vaults-in-the-recycle-bin
Get Vault Project Metadata. https://developers.harvey.ai/api-reference/vault/get-vault-project-metadata
Get Review Table Metadata. https://developers.harvey.ai/api-reference/vault/get-review-table-metadata
Get File Details. https://developers.harvey.ai/api-reference/vault/get-file-details
Get Review Table Row Details. https://developers.harvey.ai/api-reference/vault/get-review-table-row-details
Add Row to Review Table. https://developers.harvey.ai/api-reference/vault/add-row-to-review-table
List Files in a Vault Project. https://developers.harvey.ai/api-reference/vault/list-files-in-a-vault-project
List Project Users. https://developers.harvey.ai/api-reference/vault/list-project-users
Create a new Vault project. https://developers.harvey.ai/api-reference/vault/create-a-new-vault-project
Semantic search over a vault project. https://developers.harvey.ai/api-reference/vault/semantic-search-over-a-vault-project
Delete a file from a Vault project. https://developers.harvey.ai/api-reference/vault/delete-a-file-from-a-vault-project
Delete an entire vault project and all its contents. https://developers.harvey.ai/api-reference/vault/delete-an-entire-vault-project-and-all-its-contents
Get Client Matters. https://developers.harvey.ai/api-reference/retrieve/get-client-matters
Upsert Clients. https://developers.harvey.ai/api-reference/upsert/upsert-clients
Delete Clients. https://developers.harvey.ai/api-reference/delete/delete-clients
Upsert Matters. https://developers.harvey.ai/api-reference/upsert/upsert-matters
Delete Matters. https://developers.harvey.ai/api-reference/delete/delete-matters
Create Request. https://developers.harvey.ai/api-reference/intake/create-request
List Requests. https://developers.harvey.ai/api-reference/intake/list-requests
Get Request. https://developers.harvey.ai/api-reference/intake/get-request
Update Request. https://developers.harvey.ai/api-reference/intake/update-request
List Comments. https://developers.harvey.ai/api-reference/intake/list-comments
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use Harvey with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Harvey wired in as tools. Connect your account and run.