Skip to content

OpenCode

This connects OpenCode to the Halyard MCP server so the agent can search knowledge, ask experts, and capture answers. For developers wiring up a single client.

Add the Halyard server to your opencode.json:

opencode.json
{
"mcp": {
"halyard": {
"type": "remote",
"url": "https://mcp.usehalyard.ai",
"enabled": true
}
}
}

Authorize the server with OpenCode’s auth command:

Terminal window
opencode mcp auth halyard

This opens a browser to authorize against your Halyard account. Approve it once; the bearer token is then attached to every request.

Ask the agent to identify you and run a search:

Use Halyard to tell me who I am, then search the knowledge base for our most recent decision.

Expect a whoami call returning your user and organization, followed by a search_knowledge call. If the tools do not appear, see Troubleshooting.