(clientName, scope, name string)
| 59 | } |
| 60 | |
| 61 | func (s *MCPService) Remove(clientName, scope, name string) (OperationResult, error) { |
| 62 | client, ok := mcp.ClientByName(clientName) |
| 63 | if !ok { |
| 64 | return OperationResult{}, NewError("MCP_CLIENT_NOT_FOUND", "unsupported MCP client", map[string]string{"client": clientName}) |
| 65 | } |
| 66 | path, removed, err := mcp.RemoveServer(client, mcp.Scope(scope), name) |
| 67 | if err != nil { |
| 68 | return OperationResult{}, wrapError("MCP_REMOVE_FAILED", err) |
| 69 | } |
| 70 | if !removed { |
| 71 | return OperationResult{}, NewError("MCP_SERVER_NOT_FOUND", "MCP server not found", map[string]string{"name": name}) |
| 72 | } |
| 73 | return OperationResult{OK: true, Message: "MCP server removed", Path: path}, nil |
| 74 | } |
| 75 | |
| 76 | func (s *MCPService) SearchRegistry(query string) ([]mcp.ServerSchema, error) { |
| 77 | registry, err := mcp.LoadBundledRegistry() |
nothing calls this directly
no test coverage detected