mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 22:14:18 +02:00
chore: Update SDK documentation (#1950)
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
This commit is contained in:
parent
91653d2c1e
commit
ef4afe4061
42 changed files with 827 additions and 709 deletions
|
|
@ -84,8 +84,18 @@ Run a MCP server or connect to a remote one.
|
|||
- `skip_source`: Whether to skip source preparation step
|
||||
|
||||
|
||||
### `run_v1_server` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/cli/run.py#L200" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
|
||||
### `run_v1_server_async` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/cli/run.py#L200" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
|
||||
|
||||
```python
|
||||
run_v1_server(server: FastMCP1x, host: str | None = None, port: int | None = None, transport: TransportType | None = None) -> None
|
||||
run_v1_server_async(server: FastMCP1x, host: str | None = None, port: int | None = None, transport: TransportType | None = None) -> None
|
||||
```
|
||||
|
||||
|
||||
Run a FastMCP 1.x server using async methods.
|
||||
|
||||
**Args:**
|
||||
- `server`: FastMCP 1.x server instance
|
||||
- `host`: Host to bind to
|
||||
- `port`: Port to bind to
|
||||
- `transport`: Transport protocol to use
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue