Feat: Add MCP Gateway support with tool prefix namespacing#14
Open
kellyaa wants to merge 2 commits intokagenti:mainfrom
Open
Feat: Add MCP Gateway support with tool prefix namespacing#14kellyaa wants to merge 2 commits intokagenti:mainfrom
kellyaa wants to merge 2 commits intokagenti:mainfrom
Conversation
Signed-off-by: Kelly Abuelsaad <kna@us.ibm.com>
Contributor
Author
Contributor
|
Great. I'll try it out. I'm still closing on the baseline results (removing bottlenecks for scalability). If we could get it some insights from running with and without it , for the presention on Monday. It will really drive the message. A few questions:
|
Signed-off-by: Kelly Abuelsaad <kna@us.ibm.com>
Contributor
Author
Contributor
Author
|
Claude thinks it may have to do with literal function name checking here? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
--use-mcp-gatewayflag to deployment and evaluation scripts to route MCP traffic through the MCP Gateway instead of connecting directly to benchmark MCP serversdeploy-benchmark.shcreates anHTTPRouteandMCPServerRegistrationCR to register the MCP server with the gatewaydeploy-agent.shpoints the agent at the gateway service when the flag is setevaluate-benchmark.shport-forwards the gateway and setsEXGENTIC_MCP_TOOL_PREFIXso the runner prepends the gateway-assigned prefix (e.g.exgentic_) to every MCP tool calldeploy-and-evaluate.shpropagates the flag to all sub-scripts and supportsUSE_MCP_GATEWAY=truein.envmcp_tool_prefixconfig field andMCPClient._tool_name()helper that transparently prefixeslist_tasks,create_session,evaluate_session, anddelete_sessioncallsexample.envwith MCP Gateway configuration sectionRelated issue(s)
(Optional) Testing Instructions
./deploy-and-evaluate.sh --benchmark tau2 --agent tool_callingand verify evaluation completes as before./deploy-and-evaluate.sh --benchmark tau2 --agent tool_calling --use-mcp-gatewayand verify:deploy-benchmark.shcreates theHTTPRouteandMCPServerRegistrationresources (kubectl get httproutes,mcpserverregistrations -n team1)deploy-agent.shsetsMCP_URLto the gateway endpointevaluate-benchmark.shport-forwards the gateway onlocalhost:7770and setsEXGENTIC_MCP_TOOL_PREFIX=exgentic_DEBUGlog level)USE_MCP_GATEWAY=truein.envand confirmdeploy-and-evaluate.shpicks it up without the CLI flagFixes #