From eef1a5384cb6c4ed055dc62cbdd418148b6c73a9 Mon Sep 17 00:00:00 2001 From: Pavan Kumar <66913595+ascender1729@users.noreply.github.com> Date: Sat, 19 Apr 2025 09:06:18 +0000 Subject: [PATCH] Restored to 'eae5d510b502852f51ba86a44012b42d892fd643' Replit-Restored-To: eae5d510b502852f51ba86a44012b42d892fd643 --- examples/mcp_example/mock_math_server.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/examples/mcp_example/mock_math_server.py b/examples/mcp_example/mock_math_server.py index bba9a01d..e49368a2 100644 --- a/examples/mcp_example/mock_math_server.py +++ b/examples/mcp_example/mock_math_server.py @@ -42,24 +42,4 @@ def divide(a: int, b: int) -> float: if __name__ == "__main__": print("Starting Mock Math Server on port 8000...") - # Initialize connection params - server_params = MCPServerSseParams( - url="http://0.0.0.0:8000/mcp", - headers={"Content-Type": "application/json"}, - timeout=5.0, - sse_read_timeout=30.0 - ) - - # Initialize the agent - agent = Agent( - agent_name="Math-Processing-Agent", - agent_description="Specialized agent for mathematical operations", - system_prompt="You are a mathematical computation specialist. Use the available tools to perform calculations.", - max_loops=1, - mcp_servers=[server_params], - streaming_on=True, - model_name="gpt-4o-mini" - ) - - # Start the MCP server mcp.run(transport="sse", host="0.0.0.0", port=8000)