openai-docs-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenAI Docs MCP Skill
OpenAI Docs MCP Skill
Overview
概述
Use the OpenAI developer documentation MCP server from the shell to search and fetch authoritative docs. Always do this for OpenAI platform work instead of relying on memory or non-official sources.
通过shell使用OpenAI开发者文档MCP服务器来搜索和获取权威文档。在进行OpenAI平台相关工作时,请务必使用此工具,而非依赖记忆或非官方来源。
Core rules
核心规则
- Always use this skill for OpenAI API/SDK/Apps/Codex questions or when precise, current docs are required.
- Query the MCP server via the CLI wrapper in (do not rely on Codex MCP tools).
scripts/openai-docs-mcp.sh - Use or
searchto find the best doc page, thenlistthe page (or anchor) for exact text.fetch - Surface the doc URL you used in your response so sources are clear.
- 当你有OpenAI API/SDK/Apps/Codex相关问题,或需要精准、最新的文档时,务必使用此工具。
- 通过中的CLI封装程序查询MCP服务器(不要依赖Codex MCP工具)。
scripts/openai-docs-mcp.sh - 使用或
search找到最佳文档页面,然后使用list获取该页面(或锚点)的准确文本。fetch - 在你的回复中附上所使用的文档URL,以便明确来源。
Quick start
快速开始
bash
scripts/openai-docs-mcp.sh search "Responses API" 5
scripts/openai-docs-mcp.sh fetch https://platform.openai.com/docs/guides/migrate-to-responsesbash
scripts/openai-docs-mcp.sh search "Responses API" 5
scripts/openai-docs-mcp.sh fetch https://platform.openai.com/docs/guides/migrate-to-responsesWorkflow
工作流程
- Discover: with a focused query. If unsure, use
searchto browse.list - Read: the most relevant URL (optionally add an anchor).
fetch - Apply: summarize and/or quote relevant sections; include the URL.
- 发现:使用聚焦的查询词执行。若不确定,使用
search浏览。list - 读取:获取最相关的URL(可选择性添加锚点)并执行。
fetch - 应用:总结和/或引用相关章节;附上URL。
Script reference
脚本参考
The CLI wrapper is at and uses + against .
scripts/openai-docs-mcp.shcurljqhttps://developers.openai.com/mcpSubcommands:
- : initialize and inspect server capabilities.
init - : list available tools on the MCP server.
tools - : return JSON hits from the docs index.
search <query> [limit] [cursor] - : browse docs index.
list [limit] [cursor] - : return markdown for a doc page or section.
fetch <url> [anchor] - : list OpenAPI endpoints.
endpoints - : fetch OpenAPI schema or code samples.
openapi <endpoint-url> [lang1,lang2] [code-only]
Environment:
- : override the default MCP endpoint.
MCP_URL
CLI封装程序位于,通过 + 调用。
scripts/openai-docs-mcp.shcurljqhttps://developers.openai.com/mcp子命令:
- :初始化并检查服务器功能。
init - :列出MCP服务器上可用的工具。
tools - :从文档索引返回JSON搜索结果。
search <query> [limit] [cursor] - :浏览文档索引。
list [limit] [cursor] - :返回文档页面或章节的markdown内容。
fetch <url> [anchor] - :列出OpenAPI端点。
endpoints - :获取OpenAPI模式或代码示例。
openapi <endpoint-url> [lang1,lang2] [code-only]
环境变量:
- :覆盖默认的MCP端点。
MCP_URL