Skip to main content
CodeLint.Dev AI · Dev · Finance

MCP Config Generator & Validator

Describe an MCP server once and get the exact configuration for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI and Codex. Or paste a config you already have and find out why the server is not loading.

Load example:

Server definition

The key used in every config file. Letters, numbers, hyphens.

Transport
Headers

None. Leave empty for a public server or one that signs you in with OAuth.

Write ${NAME} in a value to read it from an environment variable. Each tab rewrites it into that client's own syntax, or tells you when the client has none.

Servers live under: mcpServers

Command

Writes to local scope: this project only, private to you, stored in ~/.claude.json. Add --scope project to write .mcp.json instead, or --scope user for all your projects.

claude mcp add --transport http codelint https://codelint.dev/mcp

.mcp.json (project scope)

Project root, committed
.mcp.json
{
  "mcpServers": {
    "codelint": {
      "type": "http",
      "url": "https://codelint.dev/mcp"
    }
  }
}
  • Check the connection with: claude mcp get codelint. Servers from a project's .mcp.json stay at "Pending approval" until you approve them in an interactive session.
  • In JSON, a remote entry must have "type". Claude Code reads an entry with a "url" and no "type" as a stdio server and skips it.

Config file, top-level key and remote support by client

Six of the seven clients read JSON under the same wrapper key, which is why a config copied between them looks right and still fails. The differences are in the last column.

ClientConfig fileServers live underRemote server in the file
Claude Desktopclaude_desktop_config.json in ~/Library/Application Support/Claude/ (macOS), %APPDATA%\Claude\ (Windows), ~/.config/Claude/ (Linux)mcpServersNo. The file is for local stdio servers. Remote servers are added in the app as custom connectors.
Claude Code.mcp.json at the project root (project scope); ~/.claude.json (local and user scope)mcpServersYes: "type": "http", url, headers. An entry with a url and no type is skipped.
Cursor.cursor/mcp.json (project); ~/.cursor/mcp.json (global)mcpServersYes: url and headers. No transport field; the same key serves Streamable HTTP and SSE.
VS Code, Copilot harness.mcp.json at the workspace root; ~/.copilot/mcp-config.jsonmcpServersYes: "type": "http" or "sse", url, headers.
VS Code, Local harness (deprecated).vscode/mcp.json; user-profile mcp.jsonserversYes, same fields. type is required on every entry, local or remote.
Devin Desktop (formerly Windsurf).devin/mcp_config.json; ~/.config/devin/mcp_config.jsonmcpServersYes: url, headers, optional "transport": "http" or "sse".
Gemini CLI~/.gemini/settings.json; .gemini/settings.jsonmcpServersYes: httpUrl for Streamable HTTP, url for SSE, plus headers.
Codex~/.codex/config.toml; .codex/config.toml in trusted projects[mcp_servers.<name>] (TOML)Streamable HTTP only: url, bearer_token_env_var, http_headers, env_http_headers.

Read from each client's documentation on 22 November 2026.

The same server in three formats

CodeLint.Dev runs a public MCP server at https://codelint.dev/mcp. It speaks Streamable HTTP and needs no credentials. This is that one server, three ways.

Claude Code — .mcp.json
{
  "mcpServers": {
    "codelint": {
      "type": "http",
      "url": "https://codelint.dev/mcp"
    }
  }
}
Gemini CLI — ~/.gemini/settings.json
{
  "mcpServers": {
    "codelint": {
      "httpUrl": "https://codelint.dev/mcp"
    }
  }
}
Codex — ~/.codex/config.toml
[mcp_servers.codelint]
url = "https://codelint.dev/mcp"

Two formats that moved in 2026

VS Code. Guides written before 2026 say that VS Code is the odd one out: .vscode/mcp.json, a top-level servers key, a mandatory type, and ${input:id} prompts for secrets. That file still works, but the VS Code reference now files it under the Local harness, which is deprecated and scheduled for removal in February 2027. The Copilot harness reads a workspace-root .mcp.json or ~/.copilot/mcp-config.json with a top-level mcpServers object, uses ${NAME} for environment references, and supports neither input prompts nor envFile. The workspace file has the same name and wrapper key as Claude Code's project file.

Windsurf. The editor is now Devin Desktop and Cascade is its legacy agent. The config moved from ~/.codeium/windsurf/mcp_config.json to .devin/mcp_config.json and ~/.config/devin/mcp_config.json, and the current documentation spells the remote field url, where Cascade's examples used serverUrl.

Failure modes and what causes them

Most MCP setup failures are configuration, not protocol.

MCP server "<name>" has a "url" but no "type"; add "type": "http" (or "sse" / "ws") to this entry

Cause: Claude Code reads a JSON entry with no "type" as a stdio server. A remote entry copied from a Cursor or Devin config has only "url", so Claude Code skips it.

Fix: Add "type": "http" to the entry, or "sse" for an older endpoint.

Server missing from Claude Desktop after editing claude_desktop_config.json

Cause: The file is read at launch, a JSON syntax error stops it loading, and paths in args must be absolute.

Fix: Quit and restart the app completely, validate the JSON, then read mcp.log and mcp-server-<name>.log in ~/Library/Logs/Claude (macOS) or %APPDATA%\Claude\logs (Windows).

ENOENT in the server log with ${APPDATA} in a path (Windows, npx)

Cause: The MCP documentation ties this to %APPDATA% not being expanded for the server process. npx can also keep failing when npm is not installed globally.

Fix: Add "APPDATA": "C:\\Users\\<you>\\AppData\\Roaming" to the server's "env" block and confirm %APPDATA%\npm exists. This is the Windows guidance in the MCP documentation.

Server defined in .vscode/mcp.json never appears

Cause: The file was written with "mcpServers", or an entry has no "type". That file expects "servers" and a "type" on every entry.

Fix: Rename the key and add the type, or move the definition to a workspace-root .mcp.json.

Gemini CLI cannot connect to a Streamable HTTP server

Cause: The endpoint is under "url". Gemini CLI picks the transport from the property name, and "url" means SSE.

Fix: Rename the property to "httpUrl", or add the server with gemini mcp add --transport http <name> <url>.

Leading or trailing whitespace in: headers.Authorization

Cause: A token was pasted with a trailing newline or space. Claude Code warns in claude mcp list but does not trim, so the value is used exactly as written.

Fix: Remove the whitespace from the value in the config, or from the environment variable it references.

stdio, Streamable HTTP or SSE

The specification defines two standard transports. The third still appears in client settings because older servers have not moved.

  • stdio —The client starts the server as a subprocess and exchanges newline-delimited JSON-RPC over stdin and stdout. Use it for anything that needs your machine: files, a local database, a CLI. Credentials go in env.
  • Streamable HTTP —One HTTP endpoint that the client POSTs to. Use it for anything hosted. It replaced HTTP+SSE in the 2025-03-26 revision of the specification.
  • SSE —The HTTP+SSE transport from protocol version 2024-11-05, now deprecated. Choose it only when a server offers nothing else. Claude Code, VS Code and Devin try Streamable HTTP first and fall back to SSE on the same URL; Gemini CLI needs the endpoint under url; Codex does not list it.

About

MCP clients agree on the protocol and disagree on the config file. The same server is a "mcpServers" entry in Claude Desktop, a "servers" entry with a mandatory "type" in .vscode/mcp.json, an "httpUrl" in Gemini CLI and a TOML table in Codex. This tool takes one server definition (a stdio command with arguments and environment variables, or a remote URL with headers) and writes the configuration for seven clients, with the file path on each operating system and the equivalent CLI command. Validate mode does the reverse: paste an existing config and it identifies the format, reports JSON or TOML syntax errors with line and column, and checks each server for missing fields, wrong types and credentials pasted inline. Everything runs in your browser.

How to use

  1. 1 In Generate mode, enter the server name, then pick the transport: stdio for a local command, Streamable HTTP for a remote URL, or SSE for an older remote endpoint.
  2. 2 For stdio, give the command and its arguments, one per line. For a remote server, give the URL and any headers. The examples load a public remote server, the reference filesystem server and a bearer-token server.
  3. 3 Write ${NAME} wherever a value should come from an environment variable, for example "Bearer ${API_TOKEN}". Each tab converts it to that client's syntax, or says that the client has none.
  4. 4 Open the tab for your client. Copy the snippet into the file path shown for your operating system, or run the CLI command instead. Read the notes under the snippet: they cover restarts, approval steps and deprecations.
  5. 5 To check a config you already have, switch to Validate and paste the whole file. Fix errors first (the server will not load), then warnings.
Why does a config that works in Cursor or Claude Desktop do nothing in VS Code?
Because .vscode/mcp.json is not the same format. Its top-level key is "servers", not "mcpServers", and every entry needs a "type" of "stdio", "http" or "sse". As of late 2026 VS Code documents that file as part of the deprecated Local harness, with removal planned for February 2027. The Copilot harness reads a workspace-root .mcp.json or ~/.copilot/mcp-config.json instead, and those do use "mcpServers", still with "type" on each entry.
Can I add a remote MCP server to claude_desktop_config.json?
Not as a "url" entry. That file is documented as the mechanism for local servers that Claude Desktop starts as processes. Remote servers are added in the app under Customize > Connectors > Add custom connector, and Claude then connects from Anthropic's infrastructure rather than from your machine, so the server has to be reachable on the public internet over HTTPS on port 443. For a server on localhost or a private network, run a stdio bridge such as the third-party mcp-remote package from the config file.
What is the difference between "url" and "httpUrl" in Gemini CLI?
They select the transport. Gemini CLI has no "type" field: "httpUrl" connects with Streamable HTTP, "url" connects with SSE, and "command" starts a stdio process. If more than one is present the precedence is httpUrl, then url, then command. A Streamable HTTP endpoint pasted under "url" from another client's config is therefore dialled as SSE.
Where does Windsurf read MCP servers from now?
Windsurf was rebranded Devin Desktop, and docs.windsurf.com redirects to docs.devin.ai. Its current agent reads .devin/mcp_config.json in the project, .devin/mcp_config.local.json for gitignored overrides, and ~/.config/devin/mcp_config.json for the user (%APPDATA%\devin\mcp_config.json on Windows). The older ~/.codeium/windsurf/mcp_config.json is still imported. Remote entries use "url" with an optional "transport" of "http" or "sse".
How do I keep an API key out of a config file that is committed to the repository?
Reference an environment variable instead of writing the value. The syntax differs: ${VAR} in Claude Code's .mcp.json, the VS Code Copilot files and Gemini CLI settings.json; ${env:VAR} in Cursor and Devin Desktop; ${input:id} prompts in .vscode/mcp.json; and in Codex, bearer_token_env_var or env_http_headers, which name the variable rather than interpolate it. Claude Desktop documents no expansion for its file, so keep that file out of version control.
Does Codex support SSE servers?
Its documentation lists two kinds of server: stdio and Streamable HTTP. There is no transport field in config.toml and no SSE option on "codex mcp add". For a server that only offers the older HTTP+SSE transport, the generator emits a stdio bridge entry instead of a url that would be contacted with the wrong transport.