Replies: 3 comments
-
I share the same question! |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body:
Hi,
I'm using LangGraph to call langchain-mcp-adapters and set up an MCP server. I have a question about securely passing authentication tokens (such as an API key) into an MCP tool function.
For example, given this MCP tool:
How can I pass an API token (used to call an external weather API) into this function? What's the recommended way to make sure the token is accessible inside
get_weather
? Should I use function parameters, environment variables, context, or something else?If possible, could you provide a concrete code example of how to do this with langchain-mcp-adapters and LangGraph?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions