Skip to content

feat: a setup guide for MCP servers in Cursor, Codex, VS Code and Gemini CLI - #17

Merged
sepehr-safari merged 1 commit into
mainfrom
feat/client-guides
Sep 23, 2026
Merged

sepehr-safari merged 1 commit into
mainfrom
feat/client-guides

Conversation

@sepehr-safari

Copy link
Copy Markdown
Contributor

The MCP guide shows the change to a client configuration once, with Claude Code's file as the example. The part that differs between clients is where the file is, what format it is in, and above all what environment a server is started with, which decides whether the API key reaches the proxy at all. Each of these four now has a page that answers those for that client, from its own documentation, and from its source where the documentation says nothing.

  • Cursor: servers in mcp.json under mcpServers, which wrap edits. A server gets the environment Cursor was started with, so an exported key arrives after a restart, and envFile keeps it out of the shell profile.
  • Codex: servers in TOML, which wrap does not read, so the change is shown by hand. Codex starts a server with a cleared environment and passes back only a short list of variables, so the key is forwarded by name with env_vars. Its documentation and its source disagree on the default startup timeout, so the page sets it.
  • VS Code: servers under servers, with type: stdio. The file allows comments, which wrap refuses with an error rather than rewriting, and code --add-mcp adds a wrapped server from the command line.
  • Gemini CLI: it strips variables named like credentials from a server's inherited environment, and TYPESAFE_API_KEY is one, so the key is set in the entry's own env as a reference that Gemini CLI fills in from its environment.

Every page says the proxy removes its own keys before starting the server behind it, shows how to tell from agent-chaperone log that a judgment was made without a model, and says plainly that the client's own shell and file tools are not covered, linking the issue that tracks them. The MCP guide links to all four, and the guides list, the structured data and the IndexNow list include them.

…ini CLI

The MCP guide shows the change to a client configuration once, with Claude Code's file as the example. The part that differs between clients is where the file is, what format it is in, and above all what environment a server is started with, which decides whether the API key reaches the proxy at all. Each of these four now has a page that answers those for that client, from its own documentation, and from its source where the documentation says nothing.

- Cursor: servers in `mcp.json` under `mcpServers`, which `wrap` edits. A server gets the environment Cursor was started with, so an exported key arrives after a restart, and `envFile` keeps it out of the shell profile.
- Codex: servers in TOML, which `wrap` does not read, so the change is shown by hand. Codex starts a server with a cleared environment and passes back only a short list of variables, so the key is forwarded by name with `env_vars`. Its documentation and its source disagree on the default startup timeout, so the page sets it.
- VS Code: servers under `servers`, with `type: stdio`. The file allows comments, which `wrap` refuses with an error rather than rewriting, and `code --add-mcp` adds a wrapped server from the command line.
- Gemini CLI: it strips variables named like credentials from a server's inherited environment, and `TYPESAFE_API_KEY` is one, so the key is set in the entry's own `env` as a reference that Gemini CLI fills in from its environment.

Every page says the proxy removes its own keys before starting the server behind it, shows how to tell from `agent-chaperone log` that a judgment was made without a model, and says plainly that the client's own shell and file tools are not covered, linking the issue that tracks them. The MCP guide links to all four, and the guides list, the structured data and the IndexNow list include them.
@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agentchaperone-dev Ready Ready Preview Sep 23, 2026 1:02pm UTC

@sepehr-safari
sepehr-safari merged commit 35171e9 into main Sep 23, 2026
3 checks passed
@sepehr-safari
sepehr-safari deleted the feat/client-guides branch September 23, 2026 13:11

This branch was successfully deployed

1 active deployment
Preview — d5726e84 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant