Openai Agents Sdk Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Openai Agents Sdk Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server that provides documentation for the OpenAI Agents SDK by extracting and indexing content from the official documentation website: https://openai.github.io/openai-agents-python/
This package can be installed as a Python library and used with any MCP-compatible LLM client (Claude Desktop, VS Code, Cursor, etc.).
pip install openai-agents-sdk-mcpgit clone https://github.com/gavinz0228/openai-agents-sdk-mcp.git
cd openai-agents-sdk-mcp
pip install -e .See INSTALLATION.md for detailed installation instructions.
This project provides both a standalone CLI tool and an MCP server that allows LLMs to access and query the OpenAI Agents SDK documentation intelligently.
pip install openai-agents-sdk-mcp export OPENAI_API_KEY="sk-your-api-key-here" {
"mcpServers": {
"openai-agents-sdk-docs": {
"command": "openai-agents-sdk-mcp",
"env": {
"OPENAI_API_KEY": "sk-your-api-key-here"
}
}
}
}See INSTALLATION.md and MCP_CONFIGURATION.md for detailed setup instructions.
Exposes two tools for LLMs:
docs_index.json for quick accessThe tool automatically manages the documentation index with intelligent caching:
docs_index.json doesn't existUses OpenAI's GPT-4o-mini to intelligently match user queries to documentation:
git clone https://github.com/gavinz0228/openai-agents-sdk-mcp.git
cd openai-agents-sdk-mcppip install -e .Create a .env file in your working directory:
OPENAI_API_KEY=sk-your-api-key-hereOr set as environment variable:
export OPENAI_API_KEY="sk-your-api-key-here"See INSTALLATION.md for more installation options.
The MCP server allows LLMs to access the documentation through standardized tool calls.
#### Start the Server
openai-agents-sdk-mcpOr if running from source:
python -m openai_agents_sdk_mcp.server#### Configure MCP Client
Add to your MCP client configuration (e.g., Claude Desktop's config):
{
"mcpServers": {
"openai-agents-sdk-docs": {
"command": "openai-agents-sdk-mcp"
}
}
}Or use the absolute path if installed in a virtual environment:
{
"mcpServers": {
"openai-agents-sdk-docs": {
"command": "/path/to/.venv/bin/openai-agents-sdk-mcp"
}
}
}#### Available MCP Tools
`list_documentation_topics`
force_refresh (boolean) - Force refresh the indexExample:
{
"name": "list_documentation_topics",
"arguments": {
"force_refresh": false
}
}`get_documentation`
query (string, required) - Feature name or natural language questioninclude_content (boolean, optional) - Whether to include full content (default: true)Example:
{
"name": "get_documentation",
"arguments": {
"query": "handoffs",
"include_content": true
}
}#### Test the Server
python test_mcp.pyUse the CLI tool for quick documentation queries:
# List all documentation topics
openai-agents-docs
# Search for specific documentation
openai-agents-docs "handoffs"
openai-agents-docs "streaming"
openai-agents-docs "how to use guardrails"from openai_agents_sdk_mcp import (
load_or_refresh_index,
get_documentation_for_feature
)
# Load documentation index
doc_map = load_or_refresh_index()
print(f"Found {len(doc_map)} topics")
# Find documentation for a feature
topic, url = get_documentation_for_feature("handoffs")
if topic:
print(f"Topic: {topic}")
print(f"URL: {url}")If running from source without installation:
#### Generate/Refresh Documentation Index
python openai_agents_sdk_mcp.pyThis will:
docs_index.json#### Search for Documentation
python openai_agents_sdk_mcp.py "feature name or query"Examples:
# Simple feature name
python openai_agents_sdk_mcp.py "handoffs"
# Natural language query
python openai_agents_sdk_mcp.py "how do I stream responses"
# Topic search
python openai_agents_sdk_mcp.py "tracing and debugging"
# Multiple words
python openai_agents_sdk_mcp.py "realtime voice"The tool will:
# The index is automatically managed:
# 1. Checks if docs_index.json exists
if not exists:
fetch_fresh_index()
# 2. Checks if index is older than 1 day
if age > 1_day:
fetch_fresh_index()
# 3. Validates all links are working
if broken_links_found:
fetch_fresh_index()The tool uses OpenAI's GPT-4o-mini to match user queries to documentation topics:
This provides intelligent matching even for:
openai_agents_sdk_mcp.py)DOCS_INDEX_FILE = "docs_index.json" # Index file name
INDEX_MAX_AGE_DAYS = 1 # Maximum age before refreshOPENAI_API_KEY - Required for AI-powered search functionalityserver.py - MCP server implementationopenai_agents_sdk_mcp.py - Core functionality and CLI tooltest_mcp.py - Test script for the MCP servermcp_config.json - Example MCP client configurationdocs_index.json - Cached documentation index (auto-generated)requirements.txt - Python dependencies.env - Environment variables (create this).gitignore - Git ignore rules (protects API key)requests - HTTP requests for fetching web pagesbeautifulsoup4 - HTML parsinglxml - XML/HTML parseropenai - OpenAI API client for AI-powered searchpython-dotenv - Environment variable managementmcp - Model Context Protocol SDKFetching OpenAI Agents SDK documentation index...
Fetching fresh documentation index...
Index refreshed with 80 topics and saved to 'docs_index.json'.
Found 80 documentation topics/features:
...Searching for documentation on: handoffs
Loaded existing index with 80 topics.
Verifying documentation links...
✓ All links are valid
✓ Found matching topic: Handoffs
URL: https://openai.github.io/openai-agents-python/handoffs/
Fetching documentation content...
================================================================================
Handoffs - OpenAI Agents SDK
...This project is designed to work with the OpenAI Agents SDK documentation. Please refer to OpenAI's terms of service for API usage.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.