MCP Oauth Flow
I am trying to use an MCP Tool with both Oauth and Bearer token Credentials. When I configure Oauth I can see the token endpoint is called on the server to obtain an access token. However, neither the bearer token or access token are presented to the MCP server when the Tool is invoked from an Assistant.
I can see the VAPI MCP client / POST:
2025/11/26 14:24:22 Request Body: {"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{"tools":{},"prompts":{},"resources":{}},"clientInfo":{"name":"vapi-mcp-client","version":"1.0.0"}},"jsonrpc":"2.0","id":0}
This results in a 401 with the "Www-Authenticate:[Bearer realm="mcp" resource_metadata=https://mudflap-pete.ngrok.io/.well-known/oauth-protected-resource]" response header which should tell the client to proceed with token
The assistant is https://dashboard.vapi.ai/assistants/426f0625-c597-47af-9fe6-e139b5df43b4
I can see the VAPI MCP client / POST:
2025/11/26 14:24:22 Request Body: {"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{"tools":{},"prompts":{},"resources":{}},"clientInfo":{"name":"vapi-mcp-client","version":"1.0.0"}},"jsonrpc":"2.0","id":0}
This results in a 401 with the "Www-Authenticate:[Bearer realm="mcp" resource_metadata=https://mudflap-pete.ngrok.io/.well-known/oauth-protected-resource]" response header which should tell the client to proceed with token
The assistant is https://dashboard.vapi.ai/assistants/426f0625-c597-47af-9fe6-e139b5df43b4
Build and manage voice AI agents that conduct human-like conversations. Access real-time analytics, configure assistants, and monitor your AI voice applications.
