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

Method WithReadOnly

pkg/inventory/builder.go:93–96  ·  view source on GitHub ↗

WithReadOnly sets whether only read-only tools should be available. When true, write tools are filtered out. Returns self for chaining.

(readOnly bool)

Source from the content-addressed store, hash-verified

91// WithReadOnly sets whether only read-only tools should be available.
92// When true, write tools are filtered out. Returns self for chaining.
93func (b *Builder) WithReadOnly(readOnly bool) *Builder {
94 b.readOnly = readOnly
95 return b
96}
97
98func (b *Builder) WithServerInstructions() *Builder {
99 b.generateInstructions = true

Calls

no outgoing calls