Many MCP tools broken after upgrade to gemini-cli v0.1.22
These tools worked with gemini --version 0.1.15 but after upgrade:
❯ gemini --version
0.1.22
❯ gemini -p "mcp-tools list -v"
Data collection is disabled.
Skipping tool 'change_case_priority' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_get_rule_details' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_get_detection_details' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_execute_udm_query' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_remove_values_from_reference_list' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_add_values_to_reference_list' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_list_io_cs' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_enrich_ip' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_ping' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_list_events' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_execute_retrohunt' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_is_value_in_reference_list' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_list_assets' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_lookup_similar_alerts' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_enrich_domain' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'google_chronicle_get_reference_lists' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_get_similar_cases' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_mark_as_important' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_create_or_update_entity_properties' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_change_priority' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_create_gemini_case_summary' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_set_risk_score' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_set_custom_fields' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_set_case_sla' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_is_in_custom_list' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_test_siemplify_proxy' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_case_tag' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_close_alert' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_add_to_custom_list' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_case_comment' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_permitted_alert_time' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_open_web_url' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_change_case_stage' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_add_general_insight' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_resume_alert_sla' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_instruction' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_ping' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_get_case_details' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_set_scope_context_value' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_add_tags_to_similar_cases' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_add_entity_insight' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_attach_playbook_to_alert' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_close_case' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_assign_case' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_wait_for_custom_fields' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_create_entity' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_update_case_description' from MCP server 'secops-soar' because it has missing types in its parameter
schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_raise_incident' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_run_remote' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_pause_alert_sla' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_remove_from_custom_list' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_change_alert_priority' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_set_alert_sla' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_get_connector_context_value' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_get_scope_context_value' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_remove_tag' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_parse_eml_to_json' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_list_operations' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_query_joiner' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_count_list' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_ping' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_export_entities_as_open_ioc_file' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_extract_top_from_json' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_get_deployment_url' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_delete_file' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_filter_json' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'siemplify_utilities_count_entities_in_scope' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'csv_csv_search_by_entity' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'csv_ping' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'csv_save_json_to_csv' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
Skipping tool 'csv_csv_search_by_string' from MCP server 'secops-soar' because it has missing types in its parameter schema. Please file an issue with the owner of the MCP server.
我也遇到了,应该怎么做才行呢
I am running into this issue as well. It seems to be isolated to the SOAR integrations. The base SOAR tools still function for me on the version listed.
I was able to fix the integrations (Okta, CSV, Siemplify, and Crowdstrike) with the same logic:
Issue: SOAR Tools Failing to Load Due to Missing Parameter Types
Description
Several tools within the SOAR integrations (e.g., csv.py, crowdstrikefalcon.py) are not loading on the MCP server. The server logs indicate this is due to missing types in its parameter schema. This issue prevents any of the affected integration's tools from being available for use.
The Core Problem: Ambiguous Schemas
For the MCP server to safely and reliably use a tool, it must know the exact data type for each of the tool's parameters. This definition is called a schema.
The schema answers critical questions for the server:
- Is a parameter a string, a number, or a boolean?
- Is it a list? If so, a list of what?
- Is the parameter required or optional?
The root cause of this issue is the use of the List[Any] type hint for several function parameters. In Python, Any is too generic for the MCP server to build a reliable schema, as it provides no specific information about the expected data type. The server correctly flags this as a "missing type."
How the Issue Was Addressed: From Ambiguous to Specific
The fix involves replacing the ambiguous type hints with specific, machine-readable ones that correctly define the expected data.
Original
In the crowdstrikefalcon.py file, a parameter was defined like this:
status: Annotated[List[Any], Field(default=None, description="...")]
This is problematic because List[Any] tells the server it's a list of "anything," which is not a valid schema.
Corrected Code
The vague type hint was replaced with a specific and correct one: status: Annotated[Optional[List[str]], Field(default=None, description="...")]
Breakdown of the fix:
List[str] instead of List[Any]: The parameter's name and description indicated it expected a list of strings (e.g., "New", "Closed"). Replacing Any with str provides the precise type information required by the schema.
Optional[...]: The parameter has default=None, making it optional. The correct way to represent this in modern Python type hints is by wrapping the type in Optional [...]. This tells the server that the parameter can be either a list of strings or None.
Summary of Changes
This issue was resolved by inspecting all functions in the affected files and replacing every instance of an ambiguous type hint like List[Any] with a specific, valid type hint (e.g., Optional[List[str]], Optional[str]). This ensures that the MCP server can build a valid schema for every tool, allowing them to be loaded correctly.
Resolved on main. Tool parameter schemas and Pydantic models (including TargetEntity and CasePriority) have been standardized across FastMCP tools on main, and Gemini CLI has been deprecated.