()
| 28 | } |
| 29 | |
| 30 | func (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 | |
| 37 | func NewTool(name string, uri string, method string, contentType string, params map[string]*Param, opts ...mcp.ToolOption) ITool { |
| 38 | return &Tool{ |
nothing calls this directly
no test coverage detected