openai-docs-skill
Query the OpenAI developer documentation via the OpenAI Docs MCP server using CLI.
Installation
npx clawhub@latest install openai-docsView the full skill documentation and source below.
Documentation
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.
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
scripts/openai-docs-mcp.sh(do not rely on Codex MCP tools). - Use
searchorlistto find the best doc page, thenfetchthe page (or anchor) for exact text. - Surface the doc URL you used in your response so sources are clear.
Quick start
scripts/openai-docs-mcp.sh search "Responses API" 5
scripts/openai-docs-mcp.sh fetch
Workflow
search with a focused query. If unsure, use list to browse.fetch the most relevant URL (optionally add an anchor).Script reference
The CLI wrapper is at scripts/openai-docs-mcp.sh and uses curl + jq against
Subcommands:
- init: initialize and inspect server capabilities.
- tools: list available tools on the MCP server.
- search [limit] [cursor]: return JSON hits from the docs index.
- list [limit] [cursor]: browse docs index.
- fetch [anchor]: return markdown for a doc page or section.
- endpoints: list OpenAPI endpoints.
- openapi [lang1,lang2] [code-only]: fetch OpenAPI schema or code samples.
Environment:
- MCP_URL`: override the default MCP endpoint.