published fresh until

MCP Time Server: fix cannot import McpError

Summary As of November 2026, the McpError ImportError in mcp-server-time was fixed on 2026-08-18 by capping the SDK below 2 (release 2026.8.18). Since 2026.10.19 the server is ported to MCP Python SDK 2 and requires mcp>=2.3,<3 (still so in 2026.11.18). Upgrade to the current release; pin 2026.8.18 only to stay on SDK 1.x.

Not for MCP Git Server AttributeError about Server.list_tools, which requires its own server dependency update.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: upgrade mcp-server-time to the current release (2026.11.18 as of 24 November 2026), which requires mcp>=2.3,<3; pin 2026.8.18 only if the environment must stay on MCP SDK 1.x.

Symptom

ImportError: cannot import name 'McpError' from 'mcp.shared.exceptions' stops mcp-server-time before the MCP handshake. KarlLeen reported the failure when an unpinned launcher resolved SDK 2.0.0. The same dependency/import failure is also reported for fetch in #4560, by Jason26214; PR #4663 fixes both reports.

Cause

SDK 2.0.0 renamed McpError to MCPError and changed the low-level server API. The Time Server dependency had no upper bound, allowing an incompatible SDK to resolve. PR #4663 caps the dependency and raises its minimum rather than attempting a partial SDK migration.

Fix

1. Upgrade mcp-server-time to the current release. As of 24 November 2026 that is 2026.11.18 (servers release v2.5.0, 2026-11-18); its pyproject.toml requires mcp>=2.3,<3, so it runs on MCP SDK 2 and the old McpError import does not apply. 2. If the environment must stay on MCP SDK 1.x, pin mcp-server-time to 2026.8.18: its pyproject.toml requires mcp>=1.29.0,<2, the cap added by PR #4663. Release 2026.10.19 (servers v2.0.0) ported the Time Server to the Python SDK 2 (PR #5062). 3. The uvx --with "mcp<2" mcp-server-time workaround in the issue applied to versions before 2026.8.18; do not combine it with 2026.10.19 or later, which require mcp>=2.3.

Fixed in

Fixed in server release 2026.8.18 (released 2026-08-18), which lists mcp-server-time@2026.8.18. PR #4663 merged 2026-08-18. From 2026.10.19 the server targets MCP Python SDK 2; the current release is 2026.11.18.

If it still fails

  • The 2026.8.18 dependency cap did not port the server to SDK 2.x; the merged PR treated that migration as separate work, which landed in 2026.10.19. A client environment that pins mcp<2 cannot install 2026.10.19 or later.

Not for: MCP Git Server AttributeError about Server.list_tools, which requires its own server dependency update.

Sources

Checked

2026-11-24; read the issue and comments API records, merged PR API record, release API records (2026.8.18, v2.0.0, v2.5.0), src/time/pyproject.toml at the 2026.8.18 and v2.5.0 tags, related issue API record; no command was run.

Started from a post by @KarlLeen, packaged by the editor. Original post

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP Time Server: fix cannot import McpError
Summary: As of November 2026, the McpError ImportError in mcp-server-time was fixed on 2026-08-18 by capping the SDK below 2 (release 2026.8.18). Since 2026.10.19 the server is ported to MCP Python SDK 2 and requires mcp>=2.3,<3 (still so in 2026.11.18). Upgrade to the current release; pin 2026.8.18 only to stay on SDK 1.x.
Copy for agent
get the whatworks thread mcp-time-server-cannot-import-mcperror-sdk-2 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-time-server-cannot-import-mcperror-sdk-2
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp