可用于cursor 集成 mcp server
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add ai-image-generation-service -- uv run --with fastmcp fastmcp dev path/to/your/mcp_server.py~/.codex/config.toml
[mcp_servers.ai-image-generation-service]
command = "uv"
args = ["run", "--with", "fastmcp", "fastmcp", "dev", "path/to/your/mcp_server.py"]
# codex mcp add ai-image-generation-service -- uv run --with fastmcp fastmcp dev path/to/your/mcp_server.py~/.cursor/mcp.json
{
"mcpServers": {
"ai-image-generation-service": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"dev",
"path/to/your/mcp_server.py"
]
}
}
}.vscode/mcp.json
{
"servers": {
"ai-image-generation-service": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"dev",
"path/to/your/mcp_server.py"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ai-image-generation-service": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"dev",
"path/to/your/mcp_server.py"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ai-image-generation-service": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"dev",
"path/to/your/mcp_server.py"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ai-image-generation-service": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"dev",
"path/to/your/mcp_server.py"
]
}
}
}