Skip to content

Commit e1b0a51

Browse files
committed
chore: delete dead func_inspection.py, document jsonschema validation removal
- Remove func_inspection.py which is no longer imported after decorator removal - Add migration note about jsonschema input/output validation being removed from the lowlevel Server's call_tool handler with no built-in replacement
1 parent 177ddbe commit e1b0a51

File tree

2 files changed

+1
-53
lines changed

2 files changed

+1
-53
lines changed

docs/migration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ server = Server(
486486

487487
- Handlers receive `(ctx, params)` instead of the full request object or unpacked arguments. `ctx` is a `RequestContext` with `session`, `lifespan_context`, and `experimental` fields (plus `request_id`, `meta`, etc. for request handlers). `params` is the typed request params object.
488488
- Handlers return the full result type (e.g. `ListToolsResult`) rather than unwrapped values (e.g. `list[Tool]`).
489+
- The automatic `jsonschema` input/output validation that the old `call_tool()` decorator performed has been removed. There is no built-in replacement — if you relied on schema validation in the lowlevel server, you will need to validate inputs yourself in your handler.
489490

490491
**Notification handlers:**
491492

src/mcp/server/lowlevel/func_inspection.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)