Можно подключить MCP-сервер прямо в агенте:
# .codex/agents/docs-researcher.toml
name = "docs_researcher"
description = "Documentation specialist that uses the docs MCP server to verify APIs and framework behavior."
model = "gpt-5.3-codex-spark"
model_reasoning_effort = "medium"
sandbox_mode = "read-only"
developer_instructions = """
Use the docs MCP server to confirm APIs, options, and version-specific behavior.
Return concise answers with links or exact references when available.
Do not make code changes.
"""
[mcp_servers.openaiDeveloperDocs]
url = "https://developers.openai.com/mcp"
Такой агент не пишет код, а проверяет, как реально устроен API или фреймворк, чтобы основной агент не галлюцинировал в спорных местах.
🔜 Как настроить subagents в Codex
@data_engi
#agents #subagents #ai #llm #openai #codex #dev