Skip to content

Conversation

@dmitry-simple-it
Copy link
Contributor

Summary

  • Updates uv.lock to use mcp==1.22.0 (was 1.6.0)
  • Fixes server startup crash caused by missing ToolAnnotations type

Fixes #37

Problem

After PR #34 was merged, the server fails to start with:

ImportError: cannot import name 'ToolAnnotations' from 'mcp.types'

The uv.lock file was not updated when ToolAnnotations were added to the codebase. The locked mcp==1.6.0 does not contain this type.

Solution

Run uv sync --upgrade-package mcp to update the lock file with a version of mcp that includes ToolAnnotations.

Test plan

  • uv sync completes successfully
  • uv run python -c "from mcp.types import ToolAnnotations" works
  • Server starts without import errors

🤖 Generated with Claude Code

Fixes chigwell#37

The mcp package was locked at version 1.6.0 which does not include
the ToolAnnotations type. This caused the server to fail on startup
with:

  ImportError: cannot import name 'ToolAnnotations' from 'mcp.types'

Updated mcp from 1.6.0 to 1.22.0 which includes ToolAnnotations
and is compatible with the code added in PR chigwell#34.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@chigwell chigwell self-requested a review November 27, 2025 19:14
@chigwell chigwell merged commit 0cb7b74 into chigwell:main Nov 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Server fails to start - ImportError: cannot import 'ToolAnnotations' from 'mcp.types'

2 participants