Replies: 3 comments 2 replies
-
@pwwpche do you know if we expose http headers in the MCP toolset? |
Beta Was this translation helpful? Give feedback.
-
The MCP interfaces in ADK leverages the standard MCP interfaces from MCP SDK. To add a request header, simply do
|
Beta Was this translation helpful? Give feedback.
-
I'm running into a similar issue. I'm using FastAPI + agent+MCP, in my case, the MCP server requires passing a user-specific accessToken for data permission checks. Since different users have different accessTokens, I need to pass them dynamically with each request. However, the method mentioned above seems to only allow setting the token during initialization, which doesn't work for my case. Is there a way to pass the token dynamically per request? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I am using fastapi-mcp to use my FastAPI app as an mcp server
one of my endpoint requires "request-user-id" in the header
does anyone know how to include a customized header in the mcp call request
Beta Was this translation helpful? Give feedback.
All reactions