Setting headers for MCP tools dynamically #3701
-
|
I want to pass headers to my MCP tools dynamically. With current setup I have to initialise my tools every time to set headers dynamically. Is it possible to initialise the MultiMCPTools once and then headers can be changed dynamically when agent calls the MCP tool? MultiMCPTools( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hey @simranjit11, this is not possible right now. But I totally see how it would be useful. We will soon work on improving some things about our MCP integration. I think keeping the MCP client accessible through our MCPTools and MultiMCPTools classes would be a great add-on and would enable this use-case. Will keep this in mind - thanks for the idea and for using Agno! |
Beta Was this translation helpful? Give feedback.
Hey @simranjit11, this is not possible right now.
But I totally see how it would be useful. We will soon work on improving some things about our MCP integration. I think keeping the MCP client accessible through our MCPTools and MultiMCPTools classes would be a great add-on and would enable this use-case.
Will keep this in mind - thanks for the idea and for using Agno!