Update an existing MCP server configuration in both Claude Code and Codex
Updates existing MCP server configurations across Claude Code and Codex systems.
/plugin marketplace add DuncanJurman/entropy-plugins/plugin install meta-unify@entropy-marketplaceYou are helping the user update an existing MCP server configuration in both systems.
Parse $ARGUMENTS for:
Check for these flags in $ARGUMENTS:
--claude-only: Only update Claude Code--codex-only: Only update Codex--project: Use project scope for ClaudeLocate existing config:
For Claude (check in order):
.mcp.json (project scope)~/.claude.json (user scope)For Codex:
~/.codex/config.toml (user scope only)If server not found in a system:
"Server 'NAME' not found in [Claude/Codex]. Would you like to add it instead? Use
/meta-unify:add-mcp"
Display the current config to the user:
"Current configuration for 'SERVER_NAME':
Claude (~/.claude.json):
{ "command": "npx", "args": ["@package/server"], "env": { "TOKEN": "..." } }Codex (~/.codex/config.toml):
[mcp_servers.SERVER_NAME] command = "npx" args = ["@package/server"]What would you like to change?"
If user provided changes in $ARGUMENTS, proceed. Otherwise, ask:
"What would you like to update?
- Command or args?
- Add/remove environment variables?
- Change the URL (for HTTP servers)?
- Something else?"
Common update scenarios:
Add environment variable:
"env": { "NEW_KEY": "value" }[mcp_servers.NAME.env] sectionChange command/args:
"command" and "args" fieldscommand and args in TOMLChange URL (HTTP servers):
"url" fieldurl fieldIf update fails for one system:
"Claude update successful, but Codex update failed: [ERROR]
Keep the Claude changes? [y/n]
You can fix the Codex config manually at ~/.codex/config.toml"
"Updated MCP server 'SERVER_NAME':
Changes applied:
- Added environment variable: API_KEY
- Updated args: added '--verbose' flag
Files modified:
- Claude: ~/.claude.json
- Codex: ~/.codex/config.toml
Restart Claude Code and Codex to apply changes."
User input: "/meta-unify:update-mcp context7 Add UPSTASH_TOKEN env variable"
User input: "/meta-unify:update-mcp github Change the URL to https://new-api.github.com/mcp"
For complete format specifications, invoke the meta-unify-core skill to access: