You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/10/21 17:57:54 UTC
(superset) branch master updated: chore(deps-dev): bump fastmcp from 3.4.7 to 4.1.0 (#45415)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 067d536e216 chore(deps-dev): bump fastmcp from 3.4.7 to 4.1.0 (#45415)
067d536e216 is described below
commit 067d536e216fdd7ca3d2eddd5256134c9ce85a51
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Wed Oct 21 10:57:47 2026 -0700
chore(deps-dev): bump fastmcp from 3.4.7 to 4.1.0 (#45415)
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
Co-authored-by: Evan Rusackas <ev...@rusackas.com>
Co-authored-by: Evan Rusackas <ev...@preset.io>
Co-authored-by: Claude Fable 5.1 <no...@anthropic.com>
---
pyproject.toml | 2 +-
requirements/base.txt | 2 +-
requirements/development.txt | 40 +++++++++++++++-------
.../mcp_service/test_native_tool_surface.py | 10 +++---
.../unit_tests/mcp_service/test_tool_inventory.py | 2 +-
.../mcp_service/test_validation_contract.py | 17 +++++++--
6 files changed, 52 insertions(+), 21 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index d4fb4f8427a..ed3f16388ef 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -200,7 +200,7 @@ excel-export = ["boto3"]
# >=1.37 for ``Blob.open``, which superset.utils.gcs streams downloads through.
excel-export-gcs = ["google-cloud-storage>=3.15.0"]
fastmcp = [
- "fastmcp>=3.4.7,<5.0",
+ "fastmcp>=4.1.0,<5.0",
# JWT verification uses httpx directly; fastmcp 4.x depends on httpx2.
"httpx>=0.28.1,<1.0",
# fastmcp 3.x requires mcp<2.0 and fastmcp 4.x (via fastmcp-slim[client])
diff --git a/requirements/base.txt b/requirements/base.txt
index 771d244a450..46c126659eb 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -176,7 +176,7 @@ holidays==0.105
# via apache-superset (pyproject.toml)
humanize==4.12.3
# via apache-superset (pyproject.toml)
-idna==3.15
+idna==3.20
# via
# email-validator
# requests
diff --git a/requirements/development.txt b/requirements/development.txt
index e2edda39613..efca55cdf9b 100644
--- a/requirements/development.txt
+++ b/requirements/development.txt
@@ -36,6 +36,7 @@ antlr4-python3-runtime==4.13.2
anyio==4.15.1
# via
# httpx
+ # httpx2
# mcp
# py-key-value-aio
# sse-starlette
@@ -276,9 +277,9 @@ exceptiongroup==1.3.0
# via fastmcp-slim
execnet==2.1.2
# via pytest-xdist
-fastmcp==3.4.7
+fastmcp==4.1.2
# via apache-superset
-fastmcp-slim==3.4.7
+fastmcp-slim==4.1.2
# via fastmcp
filelock==3.20.3
# via
@@ -446,6 +447,7 @@ gunicorn==26.2.0
h11==0.16.0
# via
# httpcore
+ # httpcore2
# uvicorn
hashids==1.3.1
# via
@@ -458,26 +460,29 @@ holidays==0.105
# prophet
httpcore==1.0.9
# via httpx
+httpcore2==2.15.1
+ # via httpx2
httpx==0.28.1
# via
# apache-superset
+ # testcontainers
+httpx2==2.15.1
+ # via
# fastmcp-slim
# mcp
- # testcontainers
-httpx-sse==0.4.3
- # via mcp
humanize==4.12.3
# via
# -c requirements/base-constraint.txt
# apache-superset
identify==2.5.36
# via pre-commit
-idna==3.15
+idna==3.20
# via
# -c requirements/base-constraint.txt
# anyio
# email-validator
# httpx
+ # httpx2
# requests
# url-normalize
# yarl
@@ -604,10 +609,14 @@ matplotlib==3.9.0
# via prophet
mccabe==0.7.0
# via pylint
-mcp==1.30.0
+mcp==2.3.0
# via
# apache-superset
# fastmcp-slim
+mcp-types==2.3.0
+ # via
+ # fastmcp-slim
+ # mcp
mdurl==0.1.2
# via
# -c requirements/base-constraint.txt
@@ -654,7 +663,7 @@ odfpy==1.4.1
# via
# -c requirements/base-constraint.txt
# pandas
-openapi-pydantic==0.5.1
+openapi-pydantic==0.6.0
# via fastmcp-slim
openapi-schema-validator==0.6.3
# via
@@ -669,7 +678,9 @@ openpyxl==3.1.5
opensearch-py==2.8.0
# via elasticsearch-dbapi
opentelemetry-api==1.39.1
- # via fastmcp-slim
+ # via
+ # fastmcp-slim
+ # mcp
oracledb==26.0.0
# via
# apache-superset
@@ -807,6 +818,7 @@ pydantic==2.14.1
# apache-superset-core
# fastmcp-slim
# mcp
+ # mcp-types
# openapi-pydantic
# pydantic-settings
pydantic-core==2.50.1
@@ -814,9 +826,7 @@ pydantic-core==2.50.1
# -c requirements/base-constraint.txt
# pydantic
pydantic-settings==2.10.1
- # via
- # fastmcp-slim
- # mcp
+ # via fastmcp-slim
pydata-google-auth==1.9.0
# via pandas-gbq
pydruid==0.6.9
@@ -1132,6 +1142,10 @@ trino==0.340.0
# via
# apache-superset
# testcontainers
+truststore==0.10.5
+ # via
+ # httpcore2
+ # httpx2
typing-extensions==4.16.0
# via
# -c requirements/base-constraint.txt
@@ -1145,8 +1159,10 @@ typing-extensions==4.16.0
# exceptiongroup
# fastmcp-slim
# grpcio
+ # httpx2
# limits
# mcp
+ # mcp-types
# opentelemetry-api
# oracledb
# py-key-value-aio
diff --git a/tests/unit_tests/mcp_service/test_native_tool_surface.py b/tests/unit_tests/mcp_service/test_native_tool_surface.py
index e06dba6ad0c..ab8cf255bdc 100644
--- a/tests/unit_tests/mcp_service/test_native_tool_surface.py
+++ b/tests/unit_tests/mcp_service/test_native_tool_surface.py
@@ -59,7 +59,7 @@ import mcp.types as mt
import pytest
from fastmcp import Client, FastMCP
from fastmcp.client.client import CallToolResult
-from fastmcp.tools.tool import Tool
+from fastmcp.tools import Tool
from fastmcp.utilities.json_schema import dereference_refs
from jsonschema import Draft202012Validator
@@ -213,7 +213,9 @@ async def measure_inventory() -> dict[str, Any]:
compact = {tool.name: tool for tool in compact_listings["text_only"].tools}
tools: dict[str, Any] = {}
for tool in listings["text_only"].tools:
- annotations = tool.annotations.model_dump() if tool.annotations else {}
+ annotations = (
+ tool.annotations.model_dump(by_alias=True) if tool.annotations else {}
+ )
output_schema = structured[tool.name].outputSchema
tools[tool.name] = {
"annotations": {key: annotations.get(key) for key in ANNOTATION_KEYS},
@@ -717,8 +719,8 @@ async def test_unregistered_tool_is_unreachable_on_every_path() -> None:
"""A tool absent from the registry (e.g. disabled) has no path in."""
native, compatibility = await build_both()
for name in ("execute_sql", "list_dashboards"):
- native.remove_tool(name)
- compatibility.remove_tool(name)
+ native.local_provider.remove_tool(name)
+ compatibility.local_provider.remove_tool(name)
results = await call_three_ways(native, compatibility, "execute_sql", {})
for path, result in results.items():
assert result.is_error is True, path
diff --git a/tests/unit_tests/mcp_service/test_tool_inventory.py b/tests/unit_tests/mcp_service/test_tool_inventory.py
index 5e985b12ae0..c01080a946e 100644
--- a/tests/unit_tests/mcp_service/test_tool_inventory.py
+++ b/tests/unit_tests/mcp_service/test_tool_inventory.py
@@ -21,7 +21,7 @@ from copy import deepcopy
from typing import Any
import pytest
-from fastmcp.tools.tool import Tool
+from fastmcp.tools import Tool
from jsonschema import Draft202012Validator
from superset.mcp_service.app import mcp
diff --git a/tests/unit_tests/mcp_service/test_validation_contract.py b/tests/unit_tests/mcp_service/test_validation_contract.py
index a50ca7be223..ef7a5377b76 100644
--- a/tests/unit_tests/mcp_service/test_validation_contract.py
+++ b/tests/unit_tests/mcp_service/test_validation_contract.py
@@ -17,6 +17,7 @@
"""Producer wire contracts for safe argument-validation failures."""
+import inspect
from enum import Enum
from typing import Any, Literal
from unittest.mock import patch
@@ -35,6 +36,7 @@ from superset.mcp_service.middleware import (
GlobalErrorHandlerMiddleware,
ToolResultCompatibilityMiddleware,
)
+from superset.mcp_service.utils import validation
from superset.mcp_service.utils.validation import validation_message
from superset.utils import json
@@ -389,8 +391,19 @@ async def test_validation_extraction_is_bounded(
extracted_counts: list[int] = []
def bounded_errors(error: ValidationError, **kwargs: Any) -> list[Any]:
- """Bound diagnostic extraction, not FastMCP's own error handling."""
- if kwargs == {
+ """Bound diagnostic extraction, not FastMCP's own error handling.
+
+ FastMCP summarises validation failures with the same ``errors()``
+ keyword arguments, so only calls made from Superset's extraction
+ module count as diagnostic extraction.
+ """
+ caller = inspect.currentframe()
+ caller_module = (
+ caller.f_back.f_globals.get("__name__", "")
+ if caller is not None and caller.f_back is not None
+ else ""
+ )
+ if caller_module == validation.__name__ and kwargs == {
"include_url": False,
"include_context": False,
"include_input": False,