cd /news/agent-protocols/one-mcp-config-for-claude-code-openc… · home › topics › agent-protocols › article
[ARTICLE · art-153766] src=blog.devgenius.io ↗ pub= topic=agent-protocols verified=true sentiment=· neutral

One MCP config for Claude Code, OpenCode and OMP

A tool called ivar lets developers declare Figma and Linear MCP servers once in a hall's ivar.json and writes the matching config files for Claude Code, OpenCode and OMP, with `ivar sync` rewriting all three files after manual edits. `ivar mcp auth figma --all-providers` runs each harness's login in sequence, and `ivar mcp status` reports which server has credentials on which harness, with client secrets stored in .ivar/secrets/mcp.env outside git. The author says ivar is unnecessary for a single harness whose login works, but earns its place across multiple harnesses, shared team servers, or logins that fail, such as Figma on OpenCode and any OAuth server on OMP.

by read3 min views2 publishedOct 20, 2026

You use Claude Code for one task and OpenCode for another, and both should see the same Figma and Linear MCP servers. Each harness wants them in its own file, under its own keys:

Writing three files once is tedious. Keeping them equal is the real cost: change a URL in one, forget the others, and half your sessions start without the server. Then each harness needs its own login.

The files are the easy part. Authentication fails differently in each harness:

Where the harness’s own login works, ivar uses it. It only takes over where the harness cannot finish. Figma MCP on OpenCode: fix "Authentication failed" explains the Figma case in detail.

Install ivar, create a hall in an empty directory with the harnesses you use, and add the servers:

curl -fsSL 'https://ivar.run/install?ref=one-mcp-config' | shmkdir tools-hall && cd tools-hallivar init --provider claude-codeivar provider add opencodeivar provider add ompivar mcp add figmaivar mcp add linear

figma and linear are known names, so ivar mcp add fills in their URLs. Any other HTTP server takes --url, for example ivar mcp add sentry --url https://mcp.sentry.dev/mcp. Adding a server that is already declared the same way changes nothing; adding one with the same name and a different URL is refused instead of overwriting it.

The declaration lives in the hall’s ivar.json:

{  "mcp": [    { "name": "figma", "type": "http", "url": "https://mcp.figma.com/mcp" },    { "name": "linear", "type": "http", "url": "https://mcp.linear.app/mcp" }  ]}

ivar mcp add writes each harness's file from it on the spot. After you edit ivar.json by hand, ivar sync rewrites the three files to match.

ivar mcp auth figma --all-providersivar mcp auth linear --all-providersivar mcp status

--all-providers runs every harness the hall lists, one after the other, because each login takes over the terminal and waits on the browser. Every harness is attempted even if an earlier one fails, and the run is reported as needing attention when any of them does. When a client registration happens first, as with Figma on OpenCode, it is reported apart from the login: a registered client is not yet an authenticated one.

ivar mcp status prints which server has credentials on which harness. The client secret lives in .ivar/secrets/mcp.env, outside git. Tokens never go into ivar.json, so you can commit the file and a teammate gets the same servers after their own ivar mcp auth.

With one harness and a server whose login works there, no. Add the server to that harness’s file and run its login. ivar earns its place when you use more than one harness, when a team should share the same servers, or when the login fails, as it does for Figma on OpenCode and for any OAuth server on OMP.

The hall that holds your MCP servers is also where ivar mounts your repositories and runs a feature across them, with every session reading the same servers. The quickstart mounts the first repo. The MCP guide covers transports and OAuth per harness.

One MCP config for Claude Code, OpenCode and OMP was originally published in Dev Genius on Medium, where people are continuing the conversation by highlighting and responding to this story.

── more in #agent-protocols 4 stories · sorted by recency
── more on @ivar 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/one-mcp-config-for-c…] indexed:0 read:3min 2026-10-20 · —