spring-ai
spring-ai copied to clipboard
Allow defining multiple MCP servers in a single application, with parametrized paths
trafficstars
Expected Behavior
Developers should be able to register multiple MCP servers on non-default paths, and these paths could be parametrized in a way similar to how it's done in normal controllers with @PathVariable, or something similar in functionality.
Current Behavior
Only a single MCP server can be hosted in the app, and its path cannot be parametrized.
Context
There are tools, such as https://zapier.com/ , which seemingly allow creating customized MCP servers, with only some of their integrations available as tools.
This is also similar to how https://atlassian.com/rovo allows creating multiple agents (that is more A2A specific though) with limited sets of tools.