MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / ShowServer

Method ShowServer

internal/desktop/mcp_service.go:84–94  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

82}
83
84func (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.

Callers

nothing calls this directly

Calls 4

LoadBundledRegistryFunction · 0.92
wrapErrorFunction · 0.85
NewErrorFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected