MCPcopy Create free account
hub / github.com/SethGammon/Citadel / tomlEscape

Function tomlEscape

scripts/codex-compat.js:227–229  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

225// ---- MCP server translation -------------------------------------------------
226//
227// Claude Code's `.mcp.json` and Codex's `[mcp_servers.NAME]` TOML overlap on
228// most fields but diverge on a few. The translator below:
229//
230// 1. Maps shared fields directly (command, args, url, env, cwd).
231// 2. Maps Claude `headers` → Codex `http_headers`.
232// 3. Detects token-style env vars and emits `bearer_token_env_var` while

Callers 2

tomlValueFunction · 0.85
mcpServerToTomlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected