Commit graph

3,636 commits

Author SHA1 Message Date
Jeremiah Lowin
e16ffad420
Promote mcp-types to a core fastmcp-slim dependency
Bare `import fastmcp` loads mcp_types via _sdk_patches and _compat, so a
bare slim install (no [mcp] extra) hit ModuleNotFoundError. mcp-types only
pulls pydantic + typing-extensions (already core), so graduating it to core
fixes the import while the full mcp SDK stays in the [mcp] extra.
2026-07-06 10:58:51 -04:00
Jeremiah Lowin
13c5978779
Fix remote-inspect dropping server website_url
The v1/remote path guarded on camelCase websiteUrl but server_info is an
SDK v2 snake_case model, so the URL was always dropped.
2026-07-06 10:55:51 -04:00
Jeremiah Lowin
bcde9d5cc0
Format collapsed signature after alias rename 2026-07-06 10:48:55 -04:00
Jeremiah Lowin
5c3b82e437
Rename misleading FastMCP1Server/FastMCP1x alias to SDKServer 2026-07-06 10:48:08 -04:00
Jeremiah Lowin
c916842a99
Silence pre-existing E402 on task-context re-export 2026-07-06 00:58:33 -04:00
Jeremiah Lowin
3acb239a7a
Merge remote-tracking branch 'origin/main' into sdkv2
# Conflicts:
#	fastmcp_slim/fastmcp/server/providers/proxy.py
#	tests/test_apps_prefab.py
2026-07-06 00:56:15 -04:00
Jeremiah Lowin
ea9a1c6382
Fix ty diagnostics in tests for SDK v2 migration 2026-07-06 00:48:03 -04:00
Jeremiah Lowin
962578ed52
Clean up ty diagnostics in fastmcp_slim for SDK v2 migration 2026-07-06 00:47:56 -04:00
Jeremiah Lowin
9e2fef8254
docs: fix stale .root notification access for MCP SDK v2 2026-07-06 00:31:17 -04:00
Jeremiah Lowin
ae77de82ee
docs: add MCP SDK v2 upgrade guide with protocol support matrix 2026-07-06 00:30:04 -04:00
Jeremiah Lowin
f765ccb081
docs: migrate example field reads to snake_case for MCP SDK v2 2026-07-06 00:27:27 -04:00
Jeremiah Lowin
c6aa7f5e53
docs: migrate mcp.types/mcp imports to fastmcp equivalents 2026-07-06 00:24:38 -04:00
Jeremiah Lowin
d267d90e82
Assert v2 MCPError shape for unauthorized GitHub OAuth access 2026-07-06 00:16:19 -04:00
Jeremiah Lowin
4985788f57
Fix content-type helpers and connection-survival scoping in era matrix 2026-07-06 00:14:58 -04:00
Jeremiah Lowin
d14a4c37bc
Add dual-era protocol test matrix 2026-07-06 00:10:35 -04:00
Jeremiah Lowin
960b7b36dd
Update scalekit token-inspection docs to v2 get_access_token() 2026-07-05 23:58:31 -04:00
Jeremiah Lowin
3ccf9c926b
Align auth integration tests with v2 SDK error codes (invalid_client, grant_types) 2026-07-05 23:57:19 -04:00
Jeremiah Lowin
39815466c1
Normalize resource URI in tool-injection middleware; update prompt snapshots for v2 fields 2026-07-05 23:55:47 -04:00
Jeremiah Lowin
0fb6464ce2
Fix v2 content shapes: str uri for BlobResourceContents, tolerant request_id assertion 2026-07-05 23:52:22 -04:00
Jeremiah Lowin
4bd7613009
Enforce strict_input_validation via pydantic strict mode in tool argument validation 2026-07-05 23:51:21 -04:00
Jeremiah Lowin
7c4667a1c9
Pass host/port as kwargs to v1 server transport runners (v2 Settings drops host/port) 2026-07-05 23:47:17 -04:00
Jeremiah Lowin
e38aa641d0
Serialize inspect icons with camelCase aliases (by_alias, exclude_none) 2026-07-05 23:46:33 -04:00
Jeremiah Lowin
2f9a63f092
Update OAuth callback tests to v2 AuthorizationCodeResult contract 2026-07-05 23:45:04 -04:00
Jeremiah Lowin
8c9b1b6131
Reorder imports in auth provider tests (ruff) 2026-07-05 23:37:12 -04:00
Jeremiah Lowin
ec9f00bb0c
Assert MCPError for v2 401 surface in auth provider unauthorized tests 2026-07-05 23:36:39 -04:00
Jeremiah Lowin
72c636dd4c
Spawn ping keepalive per Connection via asyncio task (SDK v2 has no per-connection task group) 2026-07-05 23:33:11 -04:00
Jeremiah Lowin
7f3cee8243
Restore proxy request context in all proxy forwarding handlers (fix v2 in-memory backend context leak) 2026-07-05 23:29:59 -04:00
Jeremiah Lowin
3f8e45b84b
Update v2 test idioms: MCPError 401 surface, unwrapped notifications, strict Annotations, request-id-agnostic, caching/storage snapshots 2026-07-05 23:23:48 -04:00
Jeremiah Lowin
cc8157ac11
xfail extension-stripping app tests (sdk-feedback #2); assert MCPError for v2 401 surface 2026-07-05 23:14:41 -04:00
Jeremiah Lowin
3a0944e288
Read FastMCP 1.x server metadata directly (SDK v2 drops _mcp_server wrapper) 2026-07-05 23:11:55 -04:00
Jeremiah Lowin
739de66e8e
Select FastMCP client spans by component.key; assert span descendant vs SDK v2 intermediate spans 2026-07-05 23:10:57 -04:00
Jeremiah Lowin
be02a4057c
Detect dead stdio session via v2 dispatcher state so keep_alive reconnects after crash 2026-07-05 23:07:33 -04:00
Jeremiah Lowin
b0adc8eb9c
Update middleware logging snapshots and rate-limit tests for SDK v2 (param shapes, MCPError surface) 2026-07-05 23:03:47 -04:00
Jeremiah Lowin
01a05f29ff
Update proxy_server tests to client API and v2 error-message shapes 2026-07-05 22:53:47 -04:00
Jeremiah Lowin
e56bec7a0a
Re-key stateful proxy cache by Connection, not per-request ServerSession (SDK v2) 2026-07-05 22:51:28 -04:00
Jeremiah Lowin
93e35cbe2f
Fix AnyUrl content-type test idioms; xfail wire-unexpressible prompt/resource tasks and background sampling (sdk-feedback #3/#9) 2026-07-05 22:46:11 -04:00
Jeremiah Lowin
f12ecc7e24
Deliver task status notifications: persist subscription task, nest params _meta (SDK v2) 2026-07-05 22:36:54 -04:00
Jeremiah Lowin
c2447a6cb9
Route notifications/tasks/status via SDK v2 notification binding (custom notifs bypass message_handler) 2026-07-05 22:30:04 -04:00
Jeremiah Lowin
3fc6848cea
Drive AuthMiddleware list tests through in-memory client (SDK v2 dispatch chain) 2026-07-05 22:21:32 -04:00
Jeremiah Lowin
ee6ddcc4e8
Migrate _meta to plain dict (v2), normalize resource task URIs, xfail wire-unexpressible resource tasks 2026-07-05 22:17:02 -04:00
Jeremiah Lowin
0b7bcdcf85
Preserve tasks/result payload via permissive result type; fix AnyUrl test import 2026-07-05 22:06:50 -04:00
Jeremiah Lowin
06ebf7c598
Fix task follow-up handlers: serialize Task timestamps as ISO strings for SDK v2 2026-07-05 22:02:34 -04:00
Jeremiah Lowin
7389e294af
Fix client meta forwarding, ClientNotification construction, and v1 test idioms for SDK v2 2026-07-05 21:52:35 -04:00
Jeremiah Lowin
59234364dd
Add MCP SDK v2 camelCase compat bridge, fastmcp.types re-exports, McpError alias 2026-07-05 21:46:33 -04:00
Jeremiah Lowin
e1f3f1ca3b
Select FastMCP client span by component key in session-id telemetry tests (SDK v2) 2026-07-05 21:36:59 -04:00
Jeremiah Lowin
47e8eec026
Update in-memory timeout-message assertion for SDK v2 2026-07-05 21:33:42 -04:00
Jeremiah Lowin
ca9c18fb9d
Float timeout in composite config transport; retitle client context shim (SDK v2) 2026-07-05 21:27:10 -04:00
Jeremiah Lowin
fe0de0df56
Add temporary SDK shim widening SERVER_RESULTS for SEP-1686 tasks 2026-07-05 21:20:12 -04:00
Jeremiah Lowin
6df5f25344
Return AuthorizationCodeResult from HeadlessOAuth callback_handler (SDK v2) 2026-07-05 21:17:51 -04:00
Jeremiah Lowin
57d1936f29
Return AuthorizationCodeResult from OAuth callback_handler (SDK v2) 2026-07-05 21:16:13 -04:00