From cfde8ffb4e1ad0624990ba09c659333bc632918c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 19 Oct 2026 01:34:05 +0000 Subject: [PATCH] test(sdk/python): drop dead enable_mcp kwarg broken by FastAPI 0.145 Agent never accepted enable_mcp, so the flag fell through **kwargs into FastAPI. FastAPI 0.145 removed **extra, and unpinned CI installs 0.146, which raises TypeError. Removing the argument restores the previous no-op without pinning FastAPI. Co-authored-by: Steven Huang --- sdk/python/tests/test_agent_graceful_shutdown.py | 5 ----- sdk/python/tests/test_did_manager_error_paths.py | 1 - 2 files changed, 6 deletions(-) diff --git a/sdk/python/tests/test_agent_graceful_shutdown.py b/sdk/python/tests/test_agent_graceful_shutdown.py index ec19af1d5..1f543dce7 100644 --- a/sdk/python/tests/test_agent_graceful_shutdown.py +++ b/sdk/python/tests/test_agent_graceful_shutdown.py @@ -34,7 +34,6 @@ async def test_agent_stop_is_idempotent(): node_id="shutdown-agent", agentfield_server="http://agentfield", auto_register=False, - enable_mcp=False, enable_did=False, ) @@ -72,7 +71,6 @@ async def test_agent_stop_skips_shutdown_notification_when_not_connected(): node_id="shutdown-agent-disconnected", agentfield_server="http://agentfield", auto_register=False, - enable_mcp=False, enable_did=False, ) @@ -186,7 +184,6 @@ async def test_cleanup_async_resources_releases_manager_and_client(): node_id="cleanup-agent", agentfield_server="http://agentfield", auto_register=False, - enable_mcp=False, enable_did=False, ) @@ -320,7 +317,6 @@ async def test_hanging_terminal_callback_is_abandoned_after_settlement(monkeypat node_id="shutdown-callback", agentfield_server="http://control", auto_register=False, - enable_mcp=False, enable_did=False, ) agent._background_tasks = set() @@ -393,7 +389,6 @@ async def test_shutdown_cancellation_status_and_workflow_payloads_agree(monkeypa node_id="shutdown-events", agentfield_server="http://control", auto_register=False, - enable_mcp=False, enable_did=False, ) started = asyncio.Event() diff --git a/sdk/python/tests/test_did_manager_error_paths.py b/sdk/python/tests/test_did_manager_error_paths.py index f0a83896d..c7c36455b 100644 --- a/sdk/python/tests/test_did_manager_error_paths.py +++ b/sdk/python/tests/test_did_manager_error_paths.py @@ -141,7 +141,6 @@ def test_agent_continues_to_function_after_did_registration_failure(monkeypatch) node_id="did-failure-agent", agentfield_server="http://agentfield", auto_register=False, - enable_mcp=False, enable_did=False, ) agent.did_manager = DIDManager("http://agentfield", agent.node_id)