RealTime API SIP problem with MCP Server

I set up a realtime API prompt with a SIP connection.

Everything works fine except for the MCP servers. Basically, when I test the prompt from the platform, it works fine. However, if I use it from the SIP connection in the socket, I get an error.

{“type”:“mcp_list_tools.failed”,“event_id”:“event_CIfv69R3WvHbbBSDzzkX3”,“item_id”:“item_CIfv4mMBzO254X3xV7HP5”}

If I try it from the platform dashboard, it works fine.

All other settings in the saved prompt, including the “functions,” work!

Any idea? Is it a bug?

1 Like

do you see any traffic to your MCP server when using it with SIP?

No… no message… no traffic

something is wrong with your tools configuration then. you want something like

tools = [{
type: “mcp”,
server_label: “hello-mcp-demo”,
server_url: mcpUrl,
authorization: “demo-token-12345”, // In production, use a secure token
require_approval: “never”,
}];

Where insert this?

tools = [{
type: “mcp”,
server_label: “hello-mcp-demo”,
server_url: mcpUrl,
authorization: “demo-token-12345”, // In production, use a secure token
require_approval: “never”,
}];