- pytest: 1060 passed, 5 skipped in 32.73s (post-migration adds 8 new tests in
test_fastmcp4_compat.pyfor total 1068 passed, 5 skipped) - mypy: Success: no issues found in 31 source files
- ruff: All checks passed! 160 files already formatted
- Pre-migration Versions:
- fastmcp: 3.4.4
- fastmcp-slim: 3.4.4
- mcp: 1.28.1
- pydantic: 2.13.4
- httpx: 0.28.1
- starlette: 1.3.1
- Updated
python/pyproject.toml:fastmcp[apps]==4.0.0b1,pydantic>=2.12,[tool.uv] constraint-dependencies = ["fastmcp-slim==4.0.0b1"]. uv lock&uv sync --all-extras --devinpython/.- Post-migration Versions:
- fastmcp: 4.0.0b1
- fastmcp-slim: 4.0.0b1
- mcp: 2.0.0
- mcp-types: 2.0.0
- httpx2: 2.9.1
- httpx: (removed)
- pydantic: 2.13.4
- prefab-ui: 0.20.2
uv run fastmcp version: confirmed FastMCP version 4.0.0b1, MCP version 2.0.0.
- Added
python/tests/test_fastmcp4_compat.pywith compatibility guards. - Updated
from fastmcp.tools.tool import ToolResult->from fastmcp.tools import ToolResultin 5 files (document.py,live_word.py,utils.py,test_live_word.py,test_live_word_dispatch.py). uv run pytest --collect-only: 1068 tests collected with 0 errors.
- Probe A (
Icon):mcp.types.Iconfields are['mime_type', 'sizes', 'src', 'theme'].Icon(src='...', mime_type='image/png')is canonical. - Probe B (
Image.to_data_uri):hasattr(Image, 'to_data_uri')returnedTrue. - Probe C:
FastMCPhaslist_tools,call_tool,enable,disable,local_provider(allTrue).from fastmcp.server.transforms import Transform, GetToolNextimported successfully.FileSystemProviderhaslist_tools(True).fastmcp.server.context.Contexthasinfo,debug,warning,error(True— all patch targets intact).mcp.types.Toolmodel fields includemeta,output_schema,input_schema,description,name,annotations.
- Replaced monkeypatching of
provider.list_toolsandmcp.list_toolswith server-levelAdeuBuildTag(Transform)registered viatransforms=[AdeuBuildTag()]. - Updated
Icon(src=..., mime_type="image/png")to use snake_casemime_type. - Added client-facing behavior tests in
test_fastmcp4_compat.py:test_every_listed_tool_carries_the_build_tagtest_build_tag_is_not_duplicatedtest_read_docx_declares_its_output_schema_and_ui_metatest_scope_docx_lists_only_docx_tagged_tools(verifiesread_docxin names andsanitize_docxnot in names)
- Updated
python/tests/test_repro_qa_customer_assessment_2026_07_23.pyline 90 to readinput_schemafirst. - Updated
python/scripts/verify_reasoning_order.pyto probeinput_schemabeforeinputSchema. - Confirmed
mcp.types.ToolAnnotations.model_validate({'readOnlyHint': True})succeeds.
uv run ruff check .&&uv run ruff format --check .: Passed cleanly (161 files).uv run mypy src: Success: no issues found in 31 source files.uv run pytest(parallel): 1068 passed, 5 skipped, 1 warning (SEP-2577) in 29.80s.uv run pytest -n 0 -q(serial): 1068 passed, 5 skipped, 1 warning in 102.51s.FASTMCP_MCP_CAMELCASE_COMPAT=false uv run pytest -q: 1068 passed, 5 skipped.uv run adeu-server --version: printedadeu-server 1.30.0+d8b3240and exited 0.uv run adeu-server --help: printed usage and exited 0.uv run pytest -q -k extract_never_imports_fastmcp: 1 passed.
- Updated
langchain/pyproject.tomlwith[tool.uv] constraint-dependencies = ["fastmcp-slim==4.0.0b1"]. uv lock&uv sync --group dev --group testinlangchain/resolved cleanly.uv run ruff check . && uv run ruff format --check . && uv run mypy langchain_adeu && uv run pytestinlangchain/passed cleanly (171 passed).node scripts/check_release_consistency.mjspassed cleanly from repo root.
python/src/adeu/mcp_components/tools/document.py::_ProgressRelay._has_progress_tokenrewritten. Reason: In SDK v2ctx.request_context.metais typeddict[str, Any] | None(the raw_metadict lifted byfastmcp/server/dependencies._lift_meta). The old attribute readrc.meta.progressTokenraisesAttributeErroron adict. The new implementation checksisinstance(rc.meta, dict)and readsrc.meta.get("progressToken")/rc.meta.get("progress_token"). Unit tested intest_progress_token_detected_from_lifted_meta_dict.