-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Issue: server.py Stuck on Loading, Not Starting
Description
When trying to run server.py using python server.py, the process keeps loading indefinitely and does not start the server.
Environment
OS: macOS
Python Version: 3.13.2
Package Manager: uv
MCP Framework: FastMCP
Code
python
Copy
Edit
from mcp.server.fastmcp import FastMCP
Initialize MCP server with auto tool selection
mcp = FastMCP("Basic MCP Server", auto_tool_selection=True)
Addition tool
@mcp.tool()
def add_numbers(num1: int, num2: int) -> dict:
return {"result": num1 + num2}
Run the server
if name == "main":
mcp.run()
Steps to Reproduce
Run the command:
bash
Copy
Edit
python server.py
The terminal does not show any output and remains stuck on loading.
Expected Behavior
The server should start and print logs indicating it is running.
Actual Behavior
The terminal remains in a loading state indefinitely without any response.