一键导入
test-mcp-compliance
Validates Model Context Protocol (MCP) compliance by running official compliance test suite against Pierre server
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validates Model Context Protocol (MCP) compliance by running official compliance test suite against Pierre server
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when designing prompts for LLMs, optimizing model performance, building evaluation frameworks, or implementing advanced prompting techniques like chain-of-thought, few-shot learning, or structured outputs.
How to deploy Dravr infrastructure and apply Cloud Run config changes. Use when editing infra/ terraform, when a merged code change is live but a Cloud Run setting (cpu, memory, min/max instances, env var, scaling) hasn't taken effect, or when asked to plan/apply infra. Explains the two-pipeline model (app binary auto-deploys on push; terraform infra config is a separate manual apply) plus the cpu/cpu_idle guardrails.
Enforces zero-tolerance code quality policy using Clippy with strict lints, all warnings treated as errors
Write well-formatted notes to the dravr-vault Obsidian knowledge base. Use this skill whenever creating or updating an ADR, runbook, plan, API doc, guide, session output, or any structured document that should land in the vault — even when the user doesn't say "Obsidian" explicitly. Delegates to obsidian:obsidian-cli to write to the live vault and applies Dravr frontmatter and formatting standards.
Bootstrap Pierre server with database, admin user, coaches, and test users for development and testing
Validates coach markdown files for required frontmatter fields, sections, and naming conventions
| name | test-mcp-compliance |
| description | Validates Model Context Protocol (MCP) compliance by running official compliance test suite against Pierre server |
| user-invocable | true |
Validates Model Context Protocol (MCP) compliance by running the official compliance test suite against the Pierre server.
Run this skill before:
mcp-compliance repository cloned to ../mcp-compliance/# Ensure mcp-compliance repo exists and run tests
./scripts/ci/ensure-mcp-compliance.sh
# 1. Ensure compliance suite is installed
./scripts/ci/ensure-mcp-compliance.sh
# 2. Start Pierre server
cargo run --bin pierre-mcp-server &
SERVER_PID=$!
sleep 3
# 3. Run compliance tests
cd ../mcp-compliance
bun test -- --server="http://localhost:8081/mcp"
TEST_RESULT=$?
cd -
# 4. Cleanup
kill $SERVER_PID
# 5. Exit with test result
exit $TEST_RESULT
# Check JSON-RPC 2.0 compliance
rg "jsonrpc.*2\.0" src/mcp/ --type rust -n | head -10
# Verify error code compliance
rg "error.*code.*-32[0-9]{3}" src/mcp/ --type rust -A 3 | head -20
# Check tool schema format
rg "struct ToolDefinition|inputSchema" src/protocols/universal/tool_registry.rs --type rust -A 10 | head -30
Issue: mcp-compliance repo not found
# Clone the compliance suite
git clone https://github.com/modelcontextprotocol/mcp-compliance ../mcp-compliance
cd ../mcp-compliance
bun install
cd -
Issue: Server won't start
# Check if port 8081 is in use
lsof -i :8081
# Kill existing process or use different port
Issue: Tests timeout
# Increase timeout in compliance suite
# Or run server separately and ensure it's responsive
curl -X POST http://localhost:8081/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
scripts/ci/ensure-mcp-compliance.sh - Compliance runner scriptsrc/mcp/protocol.rs - MCP protocol implementationsrc/protocols/universal/tool_registry.rs - Tool definitionsrun-full-test-suite - Full test suite execution