How can I configure an assistant to use
# office-hours
a
How can I configure an assistant to use an MCP server with the API? I don't see the mcp field in Create Assistant or Create Call APIs
p
What does the fox docs say? https://docs.vapi.ai/tools/mcp
a
the docs don't say anything about the API (https://docs.vapi.ai/api-reference/assistants/create) and the API reference does not show an mcp field
p
a
ok, so it's not possible to create a transient MCP tool then? it's possible with other kind of tools.
p
I have tried to do this for the Asana MCP using the following code:
Copy code
`
      tools: [
        {
          type: "mcp",
          name: "asana_mcp",
          server: { url: "https://mcp.asana.com/sse" },
        },
      ],
Their server requires pre-authorisation to work, but the VAPI docs suggest that you need an individualised URL for it to work. How might we be able to do that?
7 Views