MCP servers in json form

Resolved 💬 2 comments Opened Sep 9, 2025 by kotsiosadmin Closed Nov 14, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

As the titles say is there a chance that this will be implemented? to be able to declare MCP servers using json format instead of the toml file.

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

dlukt · 11 months ago

The conversion is pretty straightforward
An example

{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}

becomes

[mcp_servers.shadcn]
command = "npx"
args = ["shadcn@latest", "mcp"]
etraut-openai contributor · 9 months ago

I think this feature request is already captured in #2630, so I'm going to close this one to reduce duplication.