We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7b889 commit a9e539cCopy full SHA for a9e539c
main.go
@@ -121,8 +121,9 @@ func makeHandler(cfg ForgeConfig, tcfg ToolConfig) server.ToolHandlerFunc {
121
return func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
122
// 1. Gather variables
123
vars := map[string]interface{}{}
124
+ args := req.GetArguments()
125
for _, inp := range tcfg.Inputs {
- val, ok := req.Params.Arguments[inp.Name]
126
+ val, ok := args[inp.Name]
127
if !ok && inp.Required {
128
return mcp.NewToolResultError(fmt.Sprintf("missing required argument: %s", inp.Name)), nil
129
}
0 commit comments