You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deployment/server-configuration.mdx
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,10 +165,14 @@ These settings leverage standard `uv` arguments for environment creation. When a
165
165
```
166
166
</ParamField>
167
167
168
-
<ParamFieldbody="editable"type="string">
169
-
Path to a package to install in editable/development mode. Useful for local development when you want changes to be reflected immediately.
168
+
<ParamFieldbody="editable"type="list[string]">
169
+
List of paths to packages to install in editable/development mode. Useful for local development when you want changes to be reflected immediately. Supports multiple packages for monorepo setups or shared libraries.
This pattern separates environment setup (slow) from server execution (fast), useful for deployment scenarios.
332
+
315
333
### Using an Existing Environment
316
334
317
335
By default, FastMCP creates an isolated environment with `uv` based on your configuration. When you already have a suitable Python environment, use the `--skip-env` flag to skip environment creation:
Copy file name to clipboardExpand all lines: docs/patterns/cli.mdx
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ fastmcp --help
22
22
|`dev`| Run a server with the MCP Inspector for testing |**Supports:** Local files and fastmcp.json configs. **Deps:** Always runs via `uv run` subprocess (never uses your local environment); dependencies must be specified or available in a uv-managed project. With fastmcp.json: Uses configured dependencies |
23
23
|`install`| Install a server in MCP client applications |**Supports:** Local files and fastmcp.json configs. **Deps:** Creates an isolated environment; dependencies must be explicitly specified with `--with` and/or `--with-editable`. With fastmcp.json: Uses configured dependencies |
24
24
|`inspect`| Generate a JSON report about a FastMCP server |**Supports:** Local files and fastmcp.json configs. **Deps:** Uses your current environment; you are responsible for ensuring all dependencies are available |
25
+
|`project prepare`| Create a persistent uv project from fastmcp.json environment config |**Supports:** fastmcp.json configs only. **Deps:** Creates a uv project directory with all dependencies pre-installed for reuse with `--project` flag |
Create a persistent uv project directory from a fastmcp.json file's environment configuration. This allows you to pre-install all dependencies once and reuse them with the `--project` flag.
# Step 2: Run using the prepared environment (fast, no dependency installation)
498
+
fastmcp run fastmcp.json --project ./my-env
499
+
```
500
+
501
+
The prepare command creates a uv project with:
502
+
- A `pyproject.toml` containing all dependencies from the fastmcp.json
503
+
- A `.venv` with all packages pre-installed
504
+
- A `uv.lock` file for reproducible environments
505
+
506
+
This is useful when you want to separate environment setup from server execution, such as in deployment scenarios where dependencies are installed once and the server is run multiple times.
507
+
476
508
## `fastmcp version`
477
509
478
510
Display version information about FastMCP and related components.
0 commit comments