Files
glances/tests
Anand Hegde 6d5a4e8c6a feat(mcp): support MCP Python SDK 2.x (#3643)
MCP Python SDK 2 renamed FastMCP to MCPServer (mcp.server.fastmcp is
gone) and moved transport_security from the constructor to sse_app().
Import MCPServer when available and fall back to FastMCP on 1.x, passing
transport_security where each version expects it.

Allow mcp < 3 in the mcp extra. 1.x stays supported because semgrep (dev
group) pins mcp==1.29.0: a v2-only pin makes uv resolve semgrep down to
1.79.0.

tests/test_mcp.py now passes plain strings to read_resource() and reads
uriTemplate through model_dump(by_alias=True), so it runs on both SDKs.
2026-09-14 12:10:09 +05:30
..
2026-08-07 10:54:14 +02:00
2026-03-24 08:18:04 +00:00
2025-12-26 18:47:01 +01:00
2025-12-26 18:47:01 +01:00
2026-05-21 03:06:41 +00:00
2026-02-26 21:55:37 +01:00
2026-07-18 09:29:06 +02:00