/testing:mcporter [server] [tool]from testing
Use when the user mentions mcporter, says "test an MCP server", "smoke-test these tools", "automate MCP testing", "call a tool from the shell", "list MCP tools", "exercise the gateway tools", or asks for a script that hits MCP endpoints. Covers using mcporter to discover, inspect, and call MCP servers from the shell, and to write repeatable regression or smoke-test scripts. Not for designing new MCP servers, writing server-side handlers, or generic API testing unrelated to MCP.
Ships in testing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
pwdcommand -v mcporter >/dev/null && mcporter --version 2>/dev/null || echo "not installed (npm i -g mcporter)"mcporter list --json 2>/dev/null | jq -r '.servers[] | "\(.status)\t\(.name)"' 2>/dev/null | head -20 || echo "none / mcporter unavailable"mcporter is a shell client for the Model Context Protocol. Use it to list servers, inspect tool schemas, call tools, and drive scripted regression tests over the wire — without writing a TypeScript client.
Auto-loads servers from ./config/mcporter.json plus editor imports (Cursor, Claude Code, Codex, etc.), so most named servers in the user's environment already work without setup.
mcporter list # all configured servers (status only)
mcporter list <server> --schema # tool docs for one server
mcporter list <server> --schema --all-parameters --json
mcporter call <server>.<tool> k=v ... # invoke a tool
mcporter call <server>.<tool> --args '{"k":"v"}' # JSON payload
mcporter call <server>.<tool> --output text # assertion-friendly text
mcporter resource <server> # list resources
mcporter resource <server> <uri> # read a resource
mcporter auth <server> # OAuth handshake only (no listing)
mcporter config doctor # validate all configs
Tool selectors are server.tool. The server argument is a configured server name or a full https://host/mcp URL.
Use mcporter resource for MCP resources:
mcporter call <server>.<tool> k=v # tool call
mcporter resource <server> # list resources
mcporter resource <server> <resource-uri> # resource read
mcporter call <server> --tool <prompt-name> ... # prompt fetch
If the schema isn't obvious, run mcporter list <server> --schema --all-parameters first — guessing arg names against the wrong shape is the #1 wasted call.
| Form | When |
|---|---|
key=value / key:value | Flat scalar args, fast for shell use |
--args '{...}' | Nested objects, arrays, anything with quoting pain |
'server.tool(key: "value", n: 1)' | Function-call syntax when you want it self-documenting in a script |
--output text\|markdown\|json\|raw controls formatting. Use text for
scripted assertions and raw only when inspecting the MCP envelope.
mcporter list --http-url https://host/mcp --schema
mcporter call --stdio 'bun run ./server.ts' my_tool arg=1
mcporter list https://host/mcp # bare URL = HTTP
mcporter call --stdio 'node srv.js' --env API_KEY=$KEY tool arg=1
Persist a working ad-hoc definition with --persist ./config/mcporter.json --yes.
When the user wants a sharable, schema-validated wrapper rather than a shell script, prefer mcporter generate-cli:
mcporter generate-cli --server <name> --compile ./bin/<name>-cli
mcporter generate-cli --command 'npx -y @org/server' --name my-cli --compile ./bin/my-cli
The generated CLI bundles the tool schemas at build time, so every call is type-checked locally before it leaves the process. Inspect a generated binary with mcporter inspect-cli ./bin/my-cli.
The goal: prove each tool returns the right thing for a known input — and catch breakage before sending the call when possible. Keep the script readable.
The template at scripts/smoke.sh (in this skill folder) does three things mcporter doesn't:
inputSchema once and rejects any case whose args are missing a required key. Catches typos locally, no network call.MCP error -32xxx), and tool-level isError: true envelopes as failures (each tagged differently in the report).mcporter call --output json, which currently emits Node util.inspect format (not parseable JSON) on most servers.Each CASES=() row is "label|args|assertion" — a tool name (or ui:// resource URI) as the label, the mcporter call args, and one of five assertion forms (empty=liveness, contains:, regex:, jq:, error:). Bootstrap a server's case list with ./smoke.sh --init <server>, then fill in real values:
./smoke.sh --init lab > cases.sh.fragment # skeleton CASES=() with TODO args
# paste tools into smoke.sh, replace each TODO with a value + assertion, run
# example CASES=() rows
"search|q=hello|contains: result" # tool call + substring assert
"ui://server/status||contains: ok" # resource read (empty args)
The full case-format / assertion-form tables, helper modes, env flags (TIMEOUT_MS, VERBOSE, NO_PREFLIGHT), and the set -e snippet traps are in references/tips-gotchas.md.
Note: don't assert on --output json — it emits Node util.inspect format (not parseable JSON) on most servers. The harness uses --output text for assertions and --output raw only to inspect the isError envelope.
| Symptom | Likely cause | Fix |
|---|---|---|
Unknown MCP server 'X' | Name typo or import not picked up | mcporter list to see actual names; mcporter config list --verbose for sources |
Tool call hangs ~30s then tools unavailable | Stdio binary missing (ENOENT) | Build / install the server binary; check the transport field in --json |
SSE error: Non-200 status code | HTTP server down or auth expired | mcporter auth <server> --reset or check the URL |
| Args rejected with cryptic schema error | Flat k=v against a nested schema | Switch to --args '{...}' |
OAuth timeout | Browser flow didn't complete in time | --oauth-timeout 180000 and rerun mcporter auth |
mcporter list --json | jq '.servers[] | {name, status}' # health snapshot
mcporter list <s> --schema --json | jq '.tools[].name' # tool names only
mcporter call <s>.<t> --args "$(cat payload.json)" --output text
mcporter generate-cli --server <s> --compile ./bin/<s> # ship a binary
key=value on the command line — use --env KEY=$VAR for stdio servers, env-injection for HTTP.mcporter call + a shell loop will do.--output json for machine-parseable output in scripts — it emits Node util.inspect format, not valid JSON. Use --output text for assertions and --output raw for envelope inspection../config/mcporter.json with personal tokens; use editor-imports or --env.references/cli-commands.md — full flag tables for every subcommand (list, call, auth, generate-cli, emit-ts, config, daemon). Load when you need exact flag semantics beyond the quick reference above.references/configuration.md — mcporter.json format, config resolution order, allowedTools/blockedTools, OAuth cache, and all environment variables.references/tips-gotchas.md — real footguns in rough order of frequency: --help coverage gaps, function-call quoting, generate-cli input exclusivity, Bun requirement for --compile, daemon limitations, and string-field coercion. Also holds the full smoke.sh case-format/assertion tables, helper modes, env flags, and set -e snippet traps.references/typescript-api.md — callOnce(), createRuntime(), createServerProxy() API surface and when to use each. Load when the user wants a TypeScript client rather than a shell script.scripts/smoke.sh — the test harness template. Copy and populate CASES=() for a new server.CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)references/cli-commands.md (opens in a new tab)references/configuration.md (opens in a new tab)references/tips-gotchas.md (opens in a new tab)references/typescript-api.md (opens in a new tab)scripts/smoke.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dinglebear-ai/dendrite --plugin testing6 skills in this plugin
/android-app-testingUse when the user wants to live-test an Android APK end-to-end on an emulator/device and get a works/doesn't-work + UI/UX report — driving the real app, not writing test code. Triggers: "test my Android app", "QA this APK", "run the app on the emulator and tell me what breaks", "click through every screen", "review the app's UX", "does my APK work", "test the built APK". Installs/launches the APK, enumerates screens from the accessibility tree, exercises each feature via adb (tap/type/swipe/launch), watches logcat for crashes/ANRs, captures screenshots + UI dumps, and emits a structured report. Primary path is direct local adb; optional richer path via claude-in-mobile. Sibling of web-app-testing and desktop-app-testing (shared report format). Does NOT fire for: building/coding an Android app (use claude-android-ninja / jetpack-compose-expert), iOS, or unit tests./claude-in-mobileThis skill is the RAW claude-in-mobile MCP/CLI driver — use it to issue individual device-automation calls: drive an iOS Simulator, tap/swipe/type on an Android device or emulator, capture or diff screenshots, inspect the UI tree, audit accessibility, fan out across multiple devices, or run guarded Play Store release operations. Triggers: "drive my emulator", "tap this element", "screenshot the simulator", "call a claude-in-mobile tool", "run an autopilot flow". Does NOT produce a structured works/doesn't-work test report — for an end-to-end APK test run with a written report, use android-app-testing (or desktop-app-testing); this skill is the low-level driver those harnesses sit on top of.