MCPcopy
hub / github.com/github/github-mcp-server / GetToolScopeMap

Function GetToolScopeMap

pkg/scopes/map.go:34–39  ·  view source on GitHub ↗

GetToolScopeMap returns the global tool scope map. Returns an empty map if SetToolScopeMapFromInventory hasn't been called yet.

()

Source from the content-addressed store, hash-verified

32// GetToolScopeMap returns the global tool scope map.
33// Returns an empty map if SetToolScopeMapFromInventory hasn't been called yet.
34func GetToolScopeMap() (ToolScopeMap, error) {
35 if globalToolScopeMap == nil {
36 return make(ToolScopeMap), nil
37 }
38 return globalToolScopeMap, nil
39}
40
41// GetToolScopeInfo returns scope information for a specific tool from the global scope map.
42func GetToolScopeInfo(toolName string) (*ToolScopeInfo, error) {

Callers 2

GetToolScopeInfoFunction · 0.85
TestGetToolScopeMapFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetToolScopeMapFunction · 0.68