MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Tool

Method Tool

mcp-server/tool.go:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (t *Tool) Tool() server.ServerTool {
31 return server.ServerTool{
32 Tool: mcp.NewTool(t.name, t.opts...),
33 Handler: generateInvokeTool(t.url, t.method, t.contentType, t.params),
34 }
35}
36
37func NewTool(name string, uri string, method string, contentType string, params map[string]*Param, opts ...mcp.ToolOption) ITool {
38 return &Tool{

Callers

nothing calls this directly

Calls 1

generateInvokeToolFunction · 0.85

Tested by

no test coverage detected