joris97jansen
07/16/2025, 12:10 PMPython
"messageResponse": {
"assistantId": "id",
"assistantOverrides": {
"firstMessage": f"Hi {request.user.first_name}, how are you doing?",
"serverMessages": ["tool-calls"],
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "multi",
},
"model": {
"provider": "openai",
"model": "gpt-4o-mini",
"tools": [
{
"type": "mcp",
"server": {
"url": "https://example.com/sse",
"headers": {
"x-google-client-id": "id",
"x-google-client-secret": "secret",
"x-google-redirect-uri": "url.com",
"x-google-refresh-token": "secrets"
}
},
"metadata": {
"protocol": "sse",
}
}
]
}
},
}
So, whenever I call the Assistant, I do see logs on the MCP Server that there is a connection created, the id/srecret/uri/token are all passed to the Server as well correctly. But somehow, the tools exposed are never user.
What could be the issue?Chiranjeet Mishra
07/16/2025, 11:48 PMjoris97jansen
07/17/2025, 4:21 AMjoris97jansen
07/17/2025, 4:48 AM"serverMessages": ["tool-calls"]
Because specifying it like this:
"serverMessages": "tool-calls"
Results in an error, on the other side of the line I hear this:
Couldn't get assistant, either set the AssitantId or debug your request.
But the docs say that it has to be done via the second method (as a plain string).
But, I never receive these serverMessages (probably because the tool is never user/called).Chiranjeet Mishra
07/17/2025, 1:51 PMjoris97jansen
07/17/2025, 3:24 PMChiranjeet Mishra
07/17/2025, 3:34 PMjoris97jansen
07/17/2025, 5:13 PMassistant-request.
As a response, I return an assistantId and some assistantOverrides, the response looks like this:
Python
"messageResponse": {
"assistantId": "id"
"assistantOverrides": {
"firstMessage": "Hi Joris, how are you doing?",
"serverMessages": ["tool-calls"],
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "multi",
},
"model": {
"provider": "openai",
"model": "gpt-4o-mini",
"tools": [
{
"type": "mcp",
"server": {
"url": "https://example.com/sse",
"headers": {
"x-google-client-id": "id",
"x-google-client-secret": "secret",
"x-google-redirect-uri": "uri",
"x-google-refresh-token": "refresh_token"
}
},
"metadata": {
"protocol": "sse",
}
}
]
}
},
}
Now, there are basically 2 issues:
1. The Assistant never calls/uses the MCP Server which I provide to the model.
2. The serverMessages entry has to be a list, not just a string (the docs say is has to be a string), which results in an error when I try to call the assistant: Couldn't get assistant, either set the AssitantId or debug your request.Chiranjeet Mishra
07/19/2025, 6:04 PMjoris97jansen
07/24/2025, 4:54 AMChiranjeet Mishra
07/26/2025, 1:45 PMRyGuy
10/30/2025, 10:07 PMjoris97jansen
10/31/2025, 1:05 PMRyGuy
10/31/2025, 1:13 PM