Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <server>/<tool> <json>' format, e.g., 'mcp-cli github/search_repos \'{"query":"mcp"}\''`,
details: 'Expected a server/tool target (or separate <server> <tool> arguments after the subcommand)',
suggestion: `Use 'mcp-cli call <server> <tool> <json>' format, e.g., 'mcp-cli call github search_repos \'{"query":"mcp"}\''`,
};
}

Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,11 @@ Usage:
mcp-cli [options] call <server> <tool> Call tool (reads JSON from stdin if no args)
mcp-cli [options] call <server> <tool> <json> 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
Expand Down