mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Compare commits
1 commit
main
...
docs/fix-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3739fc3751 |
2 changed files with 5 additions and 7 deletions
|
|
@ -12,13 +12,13 @@ FastMCP 3.0 is currently in beta. Install by specifying the version explicitly.
|
|||
</Note>
|
||||
|
||||
```bash
|
||||
pip install fastmcp==3.0.0b1
|
||||
uv add "fastmcp>=3.0.0b1" --prerelease=explicit
|
||||
```
|
||||
|
||||
If you plan to use FastMCP in a uv-managed project, you can add it as a dependency with:
|
||||
Or with pip:
|
||||
|
||||
```bash
|
||||
uv add fastmcp --prerelease=allow
|
||||
pip install "fastmcp>=3.0.0b1" --pre
|
||||
```
|
||||
|
||||
### Optional Dependencies
|
||||
|
|
@ -26,7 +26,7 @@ uv add fastmcp --prerelease=allow
|
|||
FastMCP provides optional extras for specific features. For example, to install the background tasks extra:
|
||||
|
||||
```bash
|
||||
pip install "fastmcp[tasks]==3.0.0b1"
|
||||
uv add "fastmcp[tasks]>=3.0.0b1" --prerelease=explicit
|
||||
```
|
||||
|
||||
See [Background Tasks](/servers/tasks) for details on the task system.
|
||||
|
|
|
|||
|
|
@ -43,9 +43,7 @@ MCP background tasks are different: they're **protocol-native**. This means MCP
|
|||
<VersionBadge version="3.0.0" /> Background tasks require the `tasks` extra:
|
||||
|
||||
```bash
|
||||
pip install "fastmcp[tasks]==3.0.0b1"
|
||||
# or with uv
|
||||
uv add "fastmcp[tasks]" --prerelease=allow
|
||||
uv add "fastmcp[tasks]>=3.0.0b1" --prerelease=explicit
|
||||
```
|
||||
|
||||
Add `task=True` to any tool, resource, resource template, or prompt decorator. This marks the component as capable of background execution.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue