opencode MCP client setup ​
opencode supports remote MCP servers and can run OAuth for those servers. It is a high-confidence smoke target for DCR and refresh-token behavior.
OAuth config ​
json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"orkestia-workflow": {
"type": "remote",
"url": "https://mcp.orkestia.dev/mcp",
"enabled": true
}
}
}Authenticate the server:
bash
opencode mcp auth orkestia-workflowHeader-token fallback ​
json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"orkestia-workflow": {
"type": "remote",
"url": "https://mcp.orkestia.dev/mcp",
"oauth": false,
"headers": {
"Authorization": "Bearer {env:ORKESTIA_AGENT_TOKEN}"
}
}
}
}Smoke test ​
- Run the auth command.
- Confirm
whoamiresolves the expected organization. - Wait for access-token expiry or force a refresh path and confirm no full reauth is required.
- Run
list_workflow_typesandget_workflow_schema.
