From 36706040f4770192f7771941093b566525d9c5eb Mon Sep 17 00:00:00 2001 From: Shi Jin Date: Sat, 6 Dec 2025 16:51:13 -0700 Subject: [PATCH] docs: fix shell help text to use resource: instead of resource: The shell command's resource shorthand expects a URI parameter, not a name. This updates the help text to accurately reflect this requirement, helping users avoid the 'Invalid request parameters' error when trying to read resources by name instead of URI. --- cmd/mcptools/commands/shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mcptools/commands/shell.go b/cmd/mcptools/commands/shell.go index 3647ede..42a7a0f 100644 --- a/cmd/mcptools/commands/shell.go +++ b/cmd/mcptools/commands/shell.go @@ -341,7 +341,7 @@ func printShellHelp(thisCmd *cobra.Command) { fmt.Fprintln(thisCmd.OutOrStdout(), " format [json|pretty|table] Get or set output format") fmt.Fprintln(thisCmd.OutOrStdout(), "Direct Tool Calling:") fmt.Fprintln(thisCmd.OutOrStdout(), " {\"param\": \"value\"} Call a tool directly with JSON parameters") - fmt.Fprintln(thisCmd.OutOrStdout(), " resource: Read a resource directly") + fmt.Fprintln(thisCmd.OutOrStdout(), " resource: Read a resource directly") fmt.Fprintln(thisCmd.OutOrStdout(), " prompt: Get a prompt directly") fmt.Fprintln(thisCmd.OutOrStdout(), "Special Commands:") fmt.Fprintln(thisCmd.OutOrStdout(), " /h, /help Show this help")