mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
Update docs for 3.0 GA release (#3216)
* Update docs for 3.0 GA release
* Add upgrade command to v2 migration section
* Revert "Add upgrade command to v2 migration section"
This reverts commit ee03d0d847.
This commit is contained in:
parent
657298112b
commit
958e657521
4 changed files with 7 additions and 11 deletions
|
|
@ -699,7 +699,7 @@
|
||||||
"icon": "code"
|
"icon": "code"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "v3.0.0 (rc 2)"
|
"version": "v3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dropdowns": [
|
"dropdowns": [
|
||||||
|
|
|
||||||
|
|
@ -7,18 +7,14 @@ icon: arrow-down-to-line
|
||||||
|
|
||||||
We recommend using [uv](https://docs.astral.sh/uv/getting-started/installation/) to install and manage FastMCP.
|
We recommend using [uv](https://docs.astral.sh/uv/getting-started/installation/) to install and manage FastMCP.
|
||||||
|
|
||||||
<Note>
|
|
||||||
FastMCP 3.0 is currently a release candidate. Package managers won't install pre-release versions by default—you must explicitly request one (e.g., `>=3.0.0rc1`).
|
|
||||||
</Note>
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install "fastmcp>=3.0.0rc1"
|
pip install fastmcp
|
||||||
```
|
```
|
||||||
|
|
||||||
Or with uv:
|
Or with uv:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uv add "fastmcp>=3.0.0rc1"
|
uv add fastmcp
|
||||||
```
|
```
|
||||||
|
|
||||||
### Optional Dependencies
|
### Optional Dependencies
|
||||||
|
|
@ -26,7 +22,7 @@ uv add "fastmcp>=3.0.0rc1"
|
||||||
FastMCP provides optional extras for specific features. For example, to install the background tasks extra:
|
FastMCP provides optional extras for specific features. For example, to install the background tasks extra:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install "fastmcp[tasks]==3.0.0rc1"
|
pip install "fastmcp[tasks]"
|
||||||
```
|
```
|
||||||
|
|
||||||
See [Background Tasks](/servers/tasks) for details on the task system.
|
See [Background Tasks](/servers/tasks) for details on the task system.
|
||||||
|
|
@ -44,7 +40,7 @@ You should see output like the following:
|
||||||
```bash
|
```bash
|
||||||
$ fastmcp version
|
$ fastmcp version
|
||||||
|
|
||||||
FastMCP version: 3.0.0rc1
|
FastMCP version: 3.0.0
|
||||||
MCP version: 1.25.0
|
MCP version: 1.25.0
|
||||||
Python version: 3.12.2
|
Python version: 3.12.2
|
||||||
Platform: macOS-15.3.1-arm64-arm-64bit
|
Platform: macOS-15.3.1-arm64-arm-64bit
|
||||||
|
|
|
||||||
|
|
@ -43,7 +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:
|
<VersionBadge version="3.0.0" /> Background tasks require the `tasks` extra:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install "fastmcp[tasks]>=3.0.0rc1"
|
pip install "fastmcp[tasks]"
|
||||||
```
|
```
|
||||||
|
|
||||||
Add `task=True` to any tool, resource, resource template, or prompt decorator. This marks the component as capable of background execution.
|
Add `task=True` to any tool, resource, resource template, or prompt decorator. This marks the component as capable of background execution.
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
if (!banner) {
|
if (!banner) {
|
||||||
banner = document.createElement('div');
|
banner = document.createElement('div');
|
||||||
banner.id = 'v2-banner';
|
banner.id = 'v2-banner';
|
||||||
banner.innerHTML = 'These are the docs for FastMCP 2.0. The beta of <a href="/getting-started/welcome" style="color: white; text-decoration: underline; font-weight: 700;">FastMCP 3.0</a> is now available.';
|
banner.innerHTML = 'These are the docs for FastMCP 2.0. <a href="/getting-started/welcome" style="color: white; text-decoration: underline; font-weight: 700;">FastMCP 3.0</a> is now available.';
|
||||||
container.insertBefore(banner, container.firstChild);
|
container.insertBefore(banner, container.firstChild);
|
||||||
}
|
}
|
||||||
} else if (!isV2 && banner) {
|
} else if (!isV2 && banner) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue