Skip to content

Issue: server.py Stuck on Loading, Not Starting #419

@Ishitvaep

Description

@Ishitvaep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close