We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b0bec1 + 5d1e211 commit dfa0194Copy full SHA for dfa0194
1 file changed
cmd/src/mcp.go
@@ -115,16 +115,20 @@ func mcpMain(args []string) error {
115
}
116
117
func printSchemas(tool *mcp.ToolDef) error {
118
- input, err := json.Marshal(tool.InputSchema)
119
- if err != nil {
120
- return err
+ var schema = struct {
+ Name string `json:"tool"`
+ Input any `json:"inputSchema"`
121
+ Output any `json:"outputSchema"`
122
+ }{
123
+ Name: tool.Name,
124
+ Input: tool.InputSchema,
125
+ Output: tool.OutputSchema,
126
- output, err := json.Marshal(tool.OutputSchema)
127
+ jsonVal, err := json.Marshal(schema)
128
if err != nil {
129
return err
130
-
- fmt.Printf("Input:\n%v\nOutput:\n%v\n", string(input), string(output))
131
+ fmt.Println(string(jsonVal))
132
return nil
133
134
0 commit comments