agentleFS
Arnie016Arnie016/codex-prompt-templates/skills/auto-skill-build-mcp-conformance-harness/SKILL.md

auto-skill-build-mcp-conformance-harness

Skill3 starsChanged 7 months agoMITView on GitHub

Design a repeatable MCP conformance, health-check, and tool-surface regression harness for local or CI use. Use when the user asks for MCP CI, protocol or OAuth conformance, server doctor checks, tool-surface diffing, JUnit/XML reports, or release gates for an MCP server. Requires an MCP endpoint or stdio launch command; skip when the task is only ad-hoc manual inspection where `$mcp-server-lab` is enough.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use $sandbox-source-intake and $mcp-safety-review before running a fresh MCP server, unknown CLI, install script, or broad-account tool.

    line 21
  2. Very specific:

    Prefer read-only checks first: server probe, server doctor, and server export with --no-telemetry and JSON output.

    line 27
  3. Very specific:

    Add protocol, oauth, or apps conformance suites only after auth and blast radius are understood.

    line 29
  4. Very specific:

    Use the command recipes in references/mcp-conformance-harness.md instead of expanding long shell blocks into the skill body.

    line 33
  5. Distinctive:

    No MCP endpoint, stdio command, or runnable server target is available.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP Conformance Harness

Generated by: Codex Supercharge maintenance automation.

Goal: turn MCP server testing into a repeatable harness with clear evidence, secret handling, and pass/fail gates.

Workflow

  1. Use $sandbox-source-intake and $mcp-safety-review before running a fresh MCP server, unknown CLI, install script, or broad-account tool.
  2. Identify the target matrix:
    • transport: HTTP or stdio
    • auth: none, static token, OAuth interactive, OAuth headless, or M2M
    • checks: doctor, tool surface, protocol, OAuth, apps UI
  3. Prefer read-only checks first: server probe, server doctor, and server export with --no-telemetry and JSON output.
  4. Add protocol, oauth, or apps conformance suites only after auth and blast radius are understood; emit JUnit/XML or JSON summary artifacts.
  5. Capture before/after server export snapshots and sort them before diffing when release tool-surface drift is the risk.
  6. Use the command recipes in references/mcp-conformance-harness.md instead of expanding long shell blocks into the skill body.
  7. Store reports as CI artifacts, but keep credentials out of artifacts. Prefer environment secrets, credentials files with mode 0600, or CI secret stores.
  8. Summarize failures by phase: transport, auth, protocol, tool schema, apps UI, or release diff.

Harness Contract

# MCP Harness Plan
Target:
Transport/auth:
Read-only checks:
Conformance suites:
Tool-surface diff:
Secrets:
Artifacts:
Pass/fail gates:
Known skips:

Skip When

  • The user only wants to manually explore one server once.
  • No MCP endpoint, stdio command, or runnable server target is available.
  • The server/tool is untrusted and has not passed source intake or safety review.
  • Running the harness would call write/destructive tools without explicit scope.

References

  • references/mcp-conformance-harness.md
  • Source inspiration only, code not executed: sources/mcpjam-inspector
  • Support skills: $mcp-server-lab, $mcp-safety-review, $auto-skill-safety-mcp-secret-guard

Validation

plugins/codex-supercharge/scripts/skill_audit.sh plugins/codex-supercharge/skills
python3 "$HOME/.codex/skills/.system/skill-creator/scripts/quick_validate.py" \
  plugins/codex-supercharge/skills/auto-skill-build-mcp-conformance-harness

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.