/mcp-rubriq:mcp-rubriqfrom mcp-rubriq
Grades MCP (Model Context Protocol) servers against a 28-rule quality rubric. Connects to any MCP server — already running or launched on demand — introspects its tools, resources, and prompts, and grades them against explicit, published pass/fail criteria.
Ships in mcp-rubriq. 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.
When invoked with /mcp-rubriq <target>, I connect to the specified MCP server, retrieve its metadata, run a high-recall structural annotator, and then grade the annotated facts against MCP-Rubriq's rubric to produce a high-precision quality report.
/mcp-rubriq <target>
Where <target> is one of:
python my_server.py or npx my-mcp-serverhttp://localhost:8000/sseknown_servers.jsonMCP-Rubriq's primary use case is a local, unpublished, often in-progress server — pattern-match the user's phrasing against the examples below, then resolve using the matching sub-step. Never guess repeatedly and never expand into an unbounded filesystem search: if resolution is genuinely ambiguous after the bounded checks below, or the resolved command fails when actually run, stop and ask the user one targeted question instead of trying another guess.
THE ONE GUARDRAIL THAT APPLIES TO ALL OF STEP 1, STATED ONCE: a name or word in the
request that merely resembles a filename is never grounds for a file-system search of
any kind — no Glob, no find, no grep -r, no matter how narrow it looks, and no
matter which sub-step (1a/1b/1c) you're in. Each sub-step below defines its own small,
bounded check (a fixed lookup, a fixed list of exact paths); none of them has a
fallback to a broader search when the bounded check comes up empty — an empty result
is the answer, and the answer is to ask the user. The only way to skip resolution
entirely is the first phrasing example below: the user gave the actual, complete,
executable path or command verbatim. If they didn't, it's Step 1b (or 1a/1c) — never a
search.
Phrasing examples:
introspection/known_servers.json (in this skill's own directory) for an entry with that name. If found, use its transport, command, and args directly — this is a verified, deterministic lookup, not a guess. If the entry lists env variable names and the user hasn't supplied values for them, ask for them (do not invent values) — and offer the safer alternative: if they've already exported the value in their own shell (e.g. export GITHUB_TOKEN=...), the command can reference it by name (--env GITHUB_TOKEN=$GITHUB_TOKEN) so the shell substitutes the real value at execution time and the literal secret never has to appear in the conversation. Don't assume this over pasting the raw value — offer it, let the user choose. If an args entry is the placeholder <path> (filesystem, git, sqlite), read the entry's _note, ask the user which directory or file to use (or use the project folder if they said "this folder"), and substitute it before running — never run the literal <path>.How to check, mechanically: list the target folder's own immediate contents once (e.g. ls <folder> — a single, non-recursive directory listing) — or attempt to read each of the four exact paths directly and treat "not found" as absent. A bare Glob pattern for these filenames (e.g. Glob("mcp.json")) is an unscoped, recursive search of the entire project tree by default — exactly the search the guardrail above forbids, just wearing a different disguise. If your tool supports restricting Glob to one directory, that's fine; a bare filename pattern is not.
Check, in order, only these exact paths relative to the folder the user named (or the current working directory if none was named):
mcp.json.mcp.jsonclaude_desktop_config.json"mcp" key inside package.jsonThis is one check, against one folder, done once — never several candidate folders tried in sequence. If the user's phrasing doesn't name a folder, "the folder" is the current working directory, full stop; it is never license to then check tests/, tests/fixtures/, or any other plausible-looking subdirectory as a fallback, even if a word in the request resembles something you'd expect to find there. Widening from one location to a short sequence of likely-looking ones is still the "guess repeatedly" pattern the guardrail above forbids — it's just guessing at folders instead of filenames. As soon as the single check returns an answer, stop:
grep/find/Glob, no inferring a command from the folder's contents, and no trying a second or third folder that merely seems plausible — the bounded check coming up empty is the answer.Record the target folder's absolute path as soon as it's resolved (whether the user named it directly or it came from the current working directory) — Step 2 needs it verbatim as --cwd. This matters regardless of where Claude's own shell happens to be sitting: MCP-Rubriq must work the same way no matter what directory it's invoked from, as long as a path is given or resolvable. If the resolved command/args reference the server by a relative path (e.g. python my_server.py, the common case from mcp.json), that relative path only resolves correctly when the child process is launched from the server's own directory — not from wherever the invoking shell's current directory happens to be. Absolute commands (e.g. npx, a fully-qualified script path) don't strictly need it, but passing --cwd costs nothing and is safe to include regardless.
MCP-Rubriq's own pipeline (Step 2) always makes its own fresh stdio/SSE/HTTP connection — there is no mechanism to reuse or introspect a connection Claude Code itself is already holding. So "already connected" is not a different way to skip Step 2; it's a different way to find the exact command/URL to feed into it.
If the user means a server already connected in this session (not one you need to guess a command for), find the config that established that connection — the same kind of file Step 1b already checks (.mcp.json, claude_desktop_config.json, etc.) — and extract its exact command/args or url from there. Then proceed to Step 2 normally with that verified value. Do not guess a command from the server's name alone just because it's already connected.
If the target is a URL, determine whether it's SSE (transport=sse, e.g. a /sse path) or streamable HTTP (transport=http, the modern replacement for SSE, e.g. a /mcp path). If unsure which the server speaks, prefer http first — it's the current spec transport.
Step 2's error output is specific (a real timeout, a real "connection closed" plus the server's actual stderr text — never an opaque generic message). Use that specific reason to either ask one targeted follow-up question or report the failure clearly to the user. Do not silently retry with a different guessed command (a different package name, a different flag, a different assumed path) — one failed attempt is a stopping point, not a cue to keep guessing.
Execute the Python pipeline script located at scripts/lint.py, relative to this SKILL.md's own directory (i.e. the same skills/mcp-rubriq/ folder this file lives in — resolve it to an absolute path based on wherever the plugin is actually installed, never assume a fixed machine-specific location). Invoke it via uv run — the script carries inline PEP 723 dependency metadata, so uv resolves mcp/pydantic/anyio into an ephemeral environment automatically on first use, with no manual pip install step required:
uv run "<this-skill-directory>/scripts/lint.py" --transport <stdio|sse|http> [ --command <command> | --url <url> ] [--env KEY=VALUE ...] [--header "NAME: VALUE" ...] [--cwd <absolute-folder-path>] [--timeout <seconds>] [--args TOKEN ...]
If uv isn't available on the user's machine, fall back to plain python (dropping uv run from the front of the command) — this requires mcp/pydantic/anyio/httpx to already be installed in whatever Python environment is active (pip install -r <this-skill-directory>/introspection/requirements.txt). Prefer uv run whenever uv is present; it's the zero-setup path.
python/py fails with an Application-Control-style error (seen in practice on Windows machines under a locked-down IT policy: error: Failed to spawn: 'python' ... An Application Control policy has blocked this file. (os error 4551)) — this blocks the target server's subprocess, not uv itself, and is a client-machine policy issue, not something to keep guessing around. Recover in this order, once:
where python / where py on Windows, which -a python3 elsewhere).<candidate> -c "import httpx, mcp" until one succeeds — that's an interpreter with the runtime deps already present, not just an alternate name for the same blocked binary.--command/target — i.e. drop uv run entirely for this path and invoke lint.py with that interpreter directly (<absolute-path-to-python> "<this-skill-directory>/scripts/lint.py" ... --command "<same-absolute-path>" ...). Mixing uv run with an Application-Control-restricted target has been observed to fail a second way (uv's own ephemeral-env resolution for a different interpreter than the one that already worked once can miss httpx/exceptiongroup entirely) — going fully direct avoids both failure modes at once.
If every discovered interpreter hits the same block, or none has the required packages, stop and report the exact error — this is the same "ask, don't guess again" rule as Step 1, not a cue to keep trying more interpreter names.--env KEY=VALUE (repeatable) to pass required environment variables (e.g. GITHUB_TOKEN, BRAVE_API_KEY) to a stdio server — check known_servers.json's env list for the target to know which are required.sse/http server (hosted/remote servers usually are), pass --header (repeatable), e.g. --header "Authorization: Bearer $TOKEN". As with --env secrets, offer the user the shell-variable form first so the literal token never has to appear in the conversation. If the run fails with 401 Unauthorized, report that the server requires credentials and ask what auth header to use — don't retry guessing.--cwd <the resolved folder's absolute path>. Without it, the server subprocess launches from wherever this shell's current directory happens to be, not the server's own directory — so a relative --command/--args (e.g. python my_server.py) silently fails to find the file unless the two happen to already match. This is what makes MCP-Rubriq work identically regardless of what directory it's actually invoked from.--timeout to override the default 30s if a server is slow to start (e.g. a cold npx install).--args as its own token instead of embedding it in --command. An unquoted space inside --command is ambiguous and gets split into two arguments — e.g. --command "npx -y @modelcontextprotocol/server-filesystem C:\Users\Jane Doe\project" silently becomes three broken tokens. Use --args "-y" "@modelcontextprotocol/server-filesystem" "C:\Users\Jane Doe\project" instead — each --args token is passed through exactly as given, no splitting involved.--args MUST be the last flag on the command line, always, with no exceptions — it consumes every remaining token literally (including ones starting with -, like npx's -y), so put --env/--header/--cwd/--timeout all before it, never after. --command "npx" --args "-y" "@pkg/foo" is correct; --command "npx" --args "-y" "@pkg/foo" --timeout 60 is not — --timeout 60 would be swallowed into the args list instead of being parsed as a timeout. This has been observed happening live with --cwd specifically — double-check flag order before running, not just after a failure.This script connects to the server, extracts raw metadata, and runs the Annotator engine to attach heuristic flags (facts) to each tool and property. It outputs the AnnotatedServerModel JSON to stdout.
Use your list_dir and view_file capabilities to read all the markdown files located in rulebook/rules/, relative to this SKILL.md's own directory (a sibling of scripts/ in this same skill folder).
These files contain the strict criteria for evaluating the server. Do NOT skip reading these rules. You need their precise pass/fail criteria to judge the server accurately.
You are the MCP-Rubriq judge. Evaluate the AnnotatedServerModel against the rules you just loaded.
Your role:
introspection_warnings first. If it's non-empty, part of the survey failed (a listing timed out or the server crashed mid-session) — every count affected by a failed listing is unknown, not zero. Never evaluate a rule against an empty list whose listing failed (e.g. don't fail A004 for "no prompts" when the warning says prompts couldn't be listed), and say prominently in the report that the evaluation was partial and why.resources, resource_templates, and prompts — evaluate these too, not just tools. Each now carries its own pre-computed annotations (description_missing, URI-template validity, ambiguous variable/argument names — see R001-R003), mirroring how tools carry theirs. Apply A004 against what resources/prompts actually exist (presence/absence only), R001-R003 against their content quality once present, and X005's injection scan to their descriptions and URI templates as well as to tool descriptions — server metadata of every kind is read by the calling model as trusted context.tool_annotations — the MCP spec's own readOnlyHint/destructiveHint/idempotentHint/openWorldHint, forwarded verbatim (null if the server declared none). These are untrusted hints a server can lie about — never treat them as proof a tool is safe. Use them per T007 and X001: a declared hint that contradicts the tool's own name/description (e.g. readOnlyHint: true on an evident delete tool) is an aggravating finding, not a mitigating one.Present a final, structured Markdown report to the user. The report should include:
tool:delete_file, server)Note: All X-series (Security) findings should be framed with advisory language: "This pattern may indicate a security concern. Manual review recommended."
introspection/introspect.py (opens in a new tab)introspection/known_servers.json (opens in a new tab)introspection/requirements.txt (opens in a new tab)models/__init__.py (opens in a new tab)models/annotator_model.py (opens in a new tab)models/server_model.py (opens in a new tab)rulebook/annotator.py (opens in a new tab)rulebook/rules/A001-tool-bloat.md (opens in a new tab)rulebook/rules/A002-god-tool-pattern.md (opens in a new tab)rulebook/rules/A003-chatty-tool-chain.md (opens in a new tab)rulebook/rules/A004-missing-capabilities-contextual.md (opens in a new tab)rulebook/rules/A005-domain-mixing.md (opens in a new tab)rulebook/rules/R001-resource-missing-description.md (opens in a new tab)rulebook/rules/R002-resource-template-uri-quality.md (opens in a new tab)rulebook/rules/R003-prompt-argument-quality.md (opens in a new tab)rulebook/rules/S001-empty-input-schema.md (opens in a new tab)rulebook/rules/S002-required-array-empty.md (opens in a new tab)rulebook/rules/S003-property-missing-description.md (opens in a new tab)rulebook/rules/S004-property-missing-type.md (opens in a new tab)rulebook/rules/S005-overly-generic-property-type.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub trackmind-ai/mcp-rubriq --plugin mcp-rubriq