Dynamic Access Token for the MCP inside the Agent Builder UI

Hello. Right now, the Agent has a way to connect to the MCP through the tools section. However, if the MCP has the authentication we should manually type the api/auth token. This is acceptable for some services but is there any way i can inject this token dynamically if a user has already authenticated within the app (using oauth) using the Agents Builder UI?

Also, is it a bad practice to use the client tool and then handle calling MCP/other tools from the client? (Just as a temp workaround)

p.s. Probably we can do this using the Agents SDK.

facing the same issue – MCP node in agent builder should pick values from state as {{state.mcp_auth_token}} so that while initialising the chat all the required params can be passed. Haven’t found anything so far around this

This is an important feature, please expose the state variables for use within the MCP configuration.