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

Method WithTools

pkg/inventory/builder.go:123–126  ·  view source on GitHub ↗

WithTools specifies additional tools that bypass toolset filtering. These tools are additive - they will be included even if their toolset is not enabled. Read-only filtering still applies to these tools. Input is cleaned (trimmed, deduplicated) during Build(). Deprecated tool aliases are automatica

(toolNames []string)

Source from the content-addressed store, hash-verified

121// Deprecated tool aliases are automatically resolved to their canonical names during Build().
122// Returns self for chaining.
123func (b *Builder) WithTools(toolNames []string) *Builder {
124 b.additionalTools = toolNames
125 return b
126}
127
128// WithFeatureChecker sets the feature flag checker function.
129// The checker receives a context (for actor extraction) and feature flag name,

Calls

no outgoing calls