Manage MCP servers and configurations in factory-cli
/mcp
command provides comprehensive management of MCP servers within Factory CLI, allowing you to configure, monitor, and maintain Model Context Protocol server connections.
/mcp
command lets you:
Option | Description |
---|---|
-h, --help | Display help for command |
Command | Description |
---|---|
list | List configured MCP servers and their status |
add <name> <command> | Add a new MCP server to the configuration |
remove <name> | Remove an MCP server from the configuration |
get <name> | Show details about a specific MCP server |
help [command] | Display help for a specific command |
/mcp
defaults to the list
command.-h, --help
- Display help for the list commandname
- Server name (used as identifier)command
- Command to start the server-e, --env <key=value...>
- Environment variables (can be used multiple times)--transport <type>
- Transport type (defaults to “stdio”)-h, --help
- Display help for the add commandname
- Server name to remove-h, --help
- Display help for the remove commandname
- Server name to get details for-h, --help
- Display help for the get command/mcp
command and its subcommands in several ways:
/mcp --help
or /mcp -h
- Show general help/mcp help
- Show general help/mcp help <command>
- Show help for a specific command/mcp <command> --help
- Show help for a specific command-e
or --env
flag:
KEY=VALUE
format. If a value contains an equals sign, everything after the first =
is treated as the value.
/mcp
command provides clear error messages for common issues:
KEY=VALUE
format/mcp --help
to see available commands