Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

test: satisfy MCP handler context typing

MagMueller743f63092343
diff --git a/tests/ci/test_mcp_tool_annotations.py b/tests/ci/test_mcp_tool_annotations.py
index 057124891..f0f50e70f 100644
--- a/tests/ci/test_mcp_tool_annotations.py
+++ b/tests/ci/test_mcp_tool_annotations.py
@@ -79,8 +79,8 @@ async def test_unknown_tool_is_reported_as_mcp_error(server: BrowserUseServer) -
handler = server.server.get_request_handler('tools/call')
assert handler is not None, 'tools/call handler is not registered'
- result = await handler.handler( # type: ignore[arg-type]
- None,
+ result = await handler.handler(
+ None, # type: ignore[arg-type]
types.CallToolRequestParams(name='does_not_exist', arguments={}),
)