You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature: Integrate New Kagenti Operator, MCPServer CR Support, and Identity Webhooks Into Installer and UI #401
We are migrating to the new kagenti-operator, which manages the lifecycle of Agent and AgentBuild custom resources. MCPServer resources continue to be managed by the toolhive-operator, which is already installed by the kagenti installer.
To complete the integration, we must update the kagenti installer and Kagenti UI to install the correct operator components, identity-injection webhooks, and to support creation of MCPServer CRs as part of the workflow for deploying MCP servers.
Background
The updated architecture introduces the following components:
kagenti-operator (new)
Manages:
Agent CRs
AgentBuild CRs
Replaces the old platform-operator
toolhive-operator
Already being installed by the kagenti installer (no installer changes needed).
Manages:
MCPServer CRs
Responsible for reconciling and deploying MCP servers.
kagenti-webhooks (from kagenti-extensions repo)
Mutating/Validating webhooks that:
Inject SPIFFE/SVID identity sidecars into Agent CRs
Inject SPIFFE/SVID identity sidecars into MCPServer CRs
Must be installed by the kagenti installer as part of the control-plane setup.
To adopt this architecture, the installer and UI must be updated accordingly.
Required Changes
Update Kagenti Installer
Replace installation of platform-operator with the new kagenti-operator.
Ensure installer also deploys the kagenti-webhooks component from the kagenti-extensions repo, since these webhooks handle identity sidecar injection for:
@david-martin This is a Kagenti issue to create MCP Gateway MCPServer CR, and Gateway HTTPRoute, when deploying tools. Should the MCP Gateway team be tracking this work?
I had proposed in Kuadrant/mcp-gateway#338 that we have a CLI that creates the needed pieces. If this CLI was in Go, we could implement it through a Go library in the MCP Server to create the CRs needed. It might be good to have this work done in one place, at least for the Kagenti org, rather than have each Kagenti team reinvent the logic to create MCP Gateway CRs.
Thanks for tagging me on this @esnible
I discussed with shane (mentioned in Kuadrant/mcp-gateway#338 (comment)) that maybe the mcp gateway can respond to toolhive MCPServers being created, and wire up the necessary mcp gateway pieces. I'd prefer that was controller based than cli based.
Whether that happens or not shouldn't stop the work in this issue though.
There's obviously value in what's being done here for the kagenti platform.
@david-martin On a shared cluster, some users might not want to use the MCP Gateway. (For example, a private tool). Automatically deploying everything to the gateway when it is deployed via ToolHive seems dangerous to me. If we do have it, we should have a way to opt-in or opt-out of this behavior with labels or annotations on the ToolHive MCPGateway CR.
My suggestion is that the code to create the HTTPRoute and the MCP Gateway MCPServer should be in a library package, rather than being mixed with controller code. The controller should use the library. If we decide to have a CLI, it could use the same library.
Activity
esnible commentedon Nov 19, 2025
The MCP CRs will also require HTTPRoutes, I believe.
pdettori commentedon Nov 19, 2025
+1
cwiklik commentedon Dec 2, 2025
This issue depends on:
esnible commentedon Dec 2, 2025
@david-martin This is a Kagenti issue to create MCP Gateway MCPServer CR, and Gateway HTTPRoute, when deploying tools. Should the MCP Gateway team be tracking this work?
I had proposed in Kuadrant/mcp-gateway#338 that we have a CLI that creates the needed pieces. If this CLI was in Go, we could implement it through a Go library in the MCP Server to create the CRs needed. It might be good to have this work done in one place, at least for the Kagenti org, rather than have each Kagenti team reinvent the logic to create MCP Gateway CRs.
david-martin commentedon Dec 3, 2025
Thanks for tagging me on this @esnible
I discussed with shane (mentioned in Kuadrant/mcp-gateway#338 (comment)) that maybe the mcp gateway can respond to toolhive MCPServers being created, and wire up the necessary mcp gateway pieces. I'd prefer that was controller based than cli based.
Whether that happens or not shouldn't stop the work in this issue though.
There's obviously value in what's being done here for the kagenti platform.
esnible commentedon Dec 3, 2025
@david-martin On a shared cluster, some users might not want to use the MCP Gateway. (For example, a private tool). Automatically deploying everything to the gateway when it is deployed via ToolHive seems dangerous to me. If we do have it, we should have a way to opt-in or opt-out of this behavior with labels or annotations on the ToolHive MCPGateway CR.
My suggestion is that the code to create the HTTPRoute and the MCP Gateway MCPServer should be in a library package, rather than being mixed with controller code. The controller should use the library. If we decide to have a CLI, it could use the same library.