YuZhangLarry opened a new pull request, #1468:
URL: https://github.com/apache/dubbo-admin/pull/1468
## 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
- **Server** (`pkg/mcp/core/`): MCP protocol implementation with JSON-RPC
2.0
- **Registry** (`pkg/mcp/registry/`): Tool registration and management
- **Tools** (`pkg/mcp/tools/`): 11 tools for Dubbo resource operations
- **Transport** (`pkg/mcp/transport/`): Stdio and HTTP transport layers
- **Types** (`pkg/mcp/types/`): Request/response schemas and validation
### Transport Layers
- **Stdio**: For local Claude Desktop integration via stdin/stdout
- **HTTP**: For remote connections with CORS and SSE support
- **Authentication**: Optional Bearer Token for HTTP endpoint
### Tool Categories
- **Cluster**: `get_cluster_info`, `global_search`
- **Service**: `search_services`, `get_service_detail`,
`get_service_instances`
- **Instance**: `search_instances`, `get_instance_detail`,
`get_instance_metrics`
- **Application**: `get_application_detail`, `get_application_instances`,
`get_application_services`
## Configuration
```yaml
mcp:
enabled: true
path: /api/mcp
apiKey: "your-secret-key" # Optional
**Please check any characteristics that apply to this pull request.**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]