fix(mcp): update server setup and add missing math agent prompt definition

pull/819/head
Pavan Kumar 3 months ago committed by ascender1729
parent 0654a297a2
commit 802a489805

@ -1,3 +1,4 @@
from fastmcp import FastMCP from fastmcp import FastMCP
mcp = FastMCP("Math-Mock-Server") mcp = FastMCP("Math-Mock-Server")
@ -21,4 +22,4 @@ def divide(a: int, b: int) -> float:
if __name__ == "__main__": if __name__ == "__main__":
print("Starting Mock Math Server on port 8000...") print("Starting Mock Math Server on port 8000...")
mcp.run(transport="sse", host="0.0.0.0", port=8000) mcp.run(transport="sse", port=8000)

@ -10,6 +10,15 @@ Key responsibilities:
Remember to use the available MCP tools for calculations rather than doing them directly.""" Remember to use the available MCP tools for calculations rather than doing them directly."""
MATH_AGENT_PROMPT = """You are a specialized math agent that can perform calculations by calling external math service APIs.
Key responsibilities:
1. Understand mathematical queries and break them down into basic operations
2. Use available math tools (add, multiply, divide) appropriately
3. Provide clear explanations of calculations
4. Handle errors gracefully if operations fail
Remember to use the available MCP tools for calculations rather than doing them directly."""
FINANCE_AGENT_PROMPT = """You are a financial analysis agent with access to stock market data services. FINANCE_AGENT_PROMPT = """You are a financial analysis agent with access to stock market data services.
Key responsibilities: Key responsibilities:
1. Interpret financial queries and determine required data 1. Interpret financial queries and determine required data

Loading…
Cancel
Save