Skip to content

docs: document a reusable CLI smoke-testing workflow for v2 #1886

Description

@jiezeng2004-design

Context

PR #1635 proposed a reusable CLI smoke-testing guide, but it targeted the frozen v1 branch and was closed unmerged. The maintainer guidance was to report the underlying need against v2 as an issue rather than opening an external PR.

v2 already has useful CLI command examples in clients/cli/README.md and an internal end-to-end check in scripts/smoke-cli.mjs. The remaining documentation gap is a user-facing workflow for testing an arbitrary MCP server from a shell or CI job.

Proposed documentation scope

A short v2 guide could show how to:

  1. connect to a stdio or HTTP/SSE server;
  2. run tools/list and assert an expected tool exists;
  3. run one representative tools/call with safe arguments;
  4. consume machine-readable output with --format json and jq;
  5. use the current exit-code behavior so failed tool calls and transport errors fail CI;
  6. avoid interactive OAuth in automation, using the documented non-interactive/stored-auth options where applicable; and
  7. add basic negative assertions, such as confirming a sensitive-path request is refused and captured output does not contain obvious secret patterns.

The examples should be generic and version-correct rather than porting the v1 document verbatim, because v2 has different output, authentication, catalog/config, and exit-code semantics.

Expected outcome

A concise guide or an expanded section of clients/cli/README.md containing a copyable connect → list → call → assert workflow for local development and CI.

Related closed v1 contribution: #1635.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature requestv2Issues and PRs for v2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions