Skip to content

chore(deps): update mcp requirement from <2,>=1.0.0 to >=1.0.0,<3 - #65

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mcp-gte-1.0.0-and-lt-3
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mcp-gte-1.0.0-and-lt-3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Updates the requirements on mcp to permit the latest version.

Release notes

Sourced from mcp's releases.

v2.2.0

pip install -U mcp. Docs: https://py.sdk.modelcontextprotocol.io/

A few defaults changed in this release. If you run a server or client on 2.x, skim these first:

Behaviour changes

HTTP client redirects are only followed within the endpoint's origin (#3397)

  • Client("https://..."), streamable_http_client and sse_client follow a redirect only if it stays on the same scheme, host and port (or upgrades http to https on the same host).
  • A redirect anywhere else is not followed: the call fails with MCPError and the session stays usable (an SSE connect fails with httpx2.HTTPStatusError). If that other URL is the server you meant, use it as the endpoint URL.
  • The follow_redirects setting on an httpx2.AsyncClient you pass in is no longer used for MCP requests, so you don't need it for the trailing-slash redirect any more.
  • The OAuth providers apply the same rule to their own requests.

Idle Streamable HTTP sessions now expire (legacy <=2025-11-25 spec( (#3395)

  • A stateful session with nothing in flight for 30 minutes is closed. The client's next request gets a 404 and it has to initialize again.
  • Clients that keep the GET stream open (the SDK's Client does) are not affected. Neither are stateless servers or 2026-07-28 connections.
  • A server also holds at most 10 000 sessions at once; beyond that, new sessions get a 503.
  • To turn either off: mcp.run(transport="streamable-http", session_idle_timeout=None, max_sessions=None) (also on streamable_http_app() and run_streamable_http_async()).

The OAuth client checks the authorization server's issuer on the legacy path too (#3398)

  • For servers without protected resource metadata, authorization server metadata whose issuer isn't the server's own origin is now rejected with OAuthFlowError: Authorization server metadata issuer mismatch. The protected-resource-metadata path has done this since 2.0.
  • A 403 that isn't an insufficient_scope challenge is returned to the caller instead of retried.
  • If protected resource metadata can't be fetched because of a 5xx/429, the flow now stops instead of falling back to the legacy endpoints.

Two new MCPDeprecationWarnings (#3435, #3447)

  • ClientCredentialsOAuthProvider / PrivateKeyJWTOAuthProvider without issuer=. Pass your authorization server's issuer URL; 3.0 will require it.
  • AuthSettings with resource_server_url set but validate_token_resource unset. Set it to True or False; 3.0 defaults it to True.
  • Both keep working as before in 2.x; this mostly matters if your tests turn warnings into errors.

New

  • AuthSettings.validate_token_resource: only accept tokens your TokenVerifier reports as issued for this server (#3447).
  • issuer= on ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider (#3398).
  • session_idle_timeout= and max_sessions= on the Streamable HTTP server entry points (#3395).

Fixes

  • A client DELETE frees its session immediately, and a refused opening request no longer leaves a session behind (#2455, #3228, #3300).
  • $refs in a tool's outputSchema resolve within that schema only; an unresolvable one surfaces as RuntimeError: Invalid schema for tool ... (#3394).

Known gaps

The tasks extension (SEP-2663), DPoP (SEP-1932) and the jwt-bearer grant are not implemented yet; https://github.com/modelcontextprotocol/python-sdk/blob/main/ROADMAP.md tracks them.

What's Changed

... (truncated)

Commits
  • 9972c21 Replace RootModel wrappers with type aliases and TypeAdapter validation (#3470)
  • fd66270 docs: refresh translations, and translate pages in parallel (#3458)
  • 08a3bc8 docs: ask for AI disclosure on comments too (#3459)
  • 7bb486a docs: stop presenting the in-memory client as the way to connect (#3443)
  • 0c91368 Add AuthSettings.validate_token_resource to check a bearer token's resource (...
  • 9771e6b Keep following a relative redirect when the endpoint URL carries userinfo (#3...
  • a925e55 Bump the locked versions of eight dev and test dependencies (#3449)
  • e8b9486 Bump pymdown-extensions from 11.0 to 11.0.1 (#3285)
  • c6762e8 Follow redirects only within the MCP endpoint's origin (#3397)
  • 5fd3abc Skip automatic docs previews for fork PRs and drop the setup-uv retry steps (...
  • Additional commits viewable in compare view

@dependabot @github

dependabot Bot commented on behalf of github Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

🫀 flight recorder py3.13 — newest last, each line ~15s apart

t+  0s log=0B frozen=0s | loadavg=1.15 0.32 0.11 2/264 2385 | psi_io=avg10=3.22 psi_mem=avg10=0.00 | MemTotal=15989M MemFree=12298M MemAvailable=14647M SwapTotal=3071M SwapFree=3071M Committed_AS=1993M
t+6s CLEAN EXIT — suite finished
collected test.log tail

    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
__________________ ERROR collecting tests/test_transports.py ___________________
ImportError while importing test module '/home/runner/work/kitsune-mcp/kitsune-mcp/tests/test_transports.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_transports.py:11: in <module>
    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
=========================== short test summary info ============================
ERROR tests/test_docker_e2e.py
ERROR tests/test_notifications.py
ERROR tests/test_param_aliases.py
ERROR tests/test_persistent.py
ERROR tests/test_registry.py
ERROR tests/test_registry_lock.py
ERROR tests/test_shapeshift.py
ERROR tests/test_tools.py
ERROR tests/test_transports.py
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 9 errors in 4.01s ===============================

recent kmsg
(quiet)

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

🫀 flight recorder py3.12 — newest last, each line ~15s apart

t+  0s log=0B frozen=0s | loadavg=0.28 0.10 0.03 2/260 2384 | psi_io=avg10=0.99 psi_mem=avg10=0.00 | MemTotal=15989M MemFree=12614M MemAvailable=14967M SwapTotal=3071M SwapFree=3071M Committed_AS=2016M
t+6s CLEAN EXIT — suite finished
collected test.log tail

    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
__________________ ERROR collecting tests/test_transports.py ___________________
ImportError while importing test module '/home/runner/work/kitsune-mcp/kitsune-mcp/tests/test_transports.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_transports.py:11: in <module>
    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
=========================== short test summary info ============================
ERROR tests/test_docker_e2e.py
ERROR tests/test_notifications.py
ERROR tests/test_param_aliases.py
ERROR tests/test_persistent.py
ERROR tests/test_registry.py
ERROR tests/test_registry_lock.py
ERROR tests/test_shapeshift.py
ERROR tests/test_tools.py
ERROR tests/test_transports.py
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 9 errors in 3.91s ===============================

recent kmsg
(quiet)

@dependabot
dependabot Bot force-pushed the dependabot/pip/mcp-gte-1.0.0-and-lt-3 branch from e3cec12 to f9226dc Compare October 1, 2026 17:55
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🫀 flight recorder py3.12 — newest last, each line ~15s apart

t+  0s log=573B frozen=0s | loadavg=0.29 0.12 0.04 2/270 2446 | psi_io=avg10=0.52 psi_mem=avg10=0.00 | MemTotal=15989M MemFree=12650M MemAvailable=15005M SwapTotal=3071M SwapFree=3071M Committed_AS=2021M
t+6s CLEAN EXIT — suite finished
collected test.log tail

    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
__________________ ERROR collecting tests/test_transports.py ___________________
ImportError while importing test module '/home/runner/work/kitsune-mcp/kitsune-mcp/tests/test_transports.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_transports.py:11: in <module>
    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
=========================== short test summary info ============================
ERROR tests/test_docker_e2e.py
ERROR tests/test_notifications.py
ERROR tests/test_param_aliases.py
ERROR tests/test_persistent.py
ERROR tests/test_registry.py
ERROR tests/test_registry_lock.py
ERROR tests/test_shapeshift.py
ERROR tests/test_tools.py
ERROR tests/test_transports.py
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 9 errors in 3.96s ===============================

recent kmsg
(quiet)

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🫀 flight recorder py3.13 — newest last, each line ~15s apart

t+  0s log=0B frozen=0s | loadavg=0.62 0.16 0.05 1/247 2419 | psi_io=avg10=5.67 psi_mem=avg10=0.00 | MemTotal=15989M MemFree=12454M MemAvailable=14805M SwapTotal=3071M SwapFree=3071M Committed_AS=2005M
t+6s CLEAN EXIT — suite finished
collected test.log tail

    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
__________________ ERROR collecting tests/test_transports.py ___________________
ImportError while importing test module '/home/runner/work/kitsune-mcp/kitsune-mcp/tests/test_transports.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_transports.py:11: in <module>
    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
=========================== short test summary info ============================
ERROR tests/test_docker_e2e.py
ERROR tests/test_notifications.py
ERROR tests/test_param_aliases.py
ERROR tests/test_persistent.py
ERROR tests/test_registry.py
ERROR tests/test_registry_lock.py
ERROR tests/test_shapeshift.py
ERROR tests/test_tools.py
ERROR tests/test_transports.py
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 9 errors in 4.03s ===============================

recent kmsg
6,568,49156780,-;hv_balloon: Max. dynamic memory size: 16384 MB

Updates the requirements on [mcp](https://github.com/modelcontextprotocol/python-sdk) to permit the latest version.
- [Release notes](https://github.com/modelcontextprotocol/python-sdk/releases)
- [Changelog](https://github.com/modelcontextprotocol/python-sdk/blob/main/RELEASE.md)
- [Commits](modelcontextprotocol/python-sdk@v1.0.0...v2.2.0)

---
updated-dependencies:
- dependency-name: mcp
  dependency-version: 2.2.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/mcp-gte-1.0.0-and-lt-3 branch from f9226dc to b77268b Compare October 1, 2026 19:42
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🫀 flight recorder py3.12 — newest last, each line ~15s apart

t+  0s log=0B frozen=0s | loadavg=0.21 0.08 0.02 2/245 2315 | psi_io=avg10=6.61 psi_mem=avg10=0.00 | MemTotal=15988M MemFree=12618M MemAvailable=14955M SwapTotal=3071M SwapFree=3071M Committed_AS=2120M
t+4s CLEAN EXIT — suite finished
collected test.log tail

    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
__________________ ERROR collecting tests/test_transports.py ___________________
ImportError while importing test module '/home/runner/work/kitsune-mcp/kitsune-mcp/tests/test_transports.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_transports.py:11: in <module>
    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
=========================== short test summary info ============================
ERROR tests/test_docker_e2e.py
ERROR tests/test_notifications.py
ERROR tests/test_param_aliases.py
ERROR tests/test_persistent.py
ERROR tests/test_registry.py
ERROR tests/test_registry_lock.py
ERROR tests/test_shapeshift.py
ERROR tests/test_tools.py
ERROR tests/test_transports.py
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 9 errors in 2.65s ===============================

recent kmsg
(quiet)

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🫀 flight recorder py3.13 — newest last, each line ~15s apart

t+  0s log=0B frozen=0s | loadavg=1.25 0.39 0.14 2/264 2432 | psi_io=avg10=7.73 psi_mem=avg10=0.00 | MemTotal=15989M MemFree=12537M MemAvailable=14869M SwapTotal=3071M SwapFree=3071M Committed_AS=2016M
t+6s CLEAN EXIT — suite finished
collected test.log tail

    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
__________________ ERROR collecting tests/test_transports.py ___________________
ImportError while importing test module '/home/runner/work/kitsune-mcp/kitsune-mcp/tests/test_transports.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_transports.py:11: in <module>
    from server import (
server.py:28: in <module>
    from kitsune_mcp.app import mcp  # noqa: E402, F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
kitsune_mcp/app.py:3: in <module>
    from mcp.server.fastmcp import FastMCP
/opt/hostedtoolcache/Python/3.13.15/x64/lib/python3.13/site-packages/mcp/server/fastmcp.py:16: in <module>
    raise ModuleNotFoundError(_MESSAGE, name=__name__)
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https://py.sdk.modelcontextprotocol.io/v2/migration/#fastmcp-renamed-to-mcpserver or pin 'mcp<2' to keep running v1 code.
=========================== short test summary info ============================
ERROR tests/test_docker_e2e.py
ERROR tests/test_notifications.py
ERROR tests/test_param_aliases.py
ERROR tests/test_persistent.py
ERROR tests/test_registry.py
ERROR tests/test_registry_lock.py
ERROR tests/test_shapeshift.py
ERROR tests/test_tools.py
ERROR tests/test_transports.py
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 9 errors in 3.83s ===============================

recent kmsg
(quiet)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants