Commit Graph

18 Commits

Author SHA1 Message Date
sudhanshu112233shukla 5b8d6aa014 fix(mcp): ensure extracted content is used in next step (#2582)
- Add include_extracted_content_only_once=True to ActionResult in MCP client
2026-01-14 18:59:04 +00:00
reformedot b4e9ffa984 refactor: implement error handling for asyncio tasks across various components
- Introduced a utility function `create_task_with_error_handling` to manage asyncio tasks with proper exception logging and suppression options.
- Updated multiple components, including `SessionManager`, `BrowserSession`, and various watchdogs, to utilize the new error handling mechanism for background tasks.
- Enhanced overall robustness of asynchronous operations by ensuring exceptions are logged and handled appropriately, improving maintainability and debugging capabilities.
2025-11-11 17:27:54 -08:00
Magnus Müller caa0e7ef1b Rename controller to tools instances 2025-08-26 11:30:39 -07:00
Magnus Müller 13dd73b23a Update Tool imports in docs, readme, and docstrings 2025-08-26 11:13:27 -07:00
Magnus Müller e89e78842c Rename controller file to tools 2025-08-26 11:06:28 -07:00
Magnus Müller 2a83442f17 Rename Controller to Tools 2025-08-26 11:04:16 -07:00
Nick Sweeting db4c4e9b49 fix duplicate typed keystrokes 2025-08-08 04:13:44 -07:00
Nick Sweeting daa430435d working cli 2025-08-06 06:23:45 -07:00
claude[bot] 5465163cd9 feat(mcp): add array type inference for MCP tool parameters
- Enhanced _json_schema_to_python_type to recursively handle array item types
- Arrays with ''items'' schema now properly return list[item_type] instead of plain list
- Supports nested types like list[str], list[float], and list[CustomModel]
- Added comprehensive test for array type inference in test_mcp_array_type_inference

This allows MCP tools with array parameters to have proper type hints and validation,
fixing issues where array parameters were losing their item type information.

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-30 18:55:33 +00:00
claude[bot] 98aecf6701 Fix failing tests and type checking errors
- Fix test assertion: change assert result.success to assert result.success is not False
- Fix MCP parameter serialization: use model_dump(exclude_none=True) to exclude None values
- Fix pyright type checking errors: add proper type guards and use getattr for dynamic access

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-15 21:55:59 +00:00
claude[bot] 0e88c866b2 Fix nested object parameter handling in MCP client
- Add ConfigDict import from pydantic
- Fix default value handling for optional fields with proper type annotations
- Improve nested model creation with error handling and ConfigDict configuration
- Apply same improvements to main parameter model creation

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-15 21:34:22 +00:00
claude[bot] 9c9e8df254 fix(mcp): properly handle nested objects in tool parameters
- Modified _json_schema_to_python_type to recursively create nested Pydantic models for object types with properties
- Fixed issue where nested object properties were being lost during parameter processing
- Added test_mcp_nested_object_parameters to verify nested objects are properly preserved
- Updated MockMCPServer to include process_trace_update tool with nested object schema

Fixes #2453

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-15 19:06:25 +00:00
Nick Sweeting af0697f12b fix tests and other improvements 2025-07-08 02:41:48 -07:00
Nick Sweeting 9b552ee8ac test and telemetry fixes 2025-07-08 01:37:47 -07:00
Nick Sweeting 5171916bb4 fix har recording and logging tests 2025-07-08 01:12:10 -07:00
Nick Sweeting 1b9f7253f0 fix tests and simplify pid detection 2025-07-08 00:56:25 -07:00
Nick Sweeting 2271e2a94c remove dead create_playwright_mcp_client 2025-07-07 21:59:54 -07:00
Nick Sweeting 6dcf479fc6 add readme MCP section and fix lint errors 2025-07-07 17:07:06 -07:00