vincemeshed
06/07/2025, 9:56 PMVapi Support Bot
06/07/2025, 9:57 PMjson
{
"server": {
"url": "https://your-mcp-server.com/endpoint",
"headers": {
"Authorization": "Bearer your-user-token"
}
}
}
This will include the user token in each request from the voice agent to your MCP server. For more details, see the [server authentication documentation](https://docs.vapi.ai/server-url/server-authentication).
Quick question:
Do you need to set a different user token for each call (per user/session), or is a static token sufficient for your use case?
Sources:
- [Server Authentication](https://docs.vapi.ai/server-url/server-authentication)
- [Custom Tools](https://docs.vapi.ai/tools/custom-tools)vincemeshed
06/07/2025, 10:03 PMVapi Support Bot
06/07/2025, 10:05 PMAuthorization
header at the tool call level in your MCP tool configuration. This allows you to pass a unique token per request:
json
{
"server": {
"url": "https://your-mcp-server.com/endpoint",
"headers": {
"Authorization": "Bearer <user-session-token>"
}
}
}
For more details, see the [server authentication documentation](https://docs.vapi.ai/server-url/server-authentication).
Clarifying question:
Are you looking to set the user token dynamically via API/backend code, or do you need to configure this manually in the dashboard for each call?
Sources:
- [Server Authentication](https://docs.vapi.ai/server-url/server-authentication)
- [Custom Tools](https://docs.vapi.ai/tools/custom-tools)Aniah
06/10/2025, 2:36 AMvincemeshed
06/11/2025, 11:48 AMAniah
06/12/2025, 6:49 AMvincemeshed
06/12/2025, 10:01 AMutvara
10/06/2025, 1:55 PM