feat: add Model Context Protocol (MCP) server with HTTP transport and authentication#1468
Open
YuZhangLarry wants to merge 1 commit intoapache:aifrom
Open
feat: add Model Context Protocol (MCP) server with HTTP transport and authentication#1468YuZhangLarry wants to merge 1 commit intoapache:aifrom
YuZhangLarry wants to merge 1 commit intoapache:aifrom
Conversation
…t and authentication ## Summary Implement Model Context Protocol (MCP) server for Dubbo Admin to enable AI integration through standardized tool interfaces. ## Key Features - **Modular Architecture**: Core components (server, registry, tools, transport, types) - **Comprehensive Tool Support**: 11 tools covering cluster info, service discovery, instance management, metrics, and application details - **Dual Transport Support**: - Stdio transport for local Claude Desktop integration - HTTP transport for remote connections with JSON-RPC 2.0 - **Security**: Optional Bearer Token authentication for HTTP endpoint ## Configuration ## Test plan - [x] Unit tests for core components - [x] Integration tests - [x] Manual testing with Claude Desktop Co-Authored-By: Claude Opus 4.7 (1M context) <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
Implement Model Context Protocol (MCP) server for Dubbo Admin to enable AI integration through standardized tool interfaces. This allows AI assistants (like Claude) to directly interact with Dubbo resources.
Architecture
Core Components
pkg/mcp/core/): MCP protocol implementation with JSON-RPC 2.0pkg/mcp/registry/): Tool registration and managementpkg/mcp/tools/): 11 tools for Dubbo resource operationspkg/mcp/transport/): Stdio and HTTP transport layerspkg/mcp/types/): Request/response schemas and validationTransport Layers
Tool Categories
get_cluster_info,global_searchsearch_services,get_service_detail,get_service_instancessearch_instances,get_instance_detail,get_instance_metricsget_application_detail,get_application_instances,get_application_servicesConfiguration