Restored to 'eae5d510b502852f51ba86a44012b42d892fd643'

Replit-Restored-To: eae5d510b5
pull/819/head
Pavan Kumar 3 months ago committed by ascender1729
parent c4eb44e67d
commit eef1a5384c

@ -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)

Loading…
Cancel
Save