From e50f4ae965e8d82c0dca5228462ef4a746c58dc2 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Sat, 5 Jul 2025 20:30:47 -0400 Subject: [PATCH] Add Cursor support via CLI integration (#1052) * Add Cursor support * Use url-safe encoding --- docs/docs.json | 1 + docs/integrations/anthropic.mdx | 1 - docs/integrations/claude-desktop.mdx | 23 +- docs/integrations/cursor-install-mcp.png | Bin 0 -> 47873 bytes docs/integrations/cursor.mdx | 191 +++++++++++++ docs/integrations/eunomia-authorization.mdx | 2 +- docs/integrations/gemini.mdx | 1 - docs/patterns/cli.mdx | 40 ++- src/fastmcp/cli/cli.py | 134 +--------- src/fastmcp/cli/install/__init__.py | 5 + src/fastmcp/cli/install/claude_desktop.py | 121 +++++++++ src/fastmcp/cli/install/cursor.py | 135 ++++++++++ src/fastmcp/cli/install/install.py | 185 +++++++++++++ src/fastmcp/client/client.py | 2 +- src/fastmcp/client/transports.py | 2 +- src/fastmcp/mcp_config.py | 282 ++++++++++++++++++++ src/fastmcp/server/proxy.py | 2 +- src/fastmcp/server/server.py | 2 +- src/fastmcp/utilities/mcp_config.py | 103 ------- tests/utilities/test_mcp_config.py | 2 +- 20 files changed, 974 insertions(+), 260 deletions(-) create mode 100644 docs/integrations/cursor-install-mcp.png create mode 100644 docs/integrations/cursor.mdx create mode 100644 src/fastmcp/cli/install/__init__.py create mode 100644 src/fastmcp/cli/install/claude_desktop.py create mode 100644 src/fastmcp/cli/install/cursor.py create mode 100644 src/fastmcp/cli/install/install.py create mode 100644 src/fastmcp/mcp_config.py delete mode 100644 src/fastmcp/utilities/mcp_config.py diff --git a/docs/docs.json b/docs/docs.json index e4e307c08..9cb7bf269 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -139,6 +139,7 @@ "integrations/chatgpt", "integrations/claude-code", "integrations/claude-desktop", + "integrations/cursor", "integrations/gemini", "integrations/openai", "integrations/eunomia-authorization", diff --git a/docs/integrations/anthropic.mdx b/docs/integrations/anthropic.mdx index 6e2651a7c..6c50aedc7 100644 --- a/docs/integrations/anthropic.mdx +++ b/docs/integrations/anthropic.mdx @@ -3,7 +3,6 @@ title: Anthropic API + FastMCP sidebarTitle: Anthropic API description: Call FastMCP servers from the Anthropic API icon: message-smile -tag: NEW --- import { VersionBadge } from "/snippets/version-badge.mdx" diff --git a/docs/integrations/claude-desktop.mdx b/docs/integrations/claude-desktop.mdx index 4c4faba1e..a6ca49811 100644 --- a/docs/integrations/claude-desktop.mdx +++ b/docs/integrations/claude-desktop.mdx @@ -5,6 +5,8 @@ description: Call FastMCP servers from Claude Desktop icon: message-smile --- +import { VersionBadge } from "/snippets/version-badge.mdx" + Claude Desktop supports MCP servers through local STDIO connections and remote servers (beta), allowing you to extend Claude's capabilities with custom tools, resources, and prompts from your FastMCP servers. @@ -47,22 +49,27 @@ if __name__ == "__main__": ## Install the Server ### FastMCP CLI + -The easiest way to install a FastMCP server in Claude Desktop is using the `fastmcp install` command. This automatically handles the configuration and dependency management. +The easiest way to install a FastMCP server in Claude Desktop is using the `fastmcp install claude-desktop` command. This automatically handles the configuration and dependency management. + + +Prior to version 2.10.3, Claude Desktop could be managed by running `fastmcp install ` without specifying the client. + ```bash -fastmcp install server.py +fastmcp install claude-desktop server.py ``` The install command supports the same `file.py:object` notation as the `run` command. If no object is specified, it will automatically look for a FastMCP server object named `mcp`, `server`, or `app` in your file: ```bash # These are equivalent if your server object is named 'mcp' -fastmcp install server.py -fastmcp install server.py:mcp +fastmcp install claude-desktop server.py +fastmcp install claude-desktop server.py:mcp # Use explicit object name if your server has a different name -fastmcp install server.py:my_custom_server +fastmcp install claude-desktop server.py:my_custom_server ``` After installation, restart Claude Desktop completely. You should see a hammer icon (🔨) in the bottom left of the input box, indicating that MCP tools are available. @@ -72,7 +79,7 @@ After installation, restart Claude Desktop completely. You should see a hammer i If your server has dependencies, include them with the `--with` flag: ```bash -fastmcp install server.py --with pandas --with requests +fastmcp install claude-desktop server.py --with pandas --with requests ``` Alternatively, you can specify dependencies directly in your server code: @@ -95,7 +102,7 @@ Claude Desktop runs servers in a completely isolated environment with no access If your server needs environment variables (like API keys), you must include them: ```bash -fastmcp install server.py --name "Weather Server" \ +fastmcp install claude-desktop server.py --name "Weather Server" \ --env-var API_KEY=your-api-key \ --env-var DEBUG=true ``` @@ -103,7 +110,7 @@ fastmcp install server.py --name "Weather Server" \ Or load them from a `.env` file: ```bash -fastmcp install server.py --name "Weather Server" --env-file .env +fastmcp install claude-desktop server.py --name "Weather Server" --env-file .env ``` - **`uv` must be installed and available in your system PATH**. Claude Desktop runs in its own isolated environment and needs `uv` to manage dependencies. diff --git a/docs/integrations/cursor-install-mcp.png b/docs/integrations/cursor-install-mcp.png new file mode 100644 index 0000000000000000000000000000000000000000..5681d70d74917d5cff1b9d97bf870f67edb869c0 GIT binary patch literal 47873 zcmeFZby$>Lw?9sYq@W@oA&3$Z0)jLGN~d%qT|*Du3MvTFUDDk-gosLmbPPi`!_dvZ z_r~`<@AI5TJb(Yr?>ci`!`$3^_P+OCd+k-9wdTE&f+WEWiW?{>CJ`4rrMwO+wxRSKEIIWVSotdSLDGG|z`li*$CXTy|J4o4S3M zcY3M)%slZ#cT3bgwd&;gP%`6wOgj!2-_4=N9ox8RW}Sl^C(Z9k*blj#7`UEFy`o>b zFhP|}72)Nh^GK|GqrA6NogIYT_sy*nNn#m){unJHZKbEVc~>~g{Co*67UpGZ=J=+i zk!UL66qD{yt}pbiyRDahZNHpcmY{y}8q5^QN~ zYE1Oy8#2X1PF^(8rWI=}=-LPc+`1rUZlzo;JrCkywJ+}WC-=Sm06{SjTH!HG; ziN<4|0R3G@DH>HCDr-7+s6U@d61qJqwbXZ1+Pe~dnq_ylMLDIgNy_dOVOT%E&xobd zs-Q%8=#QR`bq}-sIq5TWHoxv!{yNNtR(e`=!Q>5dj6s(47Wlpr=yjSRL`)L}dVv8{|!jvEi# zoHa>#-mn_o=?Oxg!*RQrjKLo0G>7KKrHiG}DmnY|7|n|c5oEf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E?i&Ous`;|{$%&M>WfJVUjhn?TE2gsvU(1Hizj1c@7u9=Pd4<+67%7Sk8NBfQAYlIZA8d}`hXzaGOADvLXZ~MG3rE3Q zMP$LBZAmx`RPafv=Rjf{%UD71R4`%XjqmE%x%rF*8=DBdDTk&-$YT9dru*i+h6Dv1 zM-!7O#X*h>n(qDonf4)6je@K1V;^Tc6%CUhoemd8t2jS{&q9ZGfVKBgd7|o<-9z7H zTUb~ntQ%-(WGn?pu$TnO`O~ca&*lT?nfiefHEtVtFo%P6fx9v6K2}V6^!Jl)T=pu{ z4?iz0*>+9%^6jkq3s*mRD(ba%z27RW)k#(BwwYD9wS~7ndl?i}6$M=SJnPDKphw|b z1TcbKjP=r$642#Tj{s@M_*?mpVJ|W=NFh}Ut zFtn`=4hN<(7?;NuwqCWEXIv^Bzo7V8-s9w)-NG5V#-(d_E8W9D2=;!vxc^~+N-n8Yr zW3IdaJ1PUXt7LoS{0;p;MZWItI7|YrciGOmpnxAZcB<`ek3*3sP?73FgZ}jN=N?fr zYF}cGYC~d*MR-LpyO!3eX4$-{zc07-&sg+c`yuc~u0!&S;#g-r9K3+@8OJ_s1g?C^*+D=Qn= zPtp1)E_77eV^+fT)lPSPM6oO}0IO$Ux+tpzw@xug% z#;#LdD_4J3{lJw}{AvlX_othdlCom@ilxV&vr%td4%jW|bc}wjnw&t^BiS zi^KQZTEInE539cA0lPmHd*ia+vsF!cgHghQ>{!st`C=3I)~#ECqrjKd(q3B0=db20 zn=1}1_WRxce_U~3`#;g_JsD>;k62;#+Dg?0&M|whtSsW*Rk!YZc(&8sUwd=kXRqcd zyL~VDQ6EN?1F0MvK?h*5abLq$5&^{;!+-~i+}4s47RNDj&tU>8u_HF%%6(fvx8;R> zoUsGribkl73qYCuU=zj`V3>3$(EM#($B($8FQ$SeZeCzf$Sbx6d$M9+S__ +This guide focuses specifically on installing local FastMCP server files directly into Cursor using STDIO transport. For deploying remote servers using SSE or HTTP transports, see the [Cursor MCP documentation](https://docs.cursor.com/context/mcp). + + +## Requirements + +This integration uses STDIO transport to run your FastMCP server locally. For remote deployments, you can run your FastMCP server with HTTP or SSE transport and configure it directly in Cursor's settings. + +## Create a Server + +The examples in this guide will use the following simple dice-rolling server, saved as `server.py`. + +```python server.py +import random +from fastmcp import FastMCP + +mcp = FastMCP(name="Dice Roller") + +@mcp.tool +def roll_dice(n_dice: int) -> list[int]: + """Roll `n_dice` 6-sided dice and return the results.""" + return [random.randint(1, 6) for _ in range(n_dice)] + +if __name__ == "__main__": + mcp.run() +``` + +## Install the Server + +### FastMCP CLI + + +The easiest way to install a FastMCP server in Cursor is using the `fastmcp install cursor` command. This automatically handles the configuration, dependency management, and opens Cursor with a deeplink to install the server. + +```bash +fastmcp install cursor server.py +``` + +The install command supports the same `file.py:object` notation as the `run` command. If no object is specified, it will automatically look for a FastMCP server object named `mcp`, `server`, or `app` in your file: + +```bash +# These are equivalent if your server object is named 'mcp' +fastmcp install cursor server.py +fastmcp install cursor server.py:mcp + +# Use explicit object name if your server has a different name +fastmcp install cursor server.py:my_custom_server +``` + +After running the command, Cursor will open automatically and prompt you to install the server. The command will be `uv`, which is expected as this is a Python STDIO server. Click "Install" to confirm: + +![Cursor install prompt](./cursor-install-mcp.png) + +#### Dependencies + +If your server has dependencies, include them with the `--with` flag: + +```bash +fastmcp install cursor server.py --with pandas --with requests +``` + +Alternatively, you can specify dependencies directly in your server code: + +```python server.py +from fastmcp import FastMCP + +mcp = FastMCP( + name="Dice Roller", + dependencies=["pandas", "requests"] +) +``` + +#### Environment Variables + + +Cursor runs servers in a completely isolated environment with no access to your shell environment or locally installed applications. You must explicitly pass any environment variables your server needs. + + +If your server needs environment variables (like API keys), you must include them: + +```bash +fastmcp install cursor server.py --name "Weather Server" \ + --env-var API_KEY=your-api-key \ + --env-var DEBUG=true +``` + +Or load them from a `.env` file: + +```bash +fastmcp install cursor server.py --name "Weather Server" --env-file .env +``` + + +**`uv` must be installed and available in your system PATH**. Cursor runs in its own isolated environment and needs `uv` to manage dependencies. + + +### Manual Configuration + +For more control over the configuration, you can manually edit Cursor's configuration file. The configuration file is located at: +- **All platforms**: `~/.cursor/mcp.json` + +The configuration file is a JSON object with a `mcpServers` key, which contains the configuration for each MCP server. + +```json +{ + "mcpServers": { + "dice-roller": { + "command": "python", + "args": ["path/to/your/server.py"] + } + } +} +``` + +After updating the configuration file, your server should be available in Cursor. + +#### Dependencies + +If your server has dependencies, you can use `uv` or another package manager to set up the environment. + +```json +{ + "mcpServers": { + "dice-roller": { + "command": "uv", + "args": [ + "run", + "--with", "pandas", + "--with", "requests", + "python", + "path/to/your/server.py" + ] + } + } +} +``` + + +**`uv` must be installed and available in your system PATH**. Cursor runs in its own isolated environment and needs `uv` to manage dependencies. + + +#### Environment Variables + +You can also specify environment variables in the configuration: + +```json +{ + "mcpServers": { + "weather-server": { + "command": "python", + "args": ["path/to/weather_server.py"], + "env": { + "API_KEY": "your-api-key", + "DEBUG": "true" + } + } + } +} +``` + + +Cursor runs servers in a completely isolated environment with no access to your shell environment or locally installed applications. You must explicitly pass any environment variables your server needs. + + +## Using the Server + +Once your server is installed, you can start using your FastMCP server with Cursor's AI assistant. + +Try asking Cursor something like: + +> "Roll some dice for me" + +Cursor will automatically detect your `roll_dice` tool and use it to fulfill your request, returning something like: + +> 🎲 Here are your dice rolls: 4, 6, 4 +> +> You rolled 3 dice with a total of 14! The 6 was a nice high roll there! + +The AI assistant can now access all the tools, resources, and prompts you've defined in your FastMCP server. \ No newline at end of file diff --git a/docs/integrations/eunomia-authorization.mdx b/docs/integrations/eunomia-authorization.mdx index e1d5dd481..c3d3ce12b 100644 --- a/docs/integrations/eunomia-authorization.mdx +++ b/docs/integrations/eunomia-authorization.mdx @@ -1,6 +1,6 @@ --- title: Eunomia Authorization + FastMCP -sidebarTitle: Eunomia Authorization +sidebarTitle: Eunomia Auth description: Add policy-based authorization to your FastMCP servers icon: layer-group tag: NEW diff --git a/docs/integrations/gemini.mdx b/docs/integrations/gemini.mdx index 359ef4e0a..17e1c0eec 100644 --- a/docs/integrations/gemini.mdx +++ b/docs/integrations/gemini.mdx @@ -3,7 +3,6 @@ title: Gemini SDK + FastMCP sidebarTitle: Gemini SDK description: Call FastMCP servers from the Google Gemini SDK icon: message-smile -tag: NEW --- import { VersionBadge } from "/snippets/version-badge.mdx" diff --git a/docs/patterns/cli.mdx b/docs/patterns/cli.mdx index 663399a0f..61de153ff 100644 --- a/docs/patterns/cli.mdx +++ b/docs/patterns/cli.mdx @@ -20,7 +20,7 @@ fastmcp --help | ------- | ------- | --------------------- | | `run` | Run a FastMCP server directly | Uses your current environment; you are responsible for ensuring all dependencies are available | | `dev` | Run a server with the MCP Inspector for testing | Creates an isolated environment; dependencies must be explicitly specified with `--with` and/or `--with-editable` | -| `install` | Install a server in the Claude desktop app | Creates an isolated environment; dependencies must be explicitly specified with `--with` and/or `--with-editable` | +| `install` | Install a server in MCP client applications | Creates an isolated environment; dependencies must be explicitly specified with `--with` and/or `--with-editable` | | `inspect` | Generate a JSON report about a FastMCP server | Uses your current environment; you are responsible for ensuring all dependencies are available | | `version` | Display version information | N/A | @@ -144,22 +144,26 @@ fastmcp dev server.py -e . --with pandas --with matplotlib ``` ### `install` + -Install a MCP server in the Claude desktop app. +Install a MCP server in MCP client applications. FastMCP currently supports the following clients: + +- **Claude Desktop** - Installs via direct configuration file modification +- **Cursor** - Installs via deeplink that opens Cursor for user confirmation ```bash -fastmcp install server.py +fastmcp install claude-desktop server.py +fastmcp install cursor server.py ``` -Note that for security reasons, Claude runs every MCP server in a completely isolated environment. Therefore, all dependencies must be explicitly specified using the `--with` and/or `--with-editable` options (following `uv` conventions) or by attaching them to your server in code via the `dependencies` parameter. +Note that for security reasons, MCP clients run every server in a completely isolated environment. Therefore, all dependencies must be explicitly specified using the `--with` and/or `--with-editable` options (following `uv` conventions) or by attaching them to your server in code via the `dependencies` parameter. -- **`uv` must be installed and available in your system PATH**. Claude Desktop runs in its own isolated environment and needs `uv` to manage dependencies. -- **On macOS, it is recommended to install `uv` globally with Homebrew** so that Claude Desktop will detect it: `brew install uv`. Installing `uv` with other methods may not make it accessible to Claude Desktop. +**`uv` must be installed and available in your system PATH**. Both Claude Desktop and Cursor run in isolated environments and need `uv` to manage dependencies. On macOS, install `uv` globally with Homebrew for Claude Desktop compatibility: `brew install uv`. -The `install` command currently only sets up servers for STDIO transport. When installed in the Claude desktop app, your server will be run using STDIO regardless of any transport configuration in your code. +The `install` command currently only sets up servers for STDIO transport. When installed in MCP client applications, your server will be run using STDIO regardless of any transport configuration in your code. #### Server Specification @@ -169,17 +173,33 @@ The `install` command supports the same `file.py:object` notation as the `run` c 1. `server.py` - imports the module and looks for a FastMCP object named `mcp`, `server`, or `app`. Errors if no such object is found. 2. `server.py:custom_name` - imports and uses the specified server object +#### Options + +| Option | Flag | Description | +| ------ | ---- | ----------- | +| Server Name | `--name`, `-n` | Custom name for the server (defaults to server's name attribute or file name) | +| Editable Package | `--with-editable`, `-e` | Directory containing pyproject.toml to install in editable mode | +| Additional Packages | `--with` | Additional packages to install (can be used multiple times) | +| Environment Variables | `--env-var`, `-v` | Environment variables in KEY=VALUE format (can be used multiple times) | +| Environment File | `--env-file`, `-f` | Load environment variables from a .env file | + **Examples** ```bash # Auto-detects server object (looks for 'mcp', 'server', or 'app') -fastmcp install server.py +fastmcp install claude-desktop server.py # Uses specific server object -fastmcp install server.py:my_server +fastmcp install claude-desktop server.py:my_server # With custom name and dependencies -fastmcp install server.py:my_server -n "My Analysis Server" --with pandas +fastmcp install claude-desktop server.py:my_server -n "My Analysis Server" --with pandas + +# Install in Cursor with environment variables +fastmcp install cursor server.py --env-var API_KEY=secret --env-var DEBUG=true + +# Install with environment file +fastmcp install cursor server.py --env-file .env ``` ### `inspect` diff --git a/src/fastmcp/cli/cli.py b/src/fastmcp/cli/cli.py index 0c0ef8421..5715cf57f 100644 --- a/src/fastmcp/cli/cli.py +++ b/src/fastmcp/cli/cli.py @@ -10,7 +10,6 @@ import sys from pathlib import Path from typing import Annotated -import dotenv import typer from pydantic import TypeAdapter from rich.console import Console @@ -18,8 +17,8 @@ from rich.table import Table from typer import Context, Exit import fastmcp -from fastmcp.cli import claude from fastmcp.cli import run as run_module +from fastmcp.cli.install.install import install from fastmcp.server.server import FastMCP from fastmcp.utilities.inspect import FastMCPInfo, inspect_fastmcp from fastmcp.utilities.logging import get_logger @@ -324,135 +323,8 @@ def run( sys.exit(1) -@app.command() -def install( - server_spec: str = typer.Argument( - ..., - help="Python file to run, optionally with :object suffix", - ), - server_name: Annotated[ - str | None, - typer.Option( - "--name", - "-n", - help="Custom name for the server (defaults to server's name attribute or" - " file name)", - ), - ] = None, - with_editable: Annotated[ - Path | None, - typer.Option( - "--with-editable", - "-e", - help="Directory containing pyproject.toml to install in editable mode", - exists=True, - file_okay=False, - resolve_path=True, - ), - ] = None, - with_packages: Annotated[ - list[str], - typer.Option( - "--with", - help="Additional packages to install", - ), - ] = [], - env_vars: Annotated[ - list[str], - typer.Option( - "--env-var", - "-v", - help="Environment variables in KEY=VALUE format", - ), - ] = [], - env_file: Annotated[ - Path | None, - typer.Option( - "--env-file", - "-f", - help="Load environment variables from a .env file", - exists=True, - file_okay=True, - dir_okay=False, - resolve_path=True, - ), - ] = None, -) -> None: - """Install a MCP server in the Claude desktop app. - - Environment variables are preserved once added and only updated if new values - are explicitly provided. - """ - file, server_object = run_module.parse_file_path(server_spec) - - logger.debug( - "Installing server", - extra={ - "file": str(file), - "server_name": server_name, - "server_object": server_object, - "with_editable": str(with_editable) if with_editable else None, - "with_packages": with_packages, - }, - ) - - if not claude.get_claude_config_path(): - logger.error("Claude app not found") - sys.exit(1) - - # Try to import server to get its name, but fall back to file name if dependencies - # missing - name = server_name - server = None - if not name: - try: - server = run_module.import_server(file, server_object) - name = server.name - except (ImportError, ModuleNotFoundError) as e: - logger.debug( - "Could not import server (likely missing dependencies), using file" - " name", - extra={"error": str(e)}, - ) - name = file.stem - - # Get server dependencies if available - server_dependencies = getattr(server, "dependencies", []) if server else [] - if server_dependencies: - with_packages = list(set(with_packages + server_dependencies)) - - # Process environment variables if provided - env_dict: dict[str, str] | None = None - if env_file or env_vars: - env_dict = {} - # Load from .env file if specified - if env_file: - try: - env_dict |= { - k: v - for k, v in dotenv.dotenv_values(env_file).items() - if v is not None - } - except Exception as e: - logger.error(f"Failed to load .env file: {e}") - sys.exit(1) - - # Add command line environment variables - for env_var in env_vars: - key, value = _parse_env_var(env_var) - env_dict[key] = value - - if claude.update_claude_config( - server_spec, - name, - with_editable=with_editable, - with_packages=with_packages, - env_vars=env_dict, - ): - logger.info(f"Successfully installed {name} in Claude app") - else: - logger.error(f"Failed to install {name} in Claude app") - sys.exit(1) +# Add install command directly +app.command()(install) @app.command() diff --git a/src/fastmcp/cli/install/__init__.py b/src/fastmcp/cli/install/__init__.py new file mode 100644 index 000000000..aa09f0165 --- /dev/null +++ b/src/fastmcp/cli/install/__init__.py @@ -0,0 +1,5 @@ +"""Install module for FastMCP CLI.""" + +from .install import install + +__all__ = ["install"] diff --git a/src/fastmcp/cli/install/claude_desktop.py b/src/fastmcp/cli/install/claude_desktop.py new file mode 100644 index 000000000..cf97b6f47 --- /dev/null +++ b/src/fastmcp/cli/install/claude_desktop.py @@ -0,0 +1,121 @@ +"""Claude Desktop integration for FastMCP install.""" + +from __future__ import annotations + +import os +import sys +from pathlib import Path + +from rich import print + +from fastmcp.mcp_config import StdioMCPServer, update_config_file +from fastmcp.utilities.logging import get_logger + +logger = get_logger(__name__) + + +def get_claude_config_path() -> Path | None: + """Get the Claude config directory based on platform.""" + if sys.platform == "win32": + path = Path(Path.home(), "AppData", "Roaming", "Claude") + elif sys.platform == "darwin": + path = Path(Path.home(), "Library", "Application Support", "Claude") + elif sys.platform.startswith("linux"): + path = Path( + os.environ.get("XDG_CONFIG_HOME", Path.home() / ".config"), "Claude" + ) + else: + return None + + if path.exists(): + return path + return None + + +def install_claude_desktop( + server_spec: str, + name: str, + *, + with_editable: Path | None = None, + with_packages: list[str] | None = None, + env_vars: dict[str, str] | None = None, +) -> bool: + """Install FastMCP server in Claude Desktop. + + Args: + server_spec: Path to the server file, optionally with :object suffix + name: Name for the server in Claude's config + with_editable: Optional directory to install in editable mode + with_packages: Optional list of additional packages to install + env_vars: Optional dictionary of environment variables + + Returns: + True if installation was successful, False otherwise + """ + config_dir = get_claude_config_path() + if not config_dir: + print( + "[red]❌ Claude Desktop config directory not found.[/red]\n" + "[blue]Please ensure Claude Desktop is installed and has been run at least once to initialize its config.[/blue]" + ) + return False + + config_file = config_dir / "claude_desktop_config.json" + + # Build uv run command + args = ["run"] + + # Collect all packages in a set to deduplicate + packages = {"fastmcp"} + if with_packages: + packages.update(pkg for pkg in with_packages if pkg) + + # Add all packages with --with + for pkg in sorted(packages): + args.extend(["--with", pkg]) + + if with_editable: + args.extend(["--with-editable", str(with_editable)]) + + # Convert file path to absolute before adding to command + # Split off any :object suffix first + if ":" in server_spec: + file_path, server_object = server_spec.rsplit(":", 1) + server_spec = f"{Path(file_path).resolve()}:{server_object}" + else: + server_spec = str(Path(server_spec).resolve()) + + # Add fastmcp run command + args.extend(["fastmcp", "run", server_spec]) + + # Create server configuration + server_config = StdioMCPServer( + command="uv", + args=args, + env=env_vars or {}, + ) + + try: + # Handle environment variable merging manually since we need to preserve existing config + if config_file.exists(): + import json + + content = config_file.read_text().strip() + if content: + config = json.loads(content) + if "mcpServers" in config and name in config["mcpServers"]: + existing_env = config["mcpServers"][name].get("env", {}) + if env_vars: + # New vars take precedence over existing ones + merged_env = {**existing_env, **env_vars} + else: + merged_env = existing_env + server_config.env = merged_env + + update_config_file(config_file, name, server_config) + return True + except Exception as e: + print( + f"[red]Failed to install '[bold]{name}[/bold]' in Claude Desktop: {e}[/red]" + ) + return False diff --git a/src/fastmcp/cli/install/cursor.py b/src/fastmcp/cli/install/cursor.py new file mode 100644 index 000000000..b8f5b3daa --- /dev/null +++ b/src/fastmcp/cli/install/cursor.py @@ -0,0 +1,135 @@ +"""Cursor integration for FastMCP install.""" + +from __future__ import annotations + +import base64 +import subprocess +import sys +from pathlib import Path + +from rich import print + +from fastmcp.mcp_config import StdioMCPServer +from fastmcp.utilities.logging import get_logger + +logger = get_logger(__name__) + + +def generate_cursor_deeplink( + server_name: str, + server_config: StdioMCPServer, +) -> str: + """Generate a Cursor deeplink for installing the MCP server. + + Args: + server_name: Name of the server + server_config: Server configuration + + Returns: + Deeplink URL that can be clicked to install the server + """ + # Create the configuration structure expected by Cursor + + # Base64 encode the configuration (URL-safe for query parameter) + config_json = server_config.model_dump_json(exclude_none=True) + config_b64 = base64.urlsafe_b64encode(config_json.encode()).decode() + + # Generate the deeplink URL + deeplink = f"cursor://anysphere.cursor-deeplink/mcp/install?name={server_name}&config={config_b64}" + + return deeplink + + +def open_deeplink(deeplink: str) -> bool: + """Attempt to open a deeplink URL using the system's default handler. + + Args: + deeplink: The deeplink URL to open + + Returns: + True if the command succeeded, False otherwise + """ + try: + if sys.platform == "darwin": # macOS + subprocess.run(["open", deeplink], check=True, capture_output=True) + elif sys.platform == "win32": # Windows + subprocess.run( + ["start", deeplink], shell=True, check=True, capture_output=True + ) + else: # Linux and others + subprocess.run(["xdg-open", deeplink], check=True, capture_output=True) + return True + except (subprocess.CalledProcessError, FileNotFoundError): + return False + + +def install_cursor( + server_spec: str, + name: str, + *, + with_editable: Path | None = None, + with_packages: list[str] | None = None, + env_vars: dict[str, str] | None = None, +) -> bool: + """Install FastMCP server in Cursor. + + Args: + server_spec: Path to the server file, optionally with :object suffix + name: Name for the server in Cursor's config + with_editable: Optional directory to install in editable mode + with_packages: Optional list of additional packages to install + env_vars: Optional dictionary of environment variables + + Returns: + True if installation was successful, False otherwise + """ + # Build uv run command + args = ["run"] + + # Collect all packages in a set to deduplicate + packages = {"fastmcp"} + if with_packages: + packages.update(pkg for pkg in with_packages if pkg) + + # Add all packages with --with + for pkg in sorted(packages): + args.extend(["--with", pkg]) + + if with_editable: + args.extend(["--with-editable", str(with_editable)]) + + # Convert file path to absolute before adding to command + # Split off any :object suffix first + if ":" in server_spec: + file_path, server_object = server_spec.rsplit(":", 1) + server_spec = f"{Path(file_path).resolve()}:{server_object}" + else: + server_spec = str(Path(server_spec).resolve()) + + # Add fastmcp run command + args.extend(["fastmcp", "run", server_spec]) + + # Create server configuration + server_config = StdioMCPServer( + command="uv", + args=args, + env=env_vars or {}, + ) + + # Generate and open deeplink + try: + deeplink = generate_cursor_deeplink(name, server_config) + + if open_deeplink(deeplink): + print( + f"[green]Opening Cursor to install '[bold]{name}[/bold]' - please confirm in Cursor to complete installation[/green]" + ) + return True + else: + print("[yellow]Could not open Cursor automatically.[/yellow]") + print(f"[blue]Please open this link to install:[/blue] {deeplink}") + return True + + except Exception as e: + print(f"[red]Failed to generate Cursor deeplink: {e}[/red]") + return False diff --git a/src/fastmcp/cli/install/install.py b/src/fastmcp/cli/install/install.py new file mode 100644 index 000000000..8c464ee90 --- /dev/null +++ b/src/fastmcp/cli/install/install.py @@ -0,0 +1,185 @@ +"""Main install logic for FastMCP CLI.""" + +from __future__ import annotations + +import sys +from enum import Enum +from pathlib import Path +from typing import Annotated + +import typer +from dotenv import dotenv_values +from rich import print + +from fastmcp.cli.run import import_server, parse_file_path +from fastmcp.utilities.logging import get_logger + +from .claude_desktop import install_claude_desktop +from .cursor import install_cursor + +logger = get_logger(__name__) + + +class Client(str, Enum): + """Supported MCP clients.""" + + CLAUDE_DESKTOP = "claude-desktop" + CURSOR = "cursor" + + +def install( + client: Annotated[ + Client, + typer.Argument(help="MCP client to install the server into"), + ], + server_spec: Annotated[ + str, typer.Argument(help="Python file to run, optionally with :object suffix") + ], + server_name: Annotated[ + str | None, + typer.Option( + "--name", + "-n", + help="Custom name for the server (defaults to server's name attribute or file name)", + ), + ] = None, + with_editable: Annotated[ + Path | None, + typer.Option( + "--with-editable", + "-e", + help="Directory containing pyproject.toml to install in editable mode. Use this to include local packages that are not available on PyPI.", + exists=True, + file_okay=False, + resolve_path=True, + ), + ] = None, + with_packages: Annotated[ + list[str], + typer.Option( + "--with", + help="Additional packages to install, in PEP 508 format (e.g. 'httpx>=0.25.2')", + ), + ] = [], + env_vars: Annotated[ + list[str], + typer.Option( + "--env-var", + "-v", + help="Environment variables in KEY=VALUE format", + ), + ] = [], + env_file: Annotated[ + Path | None, + typer.Option( + "--env-file", + "-f", + help="Load environment variables from a .env file", + exists=True, + file_okay=True, + dir_okay=False, + resolve_path=True, + ), + ] = None, +) -> None: + """Install a MCP server in the specified target application. + + Environment variables are preserved once added and only updated if new values + are explicitly provided. + """ + + # Parse server spec + file, server_object = parse_file_path(server_spec) + + logger.debug( + "Installing server", + extra={ + "client": client, + "file": str(file), + "server_name": server_name, + "server_object": server_object, + "with_editable": str(with_editable) if with_editable else None, + "with_packages": with_packages, + }, + ) + + # Try to import server to get its name and dependencies + name = server_name + server = None + if not name: + try: + server = import_server(file, server_object) + name = server.name + except (ImportError, ModuleNotFoundError) as e: + logger.debug( + "Could not import server (likely missing dependencies), using file name", + extra={"error": str(e)}, + ) + name = file.stem + + # Get server dependencies if available + server_dependencies = getattr(server, "dependencies", []) if server else [] + if server_dependencies: + with_packages = list(set(with_packages + server_dependencies)) + + # Process environment variables if provided + env_dict: dict[str, str] | None = None + if env_file or env_vars: + env_dict = {} + # Load from .env file if specified + if env_file: + try: + env_dict |= { + k: v for k, v in dotenv_values(env_file).items() if v is not None + } + except Exception as e: + print(f"[red]❌ Failed to load .env file: {e}[/red]") + sys.exit(1) + + # Add command line environment variables + for env_var in env_vars: + key, value = _parse_env_var(env_var) + env_dict[key] = value + + # Route to appropriate installer + if client == Client.CLAUDE_DESKTOP: + success = install_claude_desktop( + server_spec=server_spec, + name=name, + with_editable=with_editable, + with_packages=with_packages, + env_vars=env_dict, + ) + elif client == Client.CURSOR: + success = install_cursor( + server_spec=server_spec, + name=name, + with_editable=with_editable, + with_packages=with_packages, + env_vars=env_dict, + ) + else: + print( + f"[red bold]Unknown client: {client!r}[/red bold]. Supported clients: [bold]{Client.CLAUDE_DESKTOP}[/bold], [bold]{Client.CURSOR}[/bold]" + ) + raise typer.Exit(1) + + if success: + # Only show generic success message for clients that don't have their own messaging + if client != Client.CURSOR: + print( + f"[green bold]Successfully installed '[bold]{name}[/bold]' in {client.value}[/green bold]" + ) + else: + sys.exit(1) + + +def _parse_env_var(env_var: str) -> tuple[str, str]: + """Parse environment variable string in format KEY=VALUE.""" + if "=" not in env_var: + print( + f"[red]❌ Invalid environment variable format: '[bold]{env_var}[/bold]'. Must be KEY=VALUE[/red]" + ) + sys.exit(1) + key, value = env_var.split("=", 1) + return key.strip(), value.strip() diff --git a/src/fastmcp/client/client.py b/src/fastmcp/client/client.py index 96330f3bc..6388b1c6f 100644 --- a/src/fastmcp/client/client.py +++ b/src/fastmcp/client/client.py @@ -31,11 +31,11 @@ from fastmcp.client.roots import ( ) from fastmcp.client.sampling import SamplingHandler, create_sampling_callback from fastmcp.exceptions import ToolError +from fastmcp.mcp_config import MCPConfig from fastmcp.server import FastMCP from fastmcp.utilities.exceptions import get_catch_handlers from fastmcp.utilities.json_schema_type import json_schema_to_type from fastmcp.utilities.logging import get_logger -from fastmcp.utilities.mcp_config import MCPConfig from fastmcp.utilities.types import get_cached_typeadapter from .transports import ( diff --git a/src/fastmcp/client/transports.py b/src/fastmcp/client/transports.py index 5cef53aa7..8cf90dfff 100644 --- a/src/fastmcp/client/transports.py +++ b/src/fastmcp/client/transports.py @@ -29,10 +29,10 @@ from typing_extensions import TypedDict, Unpack import fastmcp from fastmcp.client.auth.bearer import BearerAuth from fastmcp.client.auth.oauth import OAuth +from fastmcp.mcp_config import MCPConfig, infer_transport_type_from_url from fastmcp.server.dependencies import get_http_headers from fastmcp.server.server import FastMCP from fastmcp.utilities.logging import get_logger -from fastmcp.utilities.mcp_config import MCPConfig, infer_transport_type_from_url logger = get_logger(__name__) diff --git a/src/fastmcp/mcp_config.py b/src/fastmcp/mcp_config.py new file mode 100644 index 000000000..029c802d1 --- /dev/null +++ b/src/fastmcp/mcp_config.py @@ -0,0 +1,282 @@ +"""Canonical MCP Configuration Format. + +This module defines the standard configuration format for Model Context Protocol (MCP) servers. +It provides a client-agnostic, extensible format that can be used across all MCP implementations. + +The configuration format supports both stdio and remote (HTTP/SSE) transports, with comprehensive +field definitions for server metadata, authentication, and execution parameters. + +Example configuration: + { + "mcpServers": { + "my-server": { + "command": "npx", + "args": ["-y", "@my/mcp-server"], + "env": {"API_KEY": "secret"}, + "timeout": 30000, + "description": "My MCP server" + } + } + } +""" + +from __future__ import annotations + +import datetime +import json +import re +from pathlib import Path +from typing import TYPE_CHECKING, Annotated, Any, Literal +from urllib.parse import urlparse + +import httpx +from pydantic import AnyUrl, BaseModel, ConfigDict, Field + +if TYPE_CHECKING: + from fastmcp.client.transports import ( + SSETransport, + StdioTransport, + StreamableHttpTransport, + ) + + +def infer_transport_type_from_url( + url: str | AnyUrl, +) -> Literal["http", "sse"]: + """ + Infer the appropriate transport type from the given URL. + """ + url = str(url) + if not url.startswith("http"): + raise ValueError(f"Invalid URL: {url}") + + parsed_url = urlparse(url) + path = parsed_url.path + + # Match /sse followed by /, ?, &, or end of string + if re.search(r"/sse(/|\?|&|$)", path): + return "sse" + else: + return "http" + + +class StdioMCPServer(BaseModel): + """MCP server configuration for stdio transport. + + This is the canonical configuration format for MCP servers using stdio transport. + """ + + # Required fields + command: str + + # Common optional fields + args: list[str] = Field(default_factory=list) + env: dict[str, Any] = Field(default_factory=dict) + + # Transport specification + transport: Literal["stdio"] = "stdio" + type: Literal["stdio"] | None = None # Alternative transport field name + + # Execution context + cwd: str | None = None # Working directory for command execution + timeout: int | None = None # Maximum response time in milliseconds + + # Metadata + description: str | None = None # Human-readable server description + icon: str | None = None # Icon path or URL for UI display + + # Authentication configuration + authentication: dict[str, Any] | None = None # Auth configuration object + + model_config = ConfigDict(extra="allow") # Preserve unknown fields + + def to_transport(self) -> StdioTransport: + from fastmcp.client.transports import StdioTransport + + return StdioTransport( + command=self.command, + args=self.args, + env=self.env, + cwd=self.cwd, + ) + + +class RemoteMCPServer(BaseModel): + """MCP server configuration for HTTP/SSE transport. + + This is the canonical configuration format for MCP servers using remote transports. + """ + + # Required fields + url: str + + # Transport configuration + transport: Literal["http", "streamable-http", "sse"] | None = None + headers: dict[str, str] = Field(default_factory=dict) + + # Authentication + auth: Annotated[ + str | Literal["oauth"] | httpx.Auth | None, + Field( + description='Either a string representing a Bearer token, the literal "oauth" to use OAuth authentication, or an httpx.Auth instance for custom authentication.', + ), + ] = None + + # Timeout configuration + sse_read_timeout: datetime.timedelta | int | float | None = None + timeout: int | None = None # Maximum response time in milliseconds + + # Metadata + description: str | None = None # Human-readable server description + icon: str | None = None # Icon path or URL for UI display + + # Authentication configuration + authentication: dict[str, Any] | None = None # Auth configuration object + + model_config = ConfigDict( + extra="allow", arbitrary_types_allowed=True + ) # Preserve unknown fields + + def to_transport(self) -> StreamableHttpTransport | SSETransport: + from fastmcp.client.transports import SSETransport, StreamableHttpTransport + + if self.transport is None: + transport = infer_transport_type_from_url(self.url) + else: + transport = self.transport + + if transport == "sse": + return SSETransport( + self.url, + headers=self.headers, + auth=self.auth, + sse_read_timeout=self.sse_read_timeout, + ) + else: + # Both "http" and "streamable-http" map to StreamableHttpTransport + return StreamableHttpTransport( + self.url, + headers=self.headers, + auth=self.auth, + sse_read_timeout=self.sse_read_timeout, + ) + + +class MCPConfig(BaseModel): + """Canonical MCP configuration format. + + This defines the standard configuration format for Model Context Protocol servers. + The format is designed to be client-agnostic and extensible for future use cases. + """ + + mcpServers: dict[str, StdioMCPServer | RemoteMCPServer] + + model_config = ConfigDict(extra="allow") # Preserve unknown top-level fields + + @classmethod + def from_dict(cls, config: dict[str, Any]) -> MCPConfig: + """Parse MCP configuration from dictionary format.""" + # Handle case where config is just the mcpServers object + if "mcpServers" not in config and any( + isinstance(v, dict) and ("command" in v or "url" in v) + for v in config.values() + ): + # This looks like a bare mcpServers object + servers_dict = config + else: + # Standard format with mcpServers wrapper + servers_dict = config.get("mcpServers", {}) + + # Parse each server configuration + parsed_servers = {} + for name, server_config in servers_dict.items(): + if not isinstance(server_config, dict): + continue + + # Determine if this is stdio or remote based on fields + if "command" in server_config: + parsed_servers[name] = StdioMCPServer.model_validate(server_config) + elif "url" in server_config: + parsed_servers[name] = RemoteMCPServer.model_validate(server_config) + else: + # Skip invalid server configs but preserve them as raw dicts + # This allows for forward compatibility with unknown server types + continue + + # Create config with any extra top-level fields preserved + config_data = {k: v for k, v in config.items() if k != "mcpServers"} + config_data["mcpServers"] = parsed_servers + + return cls.model_validate(config_data) + + def to_dict(self) -> dict[str, Any]: + """Convert MCPConfig to dictionary format, preserving all fields.""" + # Start with all extra fields at the top level + result = self.model_dump(exclude={"mcpServers"}, exclude_none=True) + + # Add mcpServers with all fields preserved + result["mcpServers"] = { + name: server.model_dump(exclude_none=True) + for name, server in self.mcpServers.items() + } + + return result + + def write_to_file(self, file_path: Path) -> None: + """Write configuration to JSON file.""" + file_path.parent.mkdir(parents=True, exist_ok=True) + with open(file_path, "w") as f: + json.dump(self.to_dict(), f, indent=2) + + @classmethod + def from_file(cls, file_path: Path) -> MCPConfig: + """Load configuration from JSON file.""" + if not file_path.exists(): + return cls(mcpServers={}) + with open(file_path) as f: + content = f.read().strip() + if not content: + return cls(mcpServers={}) + data = json.loads(content) + return cls.from_dict(data) + + def add_server(self, name: str, server: StdioMCPServer | RemoteMCPServer) -> None: + """Add or update a server in the configuration.""" + self.mcpServers[name] = server + + def remove_server(self, name: str) -> None: + """Remove a server from the configuration.""" + if name in self.mcpServers: + del self.mcpServers[name] + + +def update_config_file( + file_path: Path, + server_name: str, + server_config: StdioMCPServer | RemoteMCPServer, +) -> None: + """Update MCP configuration file with new server, preserving existing fields.""" + config = MCPConfig.from_file(file_path) + + # If updating an existing server, merge with existing configuration + # to preserve any unknown fields + if server_name in config.mcpServers: + existing_server = config.mcpServers[server_name] + # Get the raw dict representation of both servers + existing_dict = existing_server.model_dump() + new_dict = server_config.model_dump(exclude_none=True) + + # Merge, with new values taking precedence + merged_dict = {**existing_dict, **new_dict} + + # Create new server instance with merged data + if "command" in merged_dict: + merged_server = StdioMCPServer.model_validate(merged_dict) + else: + merged_server = RemoteMCPServer.model_validate(merged_dict) + + config.add_server(server_name, merged_server) + else: + config.add_server(server_name, server_config) + + config.write_to_file(file_path) diff --git a/src/fastmcp/server/proxy.py b/src/fastmcp/server/proxy.py index 6d7a6613b..53df47f74 100644 --- a/src/fastmcp/server/proxy.py +++ b/src/fastmcp/server/proxy.py @@ -22,6 +22,7 @@ from fastmcp.client.logging import LogMessage from fastmcp.client.roots import RootsList from fastmcp.client.transports import ClientTransportT from fastmcp.exceptions import NotFoundError, ResourceError, ToolError +from fastmcp.mcp_config import MCPConfig from fastmcp.prompts import Prompt, PromptMessage from fastmcp.prompts.prompt import PromptArgument from fastmcp.prompts.prompt_manager import PromptManager @@ -33,7 +34,6 @@ from fastmcp.server.server import FastMCP from fastmcp.tools.tool import Tool, ToolResult from fastmcp.tools.tool_manager import ToolManager from fastmcp.utilities.logging import get_logger -from fastmcp.utilities.mcp_config import MCPConfig if TYPE_CHECKING: from fastmcp.server import Context diff --git a/src/fastmcp/server/server.py b/src/fastmcp/server/server.py index 6d92e412f..1985e7c16 100644 --- a/src/fastmcp/server/server.py +++ b/src/fastmcp/server/server.py @@ -43,6 +43,7 @@ from starlette.routing import BaseRoute, Route import fastmcp import fastmcp.server from fastmcp.exceptions import DisabledError, NotFoundError +from fastmcp.mcp_config import MCPConfig from fastmcp.prompts import Prompt, PromptManager from fastmcp.prompts.prompt import FunctionPrompt from fastmcp.resources import Resource, ResourceManager @@ -63,7 +64,6 @@ from fastmcp.utilities.cache import TimedCache from fastmcp.utilities.cli import log_server_banner from fastmcp.utilities.components import FastMCPComponent from fastmcp.utilities.logging import get_logger -from fastmcp.utilities.mcp_config import MCPConfig from fastmcp.utilities.types import NotSet, NotSetT if TYPE_CHECKING: diff --git a/src/fastmcp/utilities/mcp_config.py b/src/fastmcp/utilities/mcp_config.py deleted file mode 100644 index 9b63f42cc..000000000 --- a/src/fastmcp/utilities/mcp_config.py +++ /dev/null @@ -1,103 +0,0 @@ -from __future__ import annotations - -import datetime -import re -from typing import TYPE_CHECKING, Annotated, Any, Literal -from urllib.parse import urlparse - -import httpx -from pydantic import AnyUrl, ConfigDict, Field - -from fastmcp.utilities.types import FastMCPBaseModel - -if TYPE_CHECKING: - from fastmcp.client.transports import ( - SSETransport, - StdioTransport, - StreamableHttpTransport, - ) - - -def infer_transport_type_from_url( - url: str | AnyUrl, -) -> Literal["http", "sse"]: - """ - Infer the appropriate transport type from the given URL. - """ - url = str(url) - if not url.startswith("http"): - raise ValueError(f"Invalid URL: {url}") - - parsed_url = urlparse(url) - path = parsed_url.path - - # Match /sse followed by /, ?, &, or end of string - if re.search(r"/sse(/|\?|&|$)", path): - return "sse" - else: - return "http" - - -class StdioMCPServer(FastMCPBaseModel): - command: str - args: list[str] = Field(default_factory=list) - env: dict[str, Any] = Field(default_factory=dict) - cwd: str | None = None - transport: Literal["stdio"] = "stdio" - - def to_transport(self) -> StdioTransport: - from fastmcp.client.transports import StdioTransport - - return StdioTransport( - command=self.command, - args=self.args, - env=self.env, - cwd=self.cwd, - ) - - -class RemoteMCPServer(FastMCPBaseModel): - url: str - headers: dict[str, str] = Field(default_factory=dict) - transport: Literal["http", "streamable-http", "sse"] | None = None - auth: Annotated[ - str | Literal["oauth"] | httpx.Auth | None, - Field( - description='Either a string representing a Bearer token, the literal "oauth" to use OAuth authentication, or an httpx.Auth instance for custom authentication.', - ), - ] = None - sse_read_timeout: datetime.timedelta | int | float | None = None - - model_config = ConfigDict(arbitrary_types_allowed=True) - - def to_transport(self) -> StreamableHttpTransport | SSETransport: - from fastmcp.client.transports import SSETransport, StreamableHttpTransport - - if self.transport is None: - transport = infer_transport_type_from_url(self.url) - else: - transport = self.transport - - if transport == "sse": - return SSETransport( - self.url, - headers=self.headers, - auth=self.auth, - sse_read_timeout=self.sse_read_timeout, - ) - else: - # Both "http" and "streamable-http" map to StreamableHttpTransport - return StreamableHttpTransport( - self.url, - headers=self.headers, - auth=self.auth, - sse_read_timeout=self.sse_read_timeout, - ) - - -class MCPConfig(FastMCPBaseModel): - mcpServers: dict[str, StdioMCPServer | RemoteMCPServer] - - @classmethod - def from_dict(cls, config: dict[str, Any]) -> MCPConfig: - return cls(mcpServers=config.get("mcpServers", config)) diff --git a/tests/utilities/test_mcp_config.py b/tests/utilities/test_mcp_config.py index 253b7c452..b0d5822cf 100644 --- a/tests/utilities/test_mcp_config.py +++ b/tests/utilities/test_mcp_config.py @@ -10,7 +10,7 @@ from fastmcp.client.transports import ( StdioTransport, StreamableHttpTransport, ) -from fastmcp.utilities.mcp_config import MCPConfig, RemoteMCPServer, StdioMCPServer +from fastmcp.mcp_config import MCPConfig, RemoteMCPServer, StdioMCPServer def test_parse_single_stdio_config():