colin
09/12/2025, 3:01 AM{
name: `c-${body.callId}`,
description: 'snipped'
model: {
...model,
tools: [
{
type: 'mcp',
server: {
url: mcpUrl,
},
function: {
name: 'mcp',
},
},
],
toolIds: [],
},
}
When I send this, the assistant gets created, but in my call - from just now, 9/11/2025 9:58PM CDT, call ID f63420b7-fd78-4cf1-9e90-1decfd5da0ff, I get MCP error -32602: MCP error -32602: Tool mcp not found
This only happens in the actual calling of the mcp tool, so my voice assistant continues to work but fails when calling tools.
I need to create assistants/tools dynamically like this in order to establish authenticated contexts for each user call to my mcp, but I'd prefer a better way, if anyone knows.Vapi Support Bot
09/12/2025, 3:02 AMfunction property in your MCP tool definition. Instead, define your MCP tool like this:
json
{
"type": "mcp",
"name": "mcpTools",
"server": {
"url": "https://your-mcp-server-url"
}
}
Remove the function field—Vapi will fetch available tools from your MCP server and inject them dynamically. This should resolve the "Tool mcp not found" error.
[See MCP Tool docs for reference.](https://docs.vapi.ai/tools/mcp)
Source:
- [MCP Tool documentation](https://docs.vapi.ai/tools/mcp)colin
09/12/2025, 3:05 AMLordvickthor
09/12/2025, 3:58 PMcolin
09/12/2025, 5:03 PMcolin
09/12/2025, 5:03 PMLordvickthor
09/12/2025, 6:20 PMcolin
09/15/2025, 4:53 PMcolin
09/15/2025, 4:53 PMChiranjeet Mishra
09/16/2025, 2:50 AMmessages array is empty. Could you also provide a call id so we can review the logs?Vignxt Flow
09/16/2025, 10:24 AMRyGuy
10/31/2025, 1:31 AMVignxt Flow
11/02/2025, 1:45 PM