OpenCode

Use the Context212 MCP server directly from OpenCode.

Prerequisites

Configuration

Authenticate, then set up OpenCode:

npx ctx212 auth login
npx ctx212 setup --opencode

This 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

  1. List all configured MCP servers:

    opencode mcp list
  2. Confirm context212 appears and shows as authenticated.

  3. 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.

References

On this page