(name string)
| 82 | } |
| 83 | |
| 84 | func (s *MCPService) ShowServer(name string) (mcp.ServerSchema, error) { |
| 85 | registry, err := mcp.LoadBundledRegistry() |
| 86 | if err != nil { |
| 87 | return mcp.ServerSchema{}, wrapError("MCP_REGISTRY_LOAD_FAILED", err) |
| 88 | } |
| 89 | schema, ok := registry.Get(name) |
| 90 | if !ok { |
| 91 | return mcp.ServerSchema{}, NewError("MCP_SERVER_SCHEMA_NOT_FOUND", "MCP registry server not found", map[string]string{"name": name}) |
| 92 | } |
| 93 | return schema, nil |
| 94 | } |
| 95 | |
| 96 | // ListRegistry returns the discovered (bundled) MCP servers, optionally filtered |
| 97 | // by query, each enriched with the clients it is already installed into at scope. |
nothing calls this directly
no test coverage detected