Add MCP endpoint at /admin/mcp for AI/LLM access to container metadata#3659
Draft
Add MCP endpoint at /admin/mcp for AI/LLM access to container metadata#3659
Conversation
Expose all container admin metadata (config, JVM, web actions, Guice bindings, service graph, database) via MCP protocol on a new /admin/mcp endpoint. This allows AI/LLM agents to discover and query the same metadata available through the admin dashboard REST API. New files: - ContainerAdminMcp: Guice qualifier annotation for the MCP server group - ContainerAdminMcpWebAction: POST endpoint at /admin/mcp - ContainerMetadataTool: get_metadata tool to query metadata by ID - ContainerMetadataResources: 6 MCP resources (config, jvm, web-actions, guice, service-graph, database-hibernate) - ContainerAdminPrompt: container_admin prompt for inspection/debugging - ContainerAdminMcpModule: Guice module wiring everything together Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Regenerate misk-admin.api to include new MCP public classes - Add missing direct dependency declarations required by projectHealth: api: kotlinxCoroutinesCore, kotlinxSerializationCore, mcpKotlinSdkCore implementation: kotlinxSerializationJson, mcpKotlinSdkServer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
/admin/mcpthat exposes all container admin metadata to AI/LLM agentsget_metadatatool, 6 MCP resources (config, jvm, web-actions, guice, service-graph, database-hibernate), and acontainer_adminpromptMap<String, Provider<Metadata>>multibinder (same as AllMetadataAction) so any custom MetadataProvider is automatically available@ContainerAdminMcpqualifier to create an isolated MCP server group with@AdminDashboardAccessauthorizationTest plan
misk-admintest suite passes🤖 Generated with Claude Code