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

Method HasHandler

pkg/inventory/server_tool.go:94–96  ·  view source on GitHub ↗

HasHandler returns true if this tool has a handler function.

()

Source from the content-addressed store, hash-verified

92
93// HasHandler returns true if this tool has a handler function.
94func (st *ServerTool) HasHandler() bool {
95 return st.HandlerFunc != nil
96}
97
98// Handler returns a tool handler by calling HandlerFunc with the given dependencies.
99// Panics if HandlerFunc is nil - all tools should have handlers.

Calls

no outgoing calls

Tested by 3

TestServerToolHasHandlerFunction · 0.76