You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add type annotations for all server decorators (list_tools, list_resources, read_resource) #1980
Following #1822 and #1826 which addressed call_tool decorator typing, the other server decorators still lack proper type annotations, requiring # type: ignore comments in strict mypy projects.
error: Call to untyped function "list_tools" in typed context [no-untyped-call]
error: Untyped decorator makes function "list_tools" untyped [untyped-decorator]
Expected Behavior
All server decorators should preserve type information using ParamSpec (as done for call_tool in #1826), eliminating the need for type: ignore comments.
Activity
Fix mypy strict mode type errors
maxisbey commentedon Feb 10, 2026
Thanks! The low-level server API is being redesigned — see #1985. This will be addressed as part of that refactor.
AI Disclaimer