MCPcopy Create free account
hub / github.com/astercloud/aster / GetServer

Method GetServer

pkg/tools/mcp/manager.go:91–96  ·  view source on GitHub ↗

GetServer 获取指定的 MCP Server

(serverID string)

Source from the content-addressed store, hash-verified

89
90// GetServer 获取指定的 MCP Server
91func (m *MCPManager) GetServer(serverID string) (*MCPServer, bool) {
92 m.mu.RLock()
93 defer m.mu.RUnlock()
94 server, exists := m.servers[serverID]
95 return server, exists
96}
97
98// ListServers 列出所有 Server ID
99func (m *MCPManager) ListServers() []string {

Callers 1

TestMCPManager_GetServerFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMCPManager_GetServerFunction · 0.76