mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-19 12:04:18 +02:00
Merge pull request #479 from mai-nakagawa/patch-1
Doc(quickstart): Fix import statements
This commit is contained in:
commit
a31b423358
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ There are a few things to note here:
|
|||
In order to run the server with Python, we need to add a `run` statement to the `__main__` block of the server file.
|
||||
|
||||
```python my_server.py {9-10}
|
||||
from fastmcp import FastMCP, Client
|
||||
from fastmcp import FastMCP
|
||||
|
||||
mcp = FastMCP("My MCP Server")
|
||||
|
||||
|
|
@ -99,6 +99,7 @@ Now that the server can be executed with `python my_server.py`, we can interact
|
|||
In a new file, create a client and point it at the server file:
|
||||
|
||||
```python my_client.py
|
||||
import asyncio
|
||||
from fastmcp import Client
|
||||
|
||||
client = Client("my_server.py")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue