Add Exa MCP server + fix tool schema validation for Google AI Studio models#32
Draft
Add Exa MCP server + fix tool schema validation for Google AI Studio models#32
Conversation
Agent-Logs-Url: https://github.com/chinkan/RustFox/sessions/aeaa3f4f-e531-4666-8850-659cb03375e3 Co-authored-by: chinkan <16433287+chinkan@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: chinkan <16433287+chinkan@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: chinkan <16433287+chinkan@users.noreply.github.com>
…patibility Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: chinkan <16433287+chinkan@users.noreply.github.com>
Add test_sanitize_schema_recurses_into_items to verify that sanitize_schema properly recurses into array items schemas and removes undefined required fields. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: chinkan <16433287+chinkan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chinkan/RustFox/sessions/2bc3f06f-5196-4db0-bf6b-02fe9f104458 Co-authored-by: chinkan <16433287+chinkan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
chinkan
April 8, 2026 09:52
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google AI Studio (Gemini/Gemma via OpenRouter) rejects tool schemas where
requiredlists property names absent fromproperties. Many MCP servers ship schemas with this violation, making these models unusable when any such tool is loaded.Schema sanitization (
src/llm.rs)Added
sanitize_schema()— a recursiveserde_json::Valuemutator applied to every tool definition inchat_with_model()before the API call:required[]to only retain keys that exist inpropertiesrequiredentirely if the filtered array is emptypropertiesanditemsschemasExa MCP server
setup/index.html: AddedexatoMCP_CATALOGunderKnowledge & Data— bridgeshttps://mcp.exa.ai/mcpvianpx mcp-remote, requiresEXA_API_KEYconfig.example.toml: Added commented[[mcp_servers]]example block for Exa