Skip to content

chore(deps-dev): bump fastmcp from 3.4.7 to 4.0.3 - #44200

Merged
aminghadersohi merged 12 commits into
masterfrom
dependabot/pip/fastmcp-4.0.3
Oct 12, 2026
Merged

aminghadersohi merged 12 commits into
masterfrom
dependabot/pip/fastmcp-4.0.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 12, 2026

Copy link
Copy Markdown
Contributor

Bumps fastmcp from 3.4.7 to 4.0.3.

Release notes

Sourced from fastmcp's releases.

v4.0.3: Once Is Enough

Multi-server clients with legacy-only backends now avoid unnecessary startup retries, and tools returning unconstrained sequences no longer send images twice. This patch also fixes task timing values rejected by strict clients and cleans up unfinished Monty callbacks when execution ends.

What's Changed

Enhancements ✨

Fixes 🐞

Docs 📚

New Contributors

Full Changelog: PrefectHQ/fastmcp@v4.0.2...v4.0.3

v4.0.2: Root Access

ClientGroup is now importable from the package root, from fastmcp import ClientGroup, with the same lazy export and install hint as Client, so integrations no longer couple to FastMCP's internal module layout.

What's Changed

Enhancements ✨

Fixes 🐞

Docs 📚

Other Changes 🦾

Full Changelog: PrefectHQ/fastmcp@v4.0.1...v4.0.2

v4.0.1: Come Back Any Time

ClientGroup now reference-counts its context the way Client does, so entering a connected group from a nested block or a concurrent task reuses the existing connections instead of raising. Adapters written against Client's reentrancy can hold a ClientGroup the same way.

... (truncated)

Changelog

Sourced from fastmcp's changelog.


title: "Changelog" icon: "list-check" rss: true tag: NEW

v4.0.3: Once Is Enough

Multi-server clients with legacy-only backends now avoid unnecessary startup retries, and tools returning unconstrained sequences no longer send images twice. This patch also fixes task timing values rejected by strict clients and cleans up unfinished Monty callbacks when execution ends.

Enhancements ✨

Fixes 🐞

Docs 📚

  • docs: point What's New at the changelog for later releases by @​zzstoatzz in #4992
  • docs: attribute the back-channel removal to SEP-2322/2575, not SEP-2577 by @​zzstoatzz in #4988

New Contributors

Full Changelog: v4.0.2...v4.0.3

v4.0.2: Root Access

ClientGroup is now importable from the package root, from fastmcp import ClientGroup, with the same lazy export and install hint as Client, so integrations no longer couple to FastMCP's internal module layout.

Enhancements ✨

Fixes 🐞

Docs 📚

Full Changelog: v4.0.1...v4.0.2

... (truncated)

Commits
  • 7129236 Add v4.0.3 changelog entries (#5007)
  • f79bc82 chore: Update SDK documentation (#4945)
  • 6e0859f fix task timing field serialization (#5003)
  • 855cb7a Clarify release title history lookup (#5006)
  • 6236ac1 Clean up unfinished Monty callbacks (#5005)
  • 6c2fbe7 docs: attribute the back-channel removal to SEP-2322/2575, not SEP-2577 (#4988)
  • e68bacc perf: avoid duplicate startup for mixed-era backends (#4971)
  • 032b9f6 fix: don't infer an output schema for unconstrained sequences (#4999)
  • 75d50ff ci: deploy docs through Mintlify's admin API and wait for a verdict (#4996)
  • a338cfb docs: point What's New at the changelog for later releases (#4992)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependabot major Dependabot PRs that bump major version for dependencies pip Dependabot - pip related PRs labels Sep 12, 2026
@bito-code-review

bito-code-review Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #c6440f

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 6b3ef48..6b3ef48
    • pyproject.toml
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@codecov

codecov Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.35%. Comparing base (afa98f3) to head (c489de6).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #44200      +/-   ##
==========================================
- Coverage   82.28%   81.35%   -0.93%     
==========================================
  Files        2996     2970      -26     
  Lines      185059   181673    -3386     
  Branches    42828    41440    -1388     
==========================================
- Hits       152269   147809    -4460     
- Misses      30028    31102    +1074     
  Partials     2762     2762              
Flag Coverage Δ
hive 36.30% <0.00%> (ø)
mysql 55.33% <0.00%> (-0.01%) ⬇️
postgres 55.34% <0.00%> (-0.01%) ⬇️
presto 38.17% <0.00%> (ø)
python 86.23% <100.00%> (ø)
sqlite 55.07% <0.00%> (ø)
unit 79.22% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fastmcp 4.0.3 depends on fastmcp-slim[client]==4.0.3, which requires
mcp>=2.0.0,<3.0.0 -- incompatible with the mcp<2.0 cap that was put in
place for fastmcp 3.x (#43876). Bump the mcp constraint to match, and
regenerate requirements/base.txt and requirements/development.txt
(also bumps idna to 3.19, needed by the new httpx2 dependency of
fastmcp-slim/mcp 2.x).

Co-Authored-By: Evan Rusackas <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@bito-code-review

bito-code-review Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #4f2452

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: 6b3ef48..01cf2fd
    • pyproject.toml
    • requirements/base.txt
    • requirements/development.txt
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

Comment thread pyproject.toml Resolved
@netlify

netlify Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit c489de6
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6ac0ca230af8020008f63464
😎 Deploy Preview https://deploy-preview-44200--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread pyproject.toml Resolved
@bito-code-review

bito-code-review Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #3abb53

Actionable Suggestions - 0
Additional Suggestions - 1
  • pyproject.toml - 1
    • Stale constraint comment · Line 206-206
      The comment at lines 201-205 now contradicts the change: it states 'the floor/ceiling move together with the fastmcp 4.x bump', but this PR deliberately keeps the floor at fastmcp 3.4.7 / mcp 1.29.1. Update the comment so future maintainers aren't misled about the floor/ceiling relationship.
Review Details
  • Files reviewed - 1 · Commit Range: 01cf2fd..0488c82
    • pyproject.toml
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

rusackas and others added 2 commits September 21, 2026 09:58
fastmcp 4.0 removed the `fastmcp.tools.tool` module; `Tool` and
`ToolResult` are exported from `fastmcp.tools` on both 3.x and 4.x, so
import from there. mcp 2.x also types `Task.createdAt`/`lastUpdatedAt`
as ISO strings and rewords the resource-not-found error, so the two
tests that pinned the old shape now accept either version.

Co-Authored-By: Evan Rusackas <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@pull-request-size pull-request-size Bot added size/L and removed size/M labels Sep 21, 2026
@bito-code-review

bito-code-review Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #fead61

Actionable Suggestions - 0
Review Details
  • Files reviewed - 6 · Commit Range: 0488c82..c0533ba
    • pyproject.toml
    • superset/mcp_service/middleware.py
    • superset/mcp_service/server.py
    • tests/unit_tests/mcp_service/system/resources/test_schema_discovery.py
    • tests/unit_tests/mcp_service/test_middleware.py
    • tests/unit_tests/mcp_service/test_middleware_logging.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@aminghadersohi

Copy link
Copy Markdown
Contributor

Ran a QA pass on this before letting it merge downstream. OSS test-wise it's healthy — tests/unit_tests is 4655 passed / 2 skipped under fastmcp 4.0.3 + mcp 2.2.0, and a live MCP server on this branch handled a full auth matrix (JWT, API key, revoked key, unknown user, 8 concurrent calls across two identities) and real tool calls correctly.

But a few behaviour changes ride along that nothing here asserts:

The loosened assertion is hiding more than a message change. match="Unknown resource" → "Unknown resource|Resource not found" covers one of four changes. Measured side by side on identical probe code:

3.4.7 / 1.29.1 4.0.3 / 2.2.0
message Resource not found: Unknown resource: '<uri>' Resource not found: '<uri>'
JSON-RPC code -32002 -32602
data None {'uri': '<uri>'}
class McpError MCPError (fastmcp.exceptions.McpError kept as alias)

-32002 is resource-not-found, -32602 is generic invalid-params. Any client branching on -32002 stops recognising the case, and the widened regex makes that invisible to CI. Worth asserting the code explicitly.

Two HTTP stacks now resolve, with different TLS trust roots. httpx 0.28.1 stays, httpx2 2.12.0 + truststore arrive. Separate namespaces, no import collision — but httpx.Client() gets an ssl.SSLContext on the certifi bundle, while httpx2.Client() gets truststore._api.SSLContext on the OS trust store. fastmcp-slim and mcp are on httpx2, so MCP outbound TLS no longer follows certifi. Deployments that inject a private CA into certifi or REQUESTS_CA_BUNDLE but not the OS store will see MCP egress fail while the rest of Superset is fine. No test covers it.

Smaller ones, all reproduced:

  • Custom (non-standard) tool annotations are silently stripped from the tool definition in fastmcp 4.
  • Annotated[int, Field(strict=True)] on a tool arg is no longer enforced — "2" used to error, now coerces to 2.
  • A tool annotated -> list (bare) loses outputSchema/structuredContent. This is the flip side of the fix for the double-image/output-validation bug, but it's a contract change for clients consuming structured output.
  • code: 0 shows up as a JSON-RPC error code on unknown methods (fastmcp 4) and on unknown resource URIs (fastmcp 3) — not a valid code on either version, and Superset's error middleware masks the clean codes into a generic internal error.

Additive on the wire: CallToolResult.resultType, io.modelcontextprotocol/serverInfo in _meta.

One negative worth recording: the OAuth/DCR surface is purely additive 3.4.7 → 4.0.3 (new fields all optional with None defaults), and a fastmcp-3-era persisted ProxyDCRClient record round-trips under v4 cleanly. No upgrade landmine there.

Not verified: real OAuth/DCR end-to-end (register → authorize → token → refresh), integration tests, SSE streaming/resumption, perf. Flagging so nobody reads the green CI as covering them.

@rusackas rusackas added the hold:testing! On hold for testing label Sep 22, 2026
@rusackas

Copy link
Copy Markdown
Member

@aminghadersohi I put a hold label on it... your call if you want to merge this or not. Did you want to fix-forward here on some of your findings?

@github-actions github-actions Bot added the requires:rebase Requires rebasing on top of current master label Sep 24, 2026
@aminghadersohi aminghadersohi removed the hold:testing! On hold for testing label Sep 24, 2026
@aminghadersohi

Copy link
Copy Markdown
Contributor

Lifting the hold: the Preset side is fixed forward, so this is clear to go.

@aminghadersohi

Copy link
Copy Markdown
Contributor

Lifting the hold: the Preset side is fixed forward, so this is clear to go.

The shell prereq #5234 merged 09-23 so now fixing conflicts here and removed the hold label. thanks for that

@dependabot @github

dependabot Bot commented on behalf of github Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of fastmcp exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@aminghadersohi

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@aminghadersohi

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@github-actions github-actions Bot removed the requires:rebase Requires rebasing on top of current master label Sep 29, 2026
@aminghadersohi

Copy link
Copy Markdown
Contributor

Under fastmcp 4.0.3 FastMCP.as_proxy() is gone, so superset/mcp_service/simple_proxy.py:60 (used by run_proxy.sh) exits with AttributeError: type object 'FastMCP' has no attribute 'as_proxy'. fastmcp.server.create_proxy() exists in both 3.4.7 and 4.0.3, so switching to it keeps the proxy working across the bump. MCP unit tests otherwise pass on 4.0.3 (5,597 passed).

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aminghadersohi really appreciate the depth on this one. One thing before it merges though: the as_proxy() catch in your last comment looks like it's still outstanding. superset/mcp_service/simple_proxy.py:60 still calls FastMCP.as_proxy(...), and nothing in the diff swaps it to create_proxy(). Since run_proxy.sh is what Claude Desktop/Code actually launches, that'll throw on every start under 4.0.3, and there's no test covering that path to catch it.

Mind pushing the create_proxy() swap you already spec'd out before this lands? Everything else here looks solid given your QA pass.

FastMCP.as_proxy() was removed in FastMCP 4; fastmcp.server.create_proxy()
exists in 3.4.7 and 4.x. Add a test covering the proxy entry point, and
adjust MCP tests that relied on fastmcp.tools.tool and on ping being
implemented by the in-memory server.
@aminghadersohi

Copy link
Copy Markdown
Contributor

Swapped FastMCP.as_proxy() for fastmcp.server.create_proxy() in simple_proxy.py (b359d0f); no other as_proxy uses remain. Added test_simple_proxy.py covering main(), passing on fastmcp 3.4.7 and 4.0.3. Also merged master and fixed two master tests that broke under 4.0.3 (fastmcp.tools.tool import, ping).

@bito-code-review

bito-code-review Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #13817e

Actionable Suggestions - 0
Review Details
  • Files reviewed - 5 · Commit Range: c0533ba..b359d0f
    • superset/mcp_service/simple_proxy.py
    • tests/unit_tests/mcp_service/dashboard/tool/test_get_dashboard_layout.py
    • tests/unit_tests/mcp_service/test_simple_proxy.py
    • tests/unit_tests/mcp_service/test_tool_search_transform.py
    • tests/unit_tests/mcp_service/test_worker_metadata_pool.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added the requires:rebase Requires rebasing on top of current master label Oct 3, 2026
aminghadersohi and others added 2 commits October 3, 2026 09:11
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions Bot removed the requires:rebase Requires rebasing on top of current master label Oct 3, 2026
@bito-code-review

bito-code-review Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #f2301e

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: b359d0f..c489de6
    • requirements/development.txt
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evan's as_proxy() concern is fixed: simple_proxy.py now calls fastmcp.server.create_proxy(), and the new test_simple_proxy.py runs it unmocked, so the test fails if the API goes away. The import moves to fastmcp.tools and the by_alias=True serialization work on both 3.x and 4.x. The widened fastmcp/mcp ceilings move together and the floors stay put, per Joe. CI is green. LGTM.

@aminghadersohi
aminghadersohi merged commit cd526f9 into master Oct 12, 2026
110 of 111 checks passed
@aminghadersohi
aminghadersohi deleted the dependabot/pip/fastmcp-4.0.3 branch October 12, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependabot dependencies:python major Dependabot PRs that bump major version for dependencies pip Dependabot - pip related PRs size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants