This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from mcp.server.fastmcp import FastMCPAdd commentMore actions | |
| # Create an MCP server | |
| mcp = FastMCP("Calculator Server", host="0.0.0.0", port=8050) | |
| @mcp.tool()Add commentMore actions | |
| def add_numbers(number1: int, number2: int) -> str: | |
| """Addes two numbers together. | |
| Args: |