(name string, uri string, method string, contentType string, params map[string]*Param, opts ...mcp.ToolOption)
| 35 | } |
| 36 | |
| 37 | func NewTool(name string, uri string, method string, contentType string, params map[string]*Param, opts ...mcp.ToolOption) ITool { |
| 38 | return &Tool{ |
| 39 | name: name, |
| 40 | url: uri, |
| 41 | method: method, |
| 42 | contentType: contentType, |
| 43 | params: params, |
| 44 | opts: opts, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func generateInvokeTool(path string, method string, contentType string, params map[string]*Param) func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { |
| 49 | return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { |
no outgoing calls
no test coverage detected