Feat/custom mcp servers#1094
Open
lukashankeln wants to merge 6 commits into
Open
Conversation
lukashankeln
marked this pull request as ready for review
July 24, 2026 12:36
Introduces McpServer (mogenius.com/v1alpha1) — a namespaced resource that declares an external MCP server agents can pull tools from. - type_mcp_server.go: McpServer/Spec/Auth/Header/Status types with transport (streamableHttp, sse), bearer/apiKey auth, per-header secret refs, allowedTools allowlist, and Ready status condition - type_agent.go: McpServerRefs []string field on AgentSpec - zz_generated.deepcopy.go: DeepCopy for all new types - utils/config.go: McpServerResource descriptor - store/store.go: GetMcpServer / GetAllMcpServers - crds/client/v1alpha1.go: full CRUD + UpdateMcpServerStatus client methods - mogenius.com_mcpservers.yaml: generated CRD manifest Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Validates McpServer CRs, probes the server on create/update, and writes status (Ready condition, availableTools, toolCount, lastConnectedAt). Also validates mcpServerRefs on Agent CRs so missing servers surface as a Ready=False condition rather than a silent runtime error. - mcp_servers.go: reconcileMcpServers + evaluateMcpServer (spec validation, secret existence checks, transport enum check) - reconciler/agents.go: McpServerRef existence check in evaluateAgent - factory.go: register McpServer reconciler with NamespaceFilter Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Agents that list mcpServerRefs now have those servers' tools available during every run, in addition to the built-in read-only K8s/Helm tools. - mcp_client.go: SSE transport support, arbitrary header injection, AllowedTools filtering, session-scoped GetTools/IsTool/CallTool methods, RemoveSession - mcp_crd_connector.go: NotifyMcpServerChanged (reconnect + return discovered tools), NotifyMcpServerDeleted, RefreshAllMcpServerCRConnections - aimanager.go: extend AiManager interface; call RefreshAllMcpServerCRConnections at startup - tools.go: McpSessions field on ToolContext - agents.go: populate McpSessions from agent.Spec.McpServerRefs - anthropic/openai/ollama: inject session-scoped MCP tools into the agent pipeline and dispatch MCP tool calls alongside built-in tools Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Lukas Hankeln <lukashankeln@googlemail.com>
Signed-off-by: Lukas Hankeln <lukashankeln@googlemail.com>
Signed-off-by: Lukas Hankeln <lukashankeln@googlemail.com>
lukashankeln
force-pushed
the
feat/custom-mcp-servers
branch
from
July 24, 2026 12:37
0f2dc71 to
629b18f
Compare
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.
No description provided.