Replies: 1 comment
-
|
Hi , did you figure this out ? There was multiple solutions like modifying the state of the graph and adding new things needed as tool parms . Another thing was a middlware on the mcp server and if you are using the Langchain MCP client you can inject whatever you need into the headers of the request and re use it later in your tools . Still I'm thinking there should be a direct way to not lose the Parent App context without the unnecessary complexity of modifying the graph state . I'll appreciate if you share your findings on this |
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.
-
I currently have a FastAPI app that has its own lifespan. I am creating an mcp server and mounting it on top of this fastapi app. I am trying to find a way to access the Context of this FastAPI app through my MCP server. Can someone please guide me if it is possible?
I then run the
appusinguvicornI am using a Langgraph agent to access this mcp server using
where
server_paramscontains the url and a list of some default headers that is being used by some of the mcp tools.Now I want to access
appcontext intomcp_appcontext. Is there a way to do this?Beta Was this translation helpful? Give feedback.
All reactions