Back to list
outfitter-dev

mcp-testing

by outfitter-dev

Browser automation for AI agents

0🍴 0📅 Jan 24, 2026

SKILL.md


name: mcp-testing description: MCP testing guidance and patterns. Loaded by /ops/test/mcp command or subagents for comprehensive Navigator MCP server testing. compatibility: Requires bun, jq, and navigator-server running on :9334 allowed-tools: Read Glob Grep Skill TodoWrite Bash(./.claude/scripts/run-mcp-tests.sh *) Bash(nav *) Bash(nav-dev *) metadata: author: outfitter-dev version: "1.0"

Navigator MCP Testing

Automated tests for Navigator MCP server via JSON-RPC protocol.

Quick Start

# Start server
bun run dev

# Run tests
./.claude/scripts/run-mcp-tests.sh schema-validation
./.claude/scripts/run-mcp-tests.sh --all

Structure

.claude/
├── commands/ops/test/mcp.md         # Command definition
├── scripts/run-mcp-tests.sh         # Test runner (all logic here)
├── scripts/lib/test-runner-lib.sh   # Shared test library
└── skills/mcp-testing/SKILL.md      # This file

Test Categories

CategoryTestsWhat It Validates
schema-validation7Zod schema validation, missing/invalid params
action-routing7Action dispatch for all action types
error-responses4Error codes and structured error handling
response-formatting4MCP content structure (text/image types)

Output

.scratch/testing/
├── 20260116-abc12-mcp-schema-validation.md        # Results table
├── 20260116-abc12-mcp-schema-validation-debug.log # Debug output
└── ...

Adding Tests

Edit .claude/scripts/run-mcp-tests.sh:

# Add a test to existing category
run_mcp_test 8 "New test name" '{"action":"snap"}' "expected_pattern" "false"  # false = expect success

# Add new category
run_new_category() {
  setup_category "new-category"
  log "Running new-category tests..."

  # Setup: navigate to test page
  mcp_call '{"action":"navigate","url":"https://example.com"}' >/dev/null 2>&1

  run_mcp_test 1 "Test name" '{"action":"..."}' "pattern" "false"
  # ... more tests

  finalize_category
}

Then add to main():

new-category) test_new_category || exit_code=1 ;;

Key Differences from CLI Tests

AspectCLIMCP
ProtocolHTTP to serverJSON-RPC over stdio
InputShell argumentsJSON objects
OutputJSON stdoutMCP content array
Error detectionExit code + stderrisError flag

Exit Codes

  • 0 - All passed
  • 1 - Failures
  • 2 - Setup error (server not running, jq missing)

Score

Total Score

45/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon