Spaces:
Sleeping
Sleeping
Jeremiah Lowin
Claude
Fix `mcp-json` output format to include server name (#1185)
23b21a0 unverified Download src/fastmcp/cli/install/__init__.py from purecipher/xsecuremcp: direct link, hf CLI and curl.
- Browser
- Download file 695 Bytes
-
https://huggingface.co/spaces/purecipher/xsecuremcp/resolve/main/src/fastmcp/cli/install/__init__.py
- Command line
-
hf download hf://spaces/purecipher/xsecuremcp/src/fastmcp/cli/install/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/purecipher/xsecuremcp/resolve/main/src/fastmcp/cli/install/__init__.py
695 Bytes
| """Install subcommands for FastMCP CLI using Cyclopts.""" | |
| import cyclopts | |
| from .claude_code import claude_code_command | |
| from .claude_desktop import claude_desktop_command | |
| from .cursor import cursor_command | |
| from .mcp_json import mcp_json_command | |
| # Create a cyclopts app for install subcommands | |
| install_app = cyclopts.App( | |
| name="install", | |
| help="Install MCP servers in various clients and formats.", | |
| ) | |
| # Register each command from its respective module | |
| install_app.command(claude_code_command, name="claude-code") | |
| install_app.command(claude_desktop_command, name="claude-desktop") | |
| install_app.command(cursor_command, name="cursor") | |
| install_app.command(mcp_json_command, name="mcp-json") | |