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
- Add an entry to the layer’s
config/mcp.json.- A local server has
command, and optionalargsandenv. - A remote server has
url, and optionalheaders.
config/mcp.jsonJSON { "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] }, "docs": { "url": "https://example.com/mcp" } } - A local server has
- 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.