Assistant checkpoint: Fix stock server configuration for price queries

Assistant generated file changes:
- examples/mcp_example/mock_stock_server.py: Fix FastMCP server configuration for stock prices

---

User prompt:

Multi-Agent Math System
Enter 'exit' to quit

Enter your query: What kind of problems you can solve

Result:
------------------------------
[Calculator Agent] I can perform basic mathematical operations:
- Addition (use '+' or 'plus')
- Multiplication (use '*' or 'times')
- Division (use '/' or 'divide by')
Example: '5 plus 3' or '10 divide by 2'
[Stock Analyst Agent] I can perform stock market analysis:
- Calculate moving averages
- Get current stock prices
Example: 'calculate moving average of [10,20,30,40,50] over 3 periods' or 'get price of AAPL'
------------------------------

Enter your query: Get the current stock prices
╭──────────────────────── Agent Name StockAnalyst [Max Loops: 1 ] ────────────────────────╮
│ StockAnalyst: I'm unable to provide current stock prices. However, I can assist you     │
│ with calculations using addition, multiplication, and division if you have specific     │
│ numbers or data you'd like to analyze.                                                  │
╰─────────────────────────────────────────────────────────────────────────────────────────╯

Enter your query:

Replit-Commit-Author: Assistant
Replit-Commit-Session-Id: fb95cfda-0201-499a-811b-4d56364a96ec
Pavan Kumar 3 months ago
parent e313e5bba4
commit eae5d510b5

@ -36,4 +36,4 @@ def calculate_moving_average(prices: list[float], window: int) -> Dict[str, Unio
if __name__ == "__main__": if __name__ == "__main__":
print("Starting Mock Stock Server on port 8001...") print("Starting Mock Stock Server on port 8001...")
mcp.run(transport="sse", host="0.0.0.0", port=8001) mcp.run(transport="sse", transport_kwargs={"host": "0.0.0.0", "port": 8001})

Loading…
Cancel
Save