mcp-cli

SKILL.md

MCP CLI Testing Playbook

Validate MCP servers with direct terminal commands and a strict pass/fail workflow.

Core rules

  • Execute commands directly and sequentially.
  • Do not write helper scripts unless explicitly requested.
  • Treat server work as incomplete until verification checks pass.
  • Prefer single-server commands while debugging.
  • After rebuilding a server, retest with MCP_NO_DAEMON=1.

What to load first

Use this progressive order to keep context tight:

  1. This file (SKILL.md) for command strategy and execution rules.
  2. Skill references for concrete command blocks:
    • references/testing-flow.md
    • references/configuration-and-arguments.md
    • references/output-debugging-and-chaining.md
    • references/errors-and-recovery.md
  3. Read only the relevant packaged references instead of looking for external repo docs.
  4. Return to this file only when you need the overall workflow again.

Repository-specific execution mode

When validating this repository source code itself, run the local CLI implementation:

bun run src/index.ts -c ./mcp_servers.json info filesystem
bun run src/index.ts -c ./mcp_servers.json call filesystem read_file '{"path":"./README.md"}'

Use globally installed mcp-cli for normal external workflows.

Execution workflow

  1. Follow the five-step verification order in references/testing-flow.md.
  2. Use config and JSON argument patterns from references/configuration-and-arguments.md.
  3. Use stream handling, chaining, and env controls from references/output-debugging-and-chaining.md.
  4. If any command fails unexpectedly, apply fixes in references/errors-and-recovery.md.
  5. Do not report done until all checklist commands pass.

Minimal quick start

# Install if missing
which mcp-cli || curl -fsSL https://raw.githubusercontent.com/philschmid/mcp-cli/main/install.sh | bash

# Inspect server and schema
mcp-cli info my-server
mcp-cli info my-server my-tool

# Happy path + failure path
mcp-cli call my-server my-tool '{"param":"value"}'
mcp-cli call my-server my-tool '{}'

# Fresh-connection check after rebuild
MCP_NO_DAEMON=1 mcp-cli call my-server my-tool '{"param":"value"}'

If any step fails, continue debugging; do not claim completion.

Weekly Installs
1
First Seen
7 days ago
Installed on
mcpjam1
github-copilot1
junie1
windsurf1
zencoder1
crush1