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

Method WithToolsets

pkg/inventory/builder.go:111–115  ·  view source on GitHub ↗

WithToolsets specifies which toolsets should be enabled. Special keywords: - "all": enables all toolsets - "default": expands to toolsets marked with Default: true in their metadata Input strings are trimmed of whitespace and duplicates are removed. Pass nil to use default toolsets. Pass an empty s

(toolsetIDs []string)

Source from the content-addressed store, hash-verified

109// Pass nil to use default toolsets. Pass an empty slice to disable all toolsets.
110// Returns self for chaining.
111func (b *Builder) WithToolsets(toolsetIDs []string) *Builder {
112 b.toolsetIDs = toolsetIDs
113 b.toolsetIDsIsNil = toolsetIDs == nil
114 return b
115}
116
117// WithTools specifies additional tools that bypass toolset filtering.
118// These tools are additive - they will be included even if their toolset is not enabled.

Calls

no outgoing calls