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

Method GetToolCount

pkg/tools/mcp/server.go:109–113  ·  view source on GitHub ↗

GetToolCount 获取工具数量

()

Source from the content-addressed store, hash-verified

107
108// GetToolCount 获取工具数量
109func (s *MCPServer) GetToolCount() int {
110 s.mu.RLock()
111 defer s.mu.RUnlock()
112 return len(s.tools)
113}
114
115// GetServerID 获取 Server ID
116func (s *MCPServer) GetServerID() string {

Callers 4

TestMCPServer_CreationFunction · 0.95
TestMCPServer_ConnectFunction · 0.95
GetTotalToolCountMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestMCPServer_CreationFunction · 0.76
TestMCPServer_ConnectFunction · 0.76