Rename FastMCP to MCPServer (#1951)

This commit is contained in:
Marcelo Trylesinski 2026-01-25 14:45:52 +01:00 • committed by GitHub
commit 65c614e48e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,9 +8,9 @@ This makes it easy to write tests without network overhead.
Let's assume you have a simple server with a single tool:
```python title="server.py"
from mcp.server import FastMCP
from mcp.server import MCPServer
app = FastMCP("Calculator")
app = MCPServer("Calculator")
@app.tool()
def add(a: int, b: int) -> int: