Does the completions API contain any support for MCPs? If not what’s the recommended way to include MCPs in the assistant’s workflow. Pass the definitions as functions and then translate the LLM response into an MCP call?
The /v1/chat/completions endpoint does only support local function calls (function tools). See https://platform.openai.com/docs/api-reference/chat/create#chat_create-tools.
But the v1/responses endpoint supports MCP tools (https://platform.openai.com/docs/api-reference/responses/create#responses_create-tools).
- Example from OpenAI: https://platform.openai.com/docs/guides/tools-connectors-mcp
- Example from FastMCP: OpenAI API 🤝 FastMCP - FastMCP