Welcome to Snow CLI! Agentic coding in your terminal.
MCP (Model Context Protocol) is an open protocol that allows AI assistants to integrate with external tools and services. Snow CLI supports configuring and managing MCP services.
MCP (Model Context Protocol) is a standardized protocol for connecting AI assistants with various external tools, data sources, and services. Through MCP, Snow CLI can access local file systems, connect to databases, call external APIs, and more.
Enter the /mcp command in the chat interface to view the status of all MCP services:
Display Content:
- Service name
- Connection status (green ● for connected, red ● for failed, gray ● for disabled)
- Service type (System/External/Disabled)
- Available tools list
Operations:
- Up/Down arrows: Navigate through service list
- Enter key: Reconnect selected service
- Tab key: Toggle enable/disable for external services (not supported for built-in services)
- Select "Refresh all services" option to refresh all services
Select MCP Configuration from the main menu to enter the MCP configuration editor.
The system will automatically detect and use an appropriate text editor to open the configuration file:
Editor Priority:
- Editor specified by
VISUALenvironment variable - Editor specified by
EDITORenvironment variable - System default editor
Windows: Detection order: notepad++ > notepad > code > vim > nano
macOS/Linux: Detection order: nano > vim > vi
Set Default Editor:
macOS/Linux:
export EDITOR=nanoWindows:
set EDITOR=notepadConfiguration file location: ~/.snow/mcp-config.json
Configuration Structure:
{
"mcpServers": {
"service-name": {
"command": "command",
"args": ["arg1", "arg2"],
"enabled": true
}
}
}Configuration Options:
mcpServers: MCP service configuration objectservice-name: Custom service name (unique identifier)type: Transport type, optional values are'stdio','local', or'http'(optional, auto-detected based onurlorcommandby default)'stdio': Local subprocess communication (STDIO mode)'local': Alias for'stdio', functionally identical'http': HTTP mode for connecting to remote MCP services
command: Command to start the MCP service (required forstdio/localtype)args: Command argument array (optional)url: MCP service endpoint URL (required forhttptype)headers: HTTP request headers configuration (optional forhttptype)enabled: Whether to enable the service (optional, defaults to true)timeout: Tool invocation timeout in milliseconds (optional, defaults to 300000, i.e., 5 minutes)env/environment: Environment variables configuration (optional),environmentis an alias forenv
Configuration Example:
STDIO/Local Mode Example:
{
"mcpServers": {
"filesystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/files"
],
"timeout": 600000
},
"github": {
"type": "local",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"enabled": true,
"environment": {
"GITHUB_TOKEN": "your_token_here"
}
}
}
}HTTP Mode Example:
{
"mcpServers": {
"remote-service": {
"type": "http",
"url": "https://api.example.com/mcp",
"headers": {
"Authorization": "Bearer ${API_KEY}",
"X-Custom-Header": "custom-value"
},
"env": {
"API_KEY": "your_api_key_here"
},
"timeout": 300000
}
}
}Note: HTTP mode supports reading configuration values from environment variables using the
${VAR_NAME}syntax.
After saving the configuration file, the system will automatically validate it:
Success Message:
MCP configuration saved successfully ! Please use `snow` restart!
Error Message:
Invalid JSON format
After configuration, restart Snow CLI for changes to take effect:
snowAfter startup, use the /mcp command to view service connection status.
Method 1: Edit Configuration File
Set the enabled field to false to disable a service
Method 2: Use /mcp Command
- Enter
/mcpto open the service panel - Use up/down arrows to select service
- Press Tab key to toggle enable/disable status
Note: Built-in services cannot be disabled
In the /mcp panel, select a service and press Enter to reconnect
Error Message:
No text editor found! Please set the EDITOR or VISUAL environment variable.
Solution:
Set environment variable or install a text editor:
macOS/Linux:
export EDITOR=nanoWindows:
set EDITOR=notepadCheck Items:
- Is the command path correct
- Are dependencies installed (e.g., Node.js for npx)
- Is the parameter format correct
- Use
/mcpto view specific error messages
Solution:
- Confirm configuration file is saved
- Restart Snow CLI
- Use
/mcpto check service status
- MCP Official Documentation: https://modelcontextprotocol.io
- MCP Services Repository: https://github.com/modelcontextprotocol
- Command Guide: Command Panel Guide