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:
- This file (
SKILL.md) for command strategy and execution rules. - Skill references for concrete command blocks:
references/testing-flow.mdreferences/configuration-and-arguments.mdreferences/output-debugging-and-chaining.mdreferences/errors-and-recovery.md
- Project docs for deeper product behavior:
../docs/getting-started.md../docs/configuration.md../docs/commands.md../docs/testing-guide.md../docs/troubleshooting.md../docs/advanced-usage.md../docs/internals.md
- README files for user-facing framing and examples:
README.md(repo CLI guide)../README.md(workspace docs index)
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
- Follow the five-step verification order in
references/testing-flow.md. - Use config and JSON argument patterns from
references/configuration-and-arguments.md. - Use stream handling, chaining, and env controls from
references/output-debugging-and-chaining.md. - If any command fails unexpectedly, apply fixes in
references/errors-and-recovery.md. - 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
2
Repository
yigitkonur/skill-mcp-cliFirst Seen
12 days ago
Security Audits
Installed on
opencode2
claude-code2
github-copilot2
codex2
kimi-cli2
gemini-cli2