Skip to content

v2.31.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 19:45
25436a0

Minor Changes

  • #364 0df302d Thanks @glanzel! - Node 18 is no longer supported. The server now runs on the split v2 MCP SDK (@modelcontextprotocol/server for the server and @modelcontextprotocol/node for the Streamable HTTP transport) instead of @modelcontextprotocol/sdk v1, and the v2 packages require Node 20 or newer; engines now says >=20.6.0. The published Docker image already used Node 22.

    What stays the same: the server still answers the 2025-era initialize handshake and offers no newer revision, still asks for approval with elicitInput() and still refuses when a client cannot answer, and policy, quotas, role bindings, host groups, the denylist, OPA and client-tool decide exactly as before. Every tool keeps its name, description, annotations and input schema properties.

    What a client or an operator can see change, all from the SDK:

    • A call to a tool that does not exist is answered with a JSON-RPC error (-32602, Tool <name> not found) instead of a tool result with isError: true, as the 2025-11-25 spec has it.
    • Refusal text loses its MCP error -32602: prefix. An input the server refuses (a command with a line break or a null byte, a reserved sftp:/session: prefix, an empty or over-long command, a bad path) now reads, for example, Command cannot contain a null byte, in the tool result and in the audit record's error field alike. A log or SIEM rule anchored on the old prefix needs updating; one that matches the message itself does not. Schema validation failures are worded slightly differently too.
    • tools/list declares each input schema as JSON Schema 2020-12 rather than draft-07, and no longer sends execution: { taskSupport: "forbidden" } on every tool.
    • stdio: when stdin closes, requests already read are answered before the process exits, for up to 5 seconds, instead of racing the exit; and the process now also exits when the transport closes on its own (a stdout write error, or a single message over the SDK's 10 MB limit) rather than staying up with nobody to answer.

    This is the groundwork for the 2026-07-28 revision; that revision is not offered yet.

Patch Changes

  • #357 cb45896 Thanks @dependabot! - Update OpenTelemetry to 0.301: @opentelemetry/sdk-node and @opentelemetry/exporter-trace-otlp-http go from ^0.300.0 to ^0.301.2, the only part of this bump that changes what npm i ssh-mcp resolves, since a caret on a 0.x version does not reach the next minor. The lockfile also moves @opentelemetry/resources and the other 3.x OpenTelemetry packages to 3.1.1, @opentelemetry/semantic-conventions to 1.45.0 and import-in-the-middle to 3.6.0, all inside ranges already declared. No package is added or removed, and npm audit --omit=dev reports nothing.