MCP server retrieves Herder's data and then uses it in the tool. If passing through ThreadLocal fails, how can it be resolved.
Comment From: john9x
Same question
Comment From: sunyuhan1998
Hi @flamezhang @john9x , Can you be more specific in describing the scenario of the problem you are currently experiencing?
Comment From: john9x
@sunyuhan1998 Hi! I need to pass some incoming headers of the tool request to my backend API.
Comment From: sunyuhan1998
@sunyuhan1998 Hi! I need to pass some incoming headers of the tool request to my backend API.
Do you mean that you expect some client headers to be included when the MCP client invokes tools on the MCP server?
Comment From: john9x
Yes.
https://platform.openai.com/docs/guides/tools-remote-mcp#authentication
Authentication
for example