OpenCode
Use the Context212 MCP server directly from OpenCode.
Prerequisites
- OpenCode installed
- A Context212 API key from the Context212 Console
Configuration
Authenticate, then set up OpenCode:
npx ctx212 auth login
npx ctx212 setup --opencodeThis writes the MCP config (stdio via ctx212 mcp), installs the Context212 skill, and adds an agent rule. Use --project to scope the setup to the current project instead of globally.
Verification
-
List all configured MCP servers:
opencode mcp list -
Confirm
context212appears and shows as authenticated. -
Test the connection with a prompt like:
Search my Context212 workspaces for documents about [topic]
You're all set. From any OpenCode session you can now ask it to search or ingest documents in your Context212 workspaces directly.