Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · mcp

Debugging changeddocs/draft/tools/debugging

Nearest release: v2.1.326, published 14 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 16 Nov 2026 04:15 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 16 Nov 2026 04:37 UTC.

Upstream edited
Recorded here
Lines+22added
Lines−21removed
From line 18 where the diff opens
First seen 26 Aug 2026 this site's first read of the page
Recorded edits10to this page, all time

The whole hunk

from line 18, old and new numbered
/
lines
from line 18
1818 notification stream. This should be your first stop.
19192. **Server logging**: structured logs to stderr (stdio transport) or via
2020 [OpenTelemetry](https://opentelemetry.io/) (all transports).
21 [Logging](https://modelcontextprotocol.io/specification/draft/server/utilities/logging.md) over the protocol
22 (`notifications/message`) is deprecated as of protocol version `2026-07-28`.
21 Logging over the protocol (`notifications/message`) is
22 [deprecated](https://modelcontextprotocol.io/specification/draft/deprecated.md) as of protocol version `2026-07-28`.
23233. **Client developer tools**: most MCP clients expose logs and connection
2424 state. See [Debugging in Claude Desktop](#debugging-in-claude-desktop)
2525 below for one example, or consult your client's documentation.
from line 45
4545tooling (curl, browser DevTools Network panel) to inspect requests and SSE
4646streams.
4747 
48> [!WARNING]
49>
50> The `notifications/message` mechanism below is deprecated as of protocol
51> version `2026-07-28`. It remains available during the deprecation window.
52 
5348For all [transports](https://modelcontextprotocol.io/specification/latest/basic/transports.md), record what the
54server is doing as it runs:
49server is doing as it runs. For example, to write to stderr:
5550 
5651```python Python theme={null}
5752import logging
from line 66
7166```
7267 
7368```typescript TypeScript theme={null}
74await server.sendLoggingMessage({
75 level: "info",
76 data: "Server started successfully",
77});
78```
69import { McpServer } from "@modelcontextprotocol/server";
70import { z } from "zod";
7971 
80MCP defines eight
81[RFC 5424 severity levels](https://modelcontextprotocol.io/specification/latest/server/utilities/logging.md#log-levels)
82(`debug` through `emergency`). Clients opt in to log messages per request by
83setting the
84[`io.modelcontextprotocol/logLevel`](https://modelcontextprotocol.io/specification/draft/server/utilities/logging#per-request-log-level)
85field in the request's `_meta`. Servers must not send `notifications/message`
86for requests that omit this field.
72const server = new McpServer({ name: "reports", version: "1.0.0" });
73 
74server.registerTool(
75 "fetch_report",
76 {
77 description: "Fetch a report by id.",
78 inputSchema: z.object({ reportId: z.string() }),
79 },
80 async ({ reportId }) => {
81 console.error(`Fetching report ${reportId}`);
82 return {
83 content: [{ type: "text", text: `Report ${reportId} is ready.` }],
84 };
85 },
86);
87```
8788 
8889Important events to log:
8990 
Feedback