From 668459bfa668d90aa6fab0e8fd87abc2e30e0160 Mon Sep 17 00:00:00 2001 From: haosenwang1018 Date: Mon, 13 Apr 2026 11:49:48 +0000 Subject: [PATCH] docs(help): clarify primary target format --- src/errors.ts | 4 ++-- src/index.ts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/errors.ts b/src/errors.ts index 7883799..500b533 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -224,8 +224,8 @@ export function invalidTargetError(target: string): CliError { code: ErrorCode.CLIENT_ERROR, type: 'INVALID_TARGET', message: `Invalid target format: "${target}"`, - details: 'Expected format: server/tool', - suggestion: `Use 'mcp-cli / ' format, e.g., 'mcp-cli github/search_repos \'{"query":"mcp"}\''`, + details: 'Expected a server/tool target (or separate arguments after the subcommand)', + suggestion: `Use 'mcp-cli call ' format, e.g., 'mcp-cli call github search_repos \'{"query":"mcp"}\''`, }; } diff --git a/src/index.ts b/src/index.ts index 088deed..043a9ef 100755 --- a/src/index.ts +++ b/src/index.ts @@ -356,11 +356,11 @@ Usage: mcp-cli [options] call Call tool (reads JSON from stdin if no args) mcp-cli [options] call Call tool with JSON arguments -Formats (both work): - mcp-cli info server tool Space-separated - mcp-cli info server/tool Slash-separated - mcp-cli call server tool '{}' Space-separated - mcp-cli call server/tool '{}' Slash-separated +Formats (space-separated is the primary form): + mcp-cli info server tool Primary form + mcp-cli info server/tool Also supported + mcp-cli call server tool '{}' Primary form + mcp-cli call server/tool '{}' Also supported Options: -h, --help Show this help message