(name string, description string, args ...mcp.ToolOption)
| 17 | ) |
| 18 | |
| 19 | func newRepositoryTool(name string, description string, args ...mcp.ToolOption) mcp.Tool { |
| 20 | opts := []mcp.ToolOption{ |
| 21 | mcp.WithDescription(description), |
| 22 | explanationArgument, |
| 23 | environmentSourceArgument, |
| 24 | } |
| 25 | |
| 26 | opts = append(opts, args...) |
| 27 | return mcp.NewTool(name, opts...) |
| 28 | } |
| 29 | |
| 30 | type envToolOptions struct { |
| 31 | name string |
no outgoing calls
no test coverage detected