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

Function mockToolFull

pkg/http/handler_test.go:30–42  ·  view source on GitHub ↗
(name, toolsetID string, readOnly bool, isDefault bool)

Source from the content-addressed store, hash-verified

28}
29
30func mockToolFull(name, toolsetID string, readOnly bool, isDefault bool) inventory.ServerTool {
31 return inventory.ServerTool{
32 Tool: mcp.Tool{
33 Name: name,
34 Annotations: &mcp.ToolAnnotations{ReadOnlyHint: readOnly},
35 },
36 Toolset: inventory.ToolsetMetadata{
37 ID: inventory.ToolsetID(toolsetID),
38 Description: "Test: " + toolsetID,
39 Default: isDefault,
40 },
41 }
42}
43
44type allScopesFetcher struct{}
45

Callers 2

mockToolFunction · 0.85

Calls 1

ToolsetIDTypeAlias · 0.92

Tested by

no test coverage detected