MCP Shipyard
← Rules catalog

MCP 2026-07-28 deprecates the logging capability: do not declare it

Logging, Roots and Sampling are deprecated in MCP 2026-07-28. A 2026-07-28 server declaring logging warns. Info-level.

infoserver.deprecated-capabilitiesGeneral

Drop the logging capability from a server that speaks MCP 2026-07-28. The rule server.deprecated-capabilities is an info-level, warn-status finding for general clients.

What you see

  • A scan reports server.deprecated-capabilities: "capabilities.logging is declared; Logging is deprecated as of 2026-07-28".
  • It only runs when the server negotiated the 2026-07-28 revision and declares logging in its capabilities.

Why it happens

SDK templates enable logging by default. The rule cites the 2026-07-28 changelog: Roots, Sampling and Logging are deprecated, with a 12-month window, and new implementations should not add them. Nothing breaks today.

Check it yourself

On the 2026-07-28 revision capabilities come from the discover call. With an older revision they come from initialize:

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"check","version":"1"}}}' \
 | jq '.result.capabilities'

Fix

Remove logging from the declared capabilities. The rule's fix text points to OpenTelemetry or your own logging stack (MCP SEP-2577) instead. Pass file paths as tool parameters instead of using Roots, and call model providers directly instead of using Sampling.

Verify

The capabilities no longer contain logging, then re-scan.

Which clients care

General, per the rule's platform tag.

Source

MCP deprecated features: https://modelcontextprotocol.io/specification/2026-07-28/deprecated

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server