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
fix: update tests to use new Server constructor kwargs pattern
Migrate test files from the old decorator-based handler registration
to the new on_* constructor kwargs pattern. Key changes:
- Replace @server.list_tools(), @server.call_tool(), etc. decorators
with on_list_tools, on_call_tool, etc. kwargs on Server()
- Replace server.request_context access with ctx parameter
(first argument to all handlers)
- Handlers now receive (ctx, params) and return full result types
(e.g. ListToolsResult instead of list[Tool])
- Convert experimental task decorators to enable_tasks() kwargs
- Add LifespanContextT default to ServerRequestContext
- Widen on_call_tool return type to include CreateTaskResult
- Delete redundant tests/shared/test_memory.py
- Simplify tests to use Client where possible
0 commit comments