The TUI JSON mode provides an alternative way to configure services using JSON instead of the step-by-step form interface. This mode is designed for advanced users who prefer to work with JSON directly and supports bulk import of multiple services.
- Type or paste JSON configuration directly
- Real-time character and line count
- Support for large configurations (displays first 15 lines with scroll indicator)
- Instant JSON syntax validation
- Comprehensive service definition validation
- Clear error messages with field-specific details
- Visual indicators for valid/invalid JSON
The JSON editor supports three different formats:
{
"name": "myservice",
"transport": "stdio",
"command": "node",
"args": ["server.js"],
"enabled": true,
"tags": ["test"],
"connectionPool": {
"maxConnections": 5,
"idleTimeout": 60000,
"connectionTimeout": 30000
}
}[
{
"name": "service1",
"transport": "stdio",
"command": "node",
"args": ["server1.js"]
},
{
"name": "service2",
"transport": "http",
"url": "http://localhost:3000"
}
]{
"filesystem": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
"env": {
"NODE_ENV": "production"
},
"tags": ["local", "storage"],
"enabled": true
},
"github": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "your-token-here"
},
"tags": ["remote", "api"]
}
}Press Ctrl+E to load an example template with common service configurations.
Ctrl+S- Save and submit configurationCtrl+E- Load example templateCtrl+L- Clear editor?orF1- Toggle help screenEsc- Cancel and return
For all services:
name- Service identifier (alphanumeric, hyphens, underscores only)transport- Must be 'stdio', 'sse', or 'http'
For stdio transport:
command- Command to start the MCP server
For sse/http transport:
url- HTTP(S) URL of the MCP server
args- Array of command-line arguments (stdio only)env- Object of environment variables (stdio only)tags- Array of tags for categorizationenabled- Boolean (default: true)connectionPool- Connection pool configurationmaxConnections- Number between 1 and 100 (default: 5)idleTimeout- Milliseconds >= 1000 (default: 60000)connectionTimeout- Milliseconds >= 1000 (default: 30000)
toolStates- Object mapping tool names/patterns to enabled state
When importing multiple services:
- The editor shows a preview of all services to be imported
- Each service is validated independently
- Validation errors show which service has the issue
- All valid services can be imported even if some are invalid
The JSON editor provides detailed error messages:
- JSON parse errors - Shows the exact parsing error
- Missing fields - Identifies which required field is missing
- Invalid values - Explains what values are acceptable
- Multiple services - Prefixes errors with service name/index
- Start with an example - Press
Ctrl+Eto see a working template - Validate as you type - Watch the validation status in real-time
- Use mcpServers format - Compatible with standard MCP configurations