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.
Configure
Section titled “Configure”Add the Halyard server to your opencode.json:
{ "mcp": { "halyard": { "type": "remote", "url": "https://mcp.usehalyard.ai", "enabled": true } }}Authorize
Section titled “Authorize”Authorize the server with OpenCode’s auth command:
opencode mcp auth halyardThis opens a browser to authorize against your Halyard account. Approve it once; the bearer token is then attached to every request.
Verify
Section titled “Verify”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.