Skip to main content
Use getOpenAIMcpConfig to connect Corsair to the OpenAI API via HTTP transport. Like Vercel AI, OpenAI’s MCP support connects over HTTP — you expose Corsair as an MCP server endpoint and pass the config to the OpenAI client.

Install

Server

Expose Corsair as an MCP HTTP endpoint using createBaseMcpServer and createMcpRouter.
server.ts

Client

agent.ts
getOpenAIMcpConfig returns the serverLabel and serverUrl fields expected by OpenAI’s mcp tool type.