diff --git a/examples/foundational/39c-mcp-run-http.py b/examples/foundational/39c-mcp-run-http.py index df17869bb..e39349f37 100644 --- a/examples/foundational/39c-mcp-run-http.py +++ b/examples/foundational/39c-mcp-run-http.py @@ -59,9 +59,7 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si voice_id="71a7ad14-091c-4e8e-a314-022ece01c121", # British Reading Lady ) - llm = GoogleLLMService( - api_key=os.getenv("GOOGLE_API_KEY"), model="gemini-2.0-flash" - ) + llm = GoogleLLMService(api_key=os.getenv("GOOGLE_API_KEY"), model="gemini-2.0-flash") try: # Github MCP docs: https://github.com/github/github-mcp-server diff --git a/src/pipecat/services/mcp_service.py b/src/pipecat/services/mcp_service.py index 13d58ed0c..c51a9bd9c 100644 --- a/src/pipecat/services/mcp_service.py +++ b/src/pipecat/services/mcp_service.py @@ -98,7 +98,7 @@ class MCPClient(BaseObject): properties = tool_schema["input_schema"].get("properties", {}) required = tool_schema["input_schema"].get("required", []) - + # Only clean properties for Google/Gemini LLM services if llm and self._is_google_llm(llm): logger.debug(f"Detected Google LLM service, cleaning schema for Gemini compatibility")