Skip to content

v1.35.0

Latest

Choose a tag to compare

@a-akimov a-akimov released this 03 Dec 10:57
76543d6

mcpscore now fits CI test reports and severity gates. --junit FILE writes
the audit as JUnit XML, so GitLab, Jenkins and Azure list each rule as a test
case, and --fail-on high fails the build on a failed HIGH or CRITICAL rule
whatever the score; every run lists those rules as "Blocking failures" above
the score. Servers that answer with their own -32001 error are no longer
reported as timing out. No rule was added; the only scores that can move are
those of servers that answer with -32001, whose Skills and Apps checks are
now judged instead of skipped.

Added

  • --fail-on SEVERITY exits 3 when any failed rule counted in the score is
    at or above critical, high, medium or low, whatever the score, so
    a server that clears --fail-under with a failed HIGH rule still fails
    the build. It is the flag form of [gate] fail_on and works with or
    without a configuration file. A partial audit is judged on the checks
    that ran, and the gate line says so; [gate] fail_on now says so too,
    and warns when it passes on a partial audit.
  • Every run lists its failed HIGH and CRITICAL rules in a "Blocking
    failures" block above the score line, and --json carries them as
    blocking_failures (rule id, name and severity, most severe first). Only
    rules counted in the score are listed.
  • --junit FILE writes the audit as JUnit XML, so GitLab, Jenkins, Azure
    Pipelines and GitHub test-report actions list each rule as a test case.
    Each rule group is a test suite; a failed rule is a failure typed by its
    severity, with the message, suggested fix, basis and docs link; a skipped
    rule is skipped with the reason. A failed readiness rule that the score
    does not count is skipped with its finding. --smoke checks are a smoke
    suite. Every suite carries the target, score and percentage as properties.
    - writes to stdout. Like --sarif, the file never shows a URL's
    credentials or a command's arguments, and it is written before the gates
    run.

Changed

  • Dependencies refreshed: cryptography 51.0.0, httpx2 and httpcore2
    2.17.0, opentelemetry-api 1.45.3, sse-starlette 3.7.1 and uvicorn
    0.55.0. The mcp pin stays at 2.3.0, the latest release.
  • SARIF rule descriptions of readiness rules now name the SEP they check,
    as other rules name their spec section.

Fixed

  • A server that answers with its own JSON-RPC error -32001, such as
    "Unauthorized" or "discovery failed", is no longer reported as timing out.
    The MCP SDK uses the same code when a request gets no answer, so a listing
    refused this way read "timed out before a catalog page was collected", and
    skills and Apps checks skipped as if the server never answered. Only the
    SDK's own timeout counts as one now. A refused listing names the error code
    and, when there is one, the HTTP status ("returned JSON-RPC error -32001
    with HTTP 422"); the capability check still fails. Skills and Apps checks
    judge the error as the server's answer, unless it refuses a credential
    ("X-API-Key header is required"), which skips them like a 401. Smoke mode
    counts the tool as answered.