Skip to content

feature: Integrate New Kagenti Operator, MCPServer CR Support, and Identity Webhooks Into Installer and UI #401

Description

@cwiklik

Summary

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

  1. 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:

    • Agents

    • MCPServers

  • Ensure installer applies the updated CRDs:

    • agents.agent.kagenti.dev

    • agentbuilds.agent.kagenti.dev

  • Update RBAC as needed for the new components.

Activity

  1. self-assigned this
    on Nov 19, 2025
  2. added
    enhancement
    on Nov 19, 2025
  3. added theissue type on Nov 19, 2025
  4. esnible commented on Nov 19, 2025

    @esnible
    Member

    The MCP CRs will also require HTTPRoutes, I believe.

  5. pdettori commented on Nov 19, 2025

    @pdettori
    Member

    +1

  6. cwiklik commented on Dec 2, 2025

    @cwiklik
    ContributorAuthor

    This issue depends on:

  7. esnible commented on Dec 2, 2025

    @esnible
    Member

    @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.

  8. david-martin commented on Dec 3, 2025

    @david-martin

    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.

  9. esnible commented on Dec 3, 2025

    @esnible
    Member

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions