MCP_TradingAgents / market_server.py
Anindhya's picture
Upload folder using huggingface_hub
01f0e50 verified
from mcp.server.fastmcp import FastMCP
from market import get_share_price
mcp = FastMCP("market_server")
@mcp.tool()
async def lookup_share_price(symbol: str) -> float:
"""This tool provides the current price of the given stock symbol.
Args:
symbol: the symbol of the stock
"""
return get_share_price(symbol)
if __name__ == "__main__":
mcp.run(transport='stdio')