mcp-convert
Skill3 starsChanged 9 days agoMITView on GitHub
MCP config converter for agent CLIs.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-delegateSkill
- cmux-delegateSkill
- cmux-forkSkill
- cmux-second-opinionSkill
- handoverSkill
- harness-initSkill
- harness-loopSkill
- harness-planSkill
- ja-humanizerSkill
- magiSkill
- skill-suggestSkill
- spec-codeSkill
- spec-evaluateSkill
- spec-generatorSkill
- spec-implementSkill
- spec-inspectSkill
- spec-orchestrateSkill
- spec-reviewSkill
- spec-rules-initSkill
- spec-testSkill
- spec-to-issueSkill
- spec-workflow-initSkill
- spec-writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Prefer concise operational guidance over long explanation.
- Very specific: line 40
Use AskUserQuestion for user decisions.
- Very specific: line 45
After reading ~/.claude.json, show the discovered Claude MCP servers.
- Distinctive: line 46
If more than one server exists, use AskUserQuestion to ask what to migrate.
- Distinctive: line 50
only servers with secrets
- Distinctive: line 54
If the user did not explicitly ask to mutate Codex config, ask whether to:
- Distinctive: line 65
Ask whether to dry-run, apply, or export TOML.
- Very specific: line 83
Run the converter with --mode dry-run
- Distinctive: line 85
Ask which servers to migrate:
- Distinctive: line 86
Use AskUserQuestion if multiple servers are available and the user did not already specify the selection
- Distinctive: line 91
Use AskUserQuestion unless the user clearly asked to apply immediately
- Very specific: line 129
If Claude has project-local MCP overrides, inspect them separately.
- Distinctive: line 130
If a server type is unsupported, report it clearly and skip it rather than guessing.
- Very specific: line 131
When presenting discovered servers, include whether each server has env keys.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
mcp-convert — Convert MCP Configuration
Convert Claude Code MCP settings into Codex CLI MCP configuration.
Language Rules
- Auto-detect the user's language and respond in the same language.
- Prefer concise operational guidance over long explanation.
Interaction Policy: AskUserQuestion
Use AskUserQuestion for user decisions. Do not jump straight to apply when the request is ambiguous or when multiple MCP servers are available.
Required decision points
- Server selection
- After reading
~/.claude.json, show the discovered Claude MCP servers. - If more than one server exists, use AskUserQuestion to ask what to migrate.
- Recommended first option: migrate all discovered servers.
- Other options may be grouped, for example:
- all servers
- only servers with secrets
- select a subset manually
- After reading
- Apply mode
- If the user did not explicitly ask to mutate Codex config, ask whether to:
- dry-run only (Recommended)
- apply immediately
- export TOML only
- If the user did not explicitly ask to mutate Codex config, ask whether to:
Suggested AskUserQuestion flow
Round 1:
- Show discovered MCP servers and ask what to migrate.
Round 2:
- Ask whether to dry-run, apply, or export TOML.
Skip questions already answered by the user. If the user clearly says things like "move all of them", do not re-ask that decision.
What This Skill Does
This skill uses the bundled converter script:
scripts/convert_claude_to_codex.py
The script reads Claude Code MCP definitions from ~/.claude.json and converts them for Codex.
Env values from Claude config are copied directly into Codex config.
Execution Flow
- Confirm the source file exists:
~/.claude.json
- Preview the available Claude MCP servers:
- Run the converter with
--mode dry-run - Summarize discovered server names for the user
- Run the converter with
- Ask which servers to migrate:
- Use AskUserQuestion if multiple servers are available and the user did not already specify the selection
- Ask execution mode:
dry-runapplyexport-toml- Use AskUserQuestion unless the user clearly asked to apply immediately
- Execute the selected action
- Verify:
- Run
codex mcp list
- Run
Recommended Commands
Preview
python3 skills/mcp-convert/scripts/convert_claude_to_codex.py --mode dry-runApply
python3 skills/mcp-convert/scripts/convert_claude_to_codex.py --mode apply --overwriteExport TOML only
python3 skills/mcp-convert/scripts/convert_claude_to_codex.py --mode export-tomlOptions
| Option | Use when |
--mode dry-run | Show what will be converted without changing Codex |
--mode apply | Register MCP servers into Codex |
--mode export-toml | Produce TOML for inspection or manual use |
--overwrite | Replace existing Codex MCP entries of the same name |
--server <name> | Convert only selected servers |
Notes
- Env values from Claude config are copied directly into Codex config as plaintext.
- If Claude has project-local MCP overrides, inspect them separately; the converter targets the top-level
mcpServersblock in~/.claude.json. - If a server type is unsupported, report it clearly and skip it rather than guessing.
- When presenting discovered servers, include whether each server has
envkeys.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

