with one click
mcp-setup
Configure popular MCP servers for enhanced agent capabilities
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Configure popular MCP servers for enhanced agent capabilities
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
AI-native code annotation protocol that encodes intent, risk, dependencies, constraints, and test expectations in machine-parseable comments.
Professional Codex-native multi-agent code review with confidence scoring
架构规划专家 - 使用 Codex 本地上下文、仓库证据和只读 child agent 进行大型系统架构设计与规划。
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
Imported from everything-codex command checkpoint
Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.
| name | mcp-setup |
| description | Configure popular MCP servers for enhanced agent capabilities |
| version | 0.1.0 |
| source | fork |
| checksum | ed3130daccee72f4e449aec51af073c5aef71241fd2717e0c7037312f8c0b962 |
| updated_at | "2026-02-11T07:02:15.000Z" |
| layer | utility |
Codex uses ~/.codex/config.toml for MCP servers. Use one of:
./scripts/generate-codex-mcp-config.sh
Or manage via CLI:
codex mcp add
codex mcp list
Related 0.9+ helpers:
/apps # browse connected apps/connectors
/debug-config # inspect active Codex config and MCP wiring
Approval tip: for trusted MCP tools, use "allow and remember" to avoid repeated prompts in the same workflow.
Codex supports native subagents. Delegate with spawn_agent, coordinate with send_input, collect via wait_agent, and clean up with close_agent.
Execution preference:
[ANALYST]/[ARCHITECT]/[EXECUTOR]/[REVIEWER] structure in a single response.Minimal orchestration pattern:
spawn_agent -> send_input (optional) -> wait_agent -> close_agent
Codex invocation: use
$mcp-setup ...ormcp-setup: ...
Configure Model Context Protocol (MCP) servers to extend Codex's capabilities with external tools like web search, file system access, and GitHub integration.
MCP servers provide additional tools that Codex agents can use. This skill helps you configure popular MCP servers using the codex mcp add command-line interface.
Present the user with available MCP server options in plain text with numbered choices:
Question: "Which MCP server would you like to configure?"
Options:
No API key required. Ready to use immediately.
Ask for API key:
Do you have an Exa API key?
- Get one at: https://exa.ai
- Enter your API key, or type 'skip' to configure later
Ask for allowed directories:
Which directories should the filesystem MCP have access to?
Default: Current working directory
Enter comma-separated paths, or press Enter for default
Ask for token:
Do you have a GitHub Personal Access Token?
- Create one at: https://github.com/settings/tokens
- Recommended scopes: repo, read:org
- Enter your token, or type 'skip' to configure later
Use the codex mcp add command to configure each MCP server.
codex mcp add context7 -- npx -y @upstash/context7-mcp
codex mcp add -e EXA_API_KEY=<user-provided-key> exa -- npx -y exa-mcp-server
codex mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem <allowed-directories>
Option 1: Docker (local)
codex mcp add -e GITHUB_PERSONAL_ACCESS_TOKEN=<user-provided-token> github -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
Option 2: HTTP (remote)
codex mcp add --transport http github https://api.githubcopilot.com/mcp/
Note: Docker option requires Docker installed. HTTP option is simpler but may have different capabilities.
After configuration, verify the MCP servers are properly set up:
# List configured MCP servers
codex mcp list
This will display all configured MCP servers and their status.
MCP Server Configuration Complete!
CONFIGURED SERVERS:
[List the servers that were configured]
NEXT STEPS:
1. Restart Codex for changes to take effect
2. The configured MCP tools will be available to all agents
3. Run `codex mcp list` to verify configuration
USAGE TIPS:
- Context7: Ask about library documentation (e.g., "How do I use React hooks?")
- Exa: Use for web searches (e.g., "Search the web for latest TypeScript features")
- Filesystem: Extended file operations beyond the working directory
- GitHub: Interact with GitHub repos, issues, and PRs
TROUBLESHOOTING:
- If MCP servers don't appear, run `codex mcp list` to check status
- Ensure you have Node.js 18+ installed for npx-based servers
- For GitHub Docker option, ensure Docker is installed and running
- Run $doctor to diagnose issues
MANAGING MCP SERVERS:
- Add more servers: $mcp-setup or `codex mcp add ...`
- List servers: `codex mcp list`
- Remove a server: `codex mcp remove <server-name>`
If user selects "Custom":
Ask for:
stdio (default) or httpnpx my-mcp-server)https://example.com/mcp)Then construct and run the appropriate codex mcp add command:
For stdio servers:
# Without environment variables
codex mcp add <server-name> -- <command> [args...]
# With environment variables
codex mcp add -e KEY1=value1 -e KEY2=value2 <server-name> -- <command> [args...]
For HTTP servers:
# Basic HTTP server
codex mcp add --transport http <server-name> <url>
# HTTP server with headers
codex mcp add --transport http --header "Authorization: Bearer <token>" <server-name> <url>
codex mcp list to verify server statuscodex mcp add with correct credentials if neededcodex mcp list to confirm servers are activecodex mcp remove <server-name>