How-to guides

Add MCP servers

Declare an MCP server once, and let sync install it in every agent in that agent's format.

Steps

  1. Add an entry to the layer’s config/mcp.json.
    • A local server has command, and optional args and env.
    • A remote server has url, and optional headers.
    config/mcp.jsonJSON
    {
      "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] },
      "docs": { "url": "https://example.com/mcp" }
    }
  2. Commit and push the layer, then run /tackOS-sync.

Sync writes the server into Claude Code’s ~/.claude.json and opencode’s opencode.json, each in its own format.

Keep secrets out

Layers are committed, so never put a secret in config/mcp.json.