AI_Equity_Traders / market_server.py
Jonathand2028's picture
Upload folder using huggingface_hub
3e8b356 verified
raw
history blame contribute delete
394 Bytes
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')