Skip to content

Commit dff22dd

Browse files
committed
improve list-tools output
1 parent 0c57985 commit dff22dd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cmd/src/mcp.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,19 @@ func mcpMain(args []string) error {
2323

2424
subcmd := args[0]
2525
if subcmd == "list-tools" {
26-
fmt.Println("Available tools")
26+
fmt.Println("The following tools are available:")
2727
for name := range tools {
28-
fmt.Printf("- %s\n", name)
28+
fmt.Printf(" %s\n", name)
2929
}
30+
fmt.Println("\nUSAGE:")
31+
fmt.Printf(" • Invoke a tool\n")
32+
fmt.Printf(" src mcp <tool-name> <flags>\n")
33+
fmt.Printf("\n • View the Input / Output Schema of a tool\n")
34+
fmt.Printf(" src mcp <tool-name> schema\n")
35+
fmt.Printf("\n • List the available flags of a tool\n")
36+
fmt.Printf(" src mcp <tool-name> -h\n")
37+
fmt.Printf("\n • View the Input / Output Schema of a tool\n")
38+
fmt.Printf(" src mcp <tool-name> schema\n")
3039
return nil
3140
}
3241

0 commit comments

Comments
 (0)