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

Method IsReadOnly

pkg/inventory/server_tool.go:89–91  ·  view source on GitHub ↗

IsReadOnly returns true if this tool is marked as read-only via annotations.

()

Source from the content-addressed store, hash-verified

87
88// IsReadOnly returns true if this tool is marked as read-only via annotations.
89func (st *ServerTool) IsReadOnly() bool {
90 return st.Tool.Annotations != nil && st.Tool.Annotations.ReadOnlyHint
91}
92
93// HasHandler returns true if this tool has a handler function.
94func (st *ServerTool) HasHandler() bool {

Callers 4

isToolEnabledMethod · 0.80
TestServerToolIsReadOnlyFunction · 0.80
collectToolScopesFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestServerToolIsReadOnlyFunction · 0.64