MCPcopy Index your code
hub / github.com/github/github-mcp-server / SetToolScopeMapFromInventory

Function SetToolScopeMapFromInventory

pkg/scopes/map.go:22–24  ·  view source on GitHub ↗

SetToolScopeMapFromInventory builds and stores a tool scope map from an inventory. This should be called after building the inventory to make scopes available for middleware.

(inv *inventory.Inventory)

Source from the content-addressed store, hash-verified

20// SetToolScopeMapFromInventory builds and stores a tool scope map from an inventory.
21// This should be called after building the inventory to make scopes available for middleware.
22func SetToolScopeMapFromInventory(inv *inventory.Inventory) {
23 globalToolScopeMap = GetToolScopeMapFromInventory(inv)
24}
25
26// SetGlobalToolScopeMap sets the global tool scope map directly.
27// This is useful for testing when you don't have a full inventory.

Callers 1

initGlobalToolScopeMapFunction · 0.92

Calls 1

Tested by

no test coverage detected