diff --git a/docs/getting-started/installation.mdx b/docs/getting-started/installation.mdx index 9aeba83c93..1c9dae7bd4 100644 --- a/docs/getting-started/installation.mdx +++ b/docs/getting-started/installation.mdx @@ -12,13 +12,13 @@ FastMCP 3.0 is currently in beta. Install by specifying the version explicitly. ```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. diff --git a/docs/servers/tasks.mdx b/docs/servers/tasks.mdx index 585781a04e..5a46165027 100644 --- a/docs/servers/tasks.mdx +++ b/docs/servers/tasks.mdx @@ -43,9 +43,7 @@ MCP background tasks are different: they're **protocol-native**. This means MCP 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.