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

Function SetGlobalToolScopeMap

pkg/scopes/map.go:28–30  ·  view source on GitHub ↗

SetGlobalToolScopeMap sets the global tool scope map directly. This is useful for testing when you don't have a full inventory.

(m ToolScopeMap)

Source from the content-addressed store, hash-verified

26// SetGlobalToolScopeMap sets the global tool scope map directly.
27// This is useful for testing when you don't have a full inventory.
28func SetGlobalToolScopeMap(m ToolScopeMap) {
29 globalToolScopeMap = m
30}
31
32// GetToolScopeMap returns the global tool scope map.
33// Returns an empty map if SetToolScopeMapFromInventory hasn't been called yet.

Callers 2

TestGetToolScopeMapFunction · 0.85
TestGetToolScopeInfoFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestGetToolScopeMapFunction · 0.68
TestGetToolScopeInfoFunction · 0.68