[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"tool-content-aiMcpSetup-codex":3,"i-lucide:grip":29,"i-lucide:chevron-right":34,"i-lucide:moon":36,"i-lucide:sun":38,"i-lucide:languages":40,"i-lucide:chevron-down":42,"i-lucide:shield-check":44,"i-lucide:mail":46,"i-lucide:external-link":48,"i-lucide:copy":50,"i-lucide:arrow-left":52},{"strings":4,"articleHtml":26},{"zh":5,"en":16},{"name":6,"summary":7,"title":8,"description":9,"docsLink":10,"backToList":11,"mcpUrlLabel":12,"copyPromptHint":13,"copyPrompt":14,"openSettingsHint":15},"OpenAI Codex","把配置 Prompt 发给 Codex，让它自己写入 MCP；也可以打开 Settings → MCP servers。","OpenAI Codex · MeTool MCP 配置","把一段 Prompt 发给 Codex 让它自己接入 MeTool MCP，或按步骤编辑 config.toml 并完成 OAuth 回跳。","官方文档","全部客户端","统一 MCP 地址","复制后粘贴到 Codex 对话，让它自己写入 config.toml 并执行登录。","请帮我在 OpenAI Codex（CLI \u002F Desktop）里接入 MeTool 远程 MCP，并完成授权。请你自己改配置，不要只甩文档给我。\n\n具体要求：\n1. 打开 ~\u002F.codex\u002Fconfig.toml（或项目 .codex\u002Fconfig.toml），或用 Settings → MCP servers → Add server。\n2. 传输用 Streamable HTTP。URL 只能用这一条：{mcpUrl}\n3. 保持 oauth。不要写死 Bearer \u002F Authorization。\n4. CLI 可执行：codex mcp add metool --url {mcpUrl} 然后 codex mcp login metool。Desktop 对该服务器点登录即可。\n5. 浏览器打开 MeTool 后登录并点「批准」。若问是否打开 Codex，必须点确认。\n6. 若当前会话仍提示需授权，新开线程或重启 Desktop。\n7. 连上之后直接听我下一步。如果还没有工具页点过「连接你的 AI」，请转告我：先打开一个工具页并点连接，否则你不知道数据要送到哪一页。\n\n可写入 config.toml 的片段：","点击后尝试打开 Codex 设置，并复制 TOML。若没有落到 MCP 页，请到 Settings → MCP servers。",{"name":6,"summary":17,"title":18,"description":19,"docsLink":20,"backToList":21,"mcpUrlLabel":22,"copyPromptHint":23,"copyPrompt":24,"openSettingsHint":25},"Paste the setup prompt into Codex so it writes MCP itself — or open Settings → MCP servers.","OpenAI Codex · MeTool MCP setup","Give Codex a setup prompt so it adds MeTool MCP itself, or edit config.toml and finish the OAuth callback.","Official docs","All clients","Gateway URL","Paste into Codex so it writes config.toml and starts login.","Please add MeTool as a remote MCP server in OpenAI Codex (CLI \u002F Desktop) and finish authorization. Do the config yourself — don’t just send me docs.\n\nRequirements:\n1. Edit ~\u002F.codex\u002Fconfig.toml (or project .codex\u002Fconfig.toml), or use Settings → MCP servers → Add server.\n2. Transport: Streamable HTTP. The only URL to use is: {mcpUrl}\n3. Keep oauth. Do not hardcode a Bearer \u002F Authorization token.\n4. CLI: codex mcp add metool --url {mcpUrl} then codex mcp login metool. Desktop can start login from settings.\n5. In the browser, sign in on MeTool and Approve. If it asks to open Codex, you must confirm.\n6. If the current thread still says authorization required, start a new thread or restart Desktop.\n7. Once connected, just follow my next request. If no tool page has Connect your AI on yet, tell me to open one and click Connect first — otherwise you do not know which page to send data to.\n\nSnippet for config.toml:","Tries to open Codex settings and copies the TOML. If you don’t land on MCP, go to Settings → MCP servers.",{"zh":27,"en":28},"\u003Cblockquote>\n\u003Cp>\u003Cstrong>推荐\u003C\u002Fstrong>：先复制本页上方的 Prompt，发给 Codex 让它自己配置。下面是手动步骤。\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2>第 1 步：编辑 config.toml\u003C\u002Fh2>\n\u003Cp>打开 \u003Ccode>~\u002F.codex\u002Fconfig.toml\u003C\u002Fcode>（或项目 \u003Ccode>.codex\u002Fconfig.toml\u003C\u002Fcode>），加入：\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark mac-code-block\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\">\u003Cspan class=\"mac-lang-badge\">toml\u003C\u002Fspan>\u003Ccode class=\"language-toml\">\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">[\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">mcp_servers\u003C\u002Fspan>\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">.\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">metool\u003C\u002Fspan>\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">]\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">url = \u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https:\u002F\u002Fmetool.online\u002Fmcp\u002F\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#6A737D;--shiki-dark:#6A737D\"># 保持 oauth。不要写死 Bearer。\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>若版本要求声明传输类型，按官方文档补字段；\u003Cstrong>URL 仍指向\u003C\u002Fstrong> \u003Ccode>https:\u002F\u002Fmetool.online\u002Fmcp\u002F\u003C\u002Fcode>。\u003C\u002Fp>\n\u003Ch2>第 2 步：发起登录（OAuth）\u003C\u002Fh2>\n\u003Cp>配完 TOML \u003Cstrong>不会\u003C\u002Fstrong>自动授权。\u003Ca href=\"https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fmcp\">官方文档\u003C\u002Fa>要求对支持 OAuth 的服务器执行：\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark mac-code-block\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\">\u003Cspan class=\"mac-lang-badge\">bash\u003C\u002Fspan>\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">codex\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> mcp\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> login\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> metool\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>（把 \u003Ccode>metool\u003C\u002Fcode> 换成你在 TOML 里的名字。）Desktop 设置里对该服务器点 \u003Cstrong>Authenticate \u002F 登录\u003C\u002Fstrong>。官方文档没有登录按钮截图。\u003C\u002Fp>\n\u003Cp>浏览器打开 MeTool 后：登录并\u003Cstrong>批准\u003C\u002Fstrong>。\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fai\u002Fmcp-setup\u002Foauth-approve\u002Fcodex.webp\" alt=\"MeTool 授权批准页\">\u003C\u002Fp>\n\u003Ch2>第 3 步：点浏览器回跳\u003C\u002Fh2>\n\u003Cp>若提示打开 Codex，\u003Cstrong>点确认\u003C\u002Fstrong>。不要只关标签页。\u003C\u002Fp>\n\u003Ch2>第 4 步：确认已连接\u003C\u002Fh2>\n\u003Cp>若当前会话仍提示需授权，\u003Cstrong>新开线程\u003C\u002Fstrong>或重启 Desktop 后再试。\u003C\u002Fp>\n\u003Ch2>第 5 步：回到对话\u003C\u002Fh2>\n\u003Cp>回到 Codex 直接说话。如果还没有工具页点过「连接你的 AI」，它会提醒你先打开一页并点连接——否则它不知道数据要送到哪一页。\u003C\u002Fp>\n\u003Ch2>卡在哪了？\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>login 后仍 unauthorized → 回跳未完成，重跑 \u003Ccode>codex mcp login\u003C\u002Fcode>。\u003C\u002Fli>\n\u003Cli>配置里写了 token → 删掉，改回 oauth。\u003C\u002Fli>\n\u003Cli>CLI 与 Desktop 配置文件不同 → 改正在使用的那份 TOML。\u003C\u002Fli>\n\u003C\u002Ful>\n","\u003Cblockquote>\n\u003Cp>\u003Cstrong>Recommended:\u003C\u002Fstrong> copy the prompt at the top of this page and paste it into Codex so it configures MCP itself. Manual steps follow.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2>Step 1: Edit config.toml\u003C\u002Fh2>\n\u003Cp>Open \u003Ccode>~\u002F.codex\u002Fconfig.toml\u003C\u002Fcode> (or project \u003Ccode>.codex\u002Fconfig.toml\u003C\u002Fcode>) and add:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark mac-code-block\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\">\u003Cspan class=\"mac-lang-badge\">toml\u003C\u002Fspan>\u003Ccode class=\"language-toml\">\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">[\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">mcp_servers\u003C\u002Fspan>\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">.\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">metool\u003C\u002Fspan>\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">]\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E;--shiki-dark:#E1E4E8\">url = \u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\">\"https:\u002F\u002Fmetool.online\u002Fmcp\u002F\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#6A737D;--shiki-dark:#6A737D\"># Keep oauth. Do not hardcode a Bearer token.\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>If your build needs an explicit transport field, follow OpenAI’s docs — the URL must still be \u003Ccode>https:\u002F\u002Fmetool.online\u002Fmcp\u002F\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2>Step 2: Start login (OAuth)\u003C\u002Fh2>\n\u003Cp>Saving TOML does \u003Cstrong>not\u003C\u002Fstrong> authorize you. \u003Ca href=\"https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fmcp\">Official docs\u003C\u002Fa> require this for OAuth servers:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark mac-code-block\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\">\u003Cspan class=\"mac-lang-badge\">bash\u003C\u002Fspan>\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">codex\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> mcp\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> login\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> metool\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>(Replace \u003Ccode>metool\u003C\u002Fcode> with your TOML name.) Desktop: \u003Cstrong>Authenticate\u003C\u002Fstrong> on that server in settings. Official docs have no login-button screenshot.\u003C\u002Fp>\n\u003Cp>In the browser: sign in on MeTool and \u003Cstrong>Approve\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fai\u002Fmcp-setup\u002Foauth-approve\u002Fcodex.en.webp\" alt=\"MeTool authorization approve page\">\u003C\u002Fp>\n\u003Ch2>Step 3: Open-app callback\u003C\u002Fh2>\n\u003Cp>If the browser asks to open Codex, \u003Cstrong>confirm\u003C\u002Fstrong>. Don’t just close the tab.\u003C\u002Fp>\n\u003Ch2>Step 4: Confirm Connected\u003C\u002Fh2>\n\u003Cp>If the current thread still says OAuth required, \u003Cstrong>start a new thread\u003C\u002Fstrong> or restart Desktop.\u003C\u002Fp>\n\u003Ch2>Step 5: Return to the chat\u003C\u002Fh2>\n\u003Cp>Go back to Codex and just talk. If no tool page has Connect your AI on yet, it will ask you to open one and click Connect — otherwise it does not know which page to send data to.\u003C\u002Fp>\n\u003Ch2>Stuck?\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Still unauthorized after login → re-run \u003Ccode>codex mcp login\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>You hardcoded a token → remove it and use oauth.\u003C\u002Fli>\n\u003Cli>CLI vs Desktop config → edit the TOML the running app loads.\u003C\u002Fli>\n\u003C\u002Ful>\n",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":33},0,24,false,"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"5\" r=\"1\"\u002F>\u003Ccircle cx=\"19\" cy=\"5\" r=\"1\"\u002F>\u003Ccircle cx=\"5\" cy=\"5\" r=\"1\"\u002F>\u003Ccircle cx=\"12\" cy=\"12\" r=\"1\"\u002F>\u003Ccircle cx=\"19\" cy=\"12\" r=\"1\"\u002F>\u003Ccircle cx=\"5\" cy=\"12\" r=\"1\"\u002F>\u003Ccircle cx=\"12\" cy=\"19\" r=\"1\"\u002F>\u003Ccircle cx=\"19\" cy=\"19\" r=\"1\"\u002F>\u003Ccircle cx=\"5\" cy=\"19\" r=\"1\"\u002F>\u003C\u002Fg>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":35},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 18l6-6l-6-6\"\u002F>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":37},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":39},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":41},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 8l6 6m-7 0l6-6l2-3M2 5h12M7 2h1m14 20l-5-10l-5 10m2-4h6\"\u002F>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":43},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":45},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"\u002F>\u003Cpath d=\"m9 12l2 2l4-4\"\u002F>\u003C\u002Fg>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":47},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"m22 7l-8.991 5.727a2 2 0 0 1-2.009 0L2 7\"\u002F>\u003Crect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\"\u002F>\u003C\u002Fg>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":49},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"\u002F>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":51},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fg>",{"left":30,"top":30,"width":31,"height":31,"rotate":30,"vFlip":32,"hFlip":32,"body":53},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",1787054373744]