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

Method GetServerCount

pkg/tools/mcp/manager.go:111–115  ·  view source on GitHub ↗

GetServerCount 获取 Server 数量

()

Source from the content-addressed store, hash-verified

109
110// GetServerCount 获取 Server 数量
111func (m *MCPManager) GetServerCount() int {
112 m.mu.RLock()
113 defer m.mu.RUnlock()
114 return len(m.servers)
115}
116
117// GetTotalToolCount 获取所有 Server 提供的工具总数
118func (m *MCPManager) GetTotalToolCount() int {

Callers 4

TestMCPManager_CreationFunction · 0.95
TestMCPManager_AddServerFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestMCPManager_CreationFunction · 0.76
TestMCPManager_AddServerFunction · 0.76