MCP Server Configuration
MCP servers are configured in .radium/mcp-servers.toml in your workspace root.
Configuration File Locationβ
The configuration file is located at:
- Workspace root:
.radium/mcp-servers.toml - Default location:
~/.radium/mcp-servers.toml(if no workspace)
Transport Typesβ
Stdio Transportβ
For local MCP servers that run as processes:
[[servers]]
name = "local-server"
transport = "stdio"
command = "mcp-server"
args = ["--config", "config.json"]
Fields:
name: Unique identifier for the servertransport: Must be"stdio"command: Command to execute the MCP serverargs: Optional array of command arguments
SSE Transportβ
For remote servers using Server-Sent Events:
[[servers]]
name = "remote-server"
transport = "sse"
url = "https://api.example.com/mcp/sse"
Fields:
name: Unique identifier for the servertransport: Must be"sse"url: SSE endpoint URL
HTTP Transportβ
For remote servers using HTTP streaming:
[[servers]]
name = "http-server"
transport = "http"
url = "https://api.example.com/mcp"
Fields:
name: Unique identifier for the servertransport: Must be"http"url: HTTP endpoint URL
Multiple Serversβ
You can configure multiple MCP servers:
[[servers]]
name = "database-server"
transport = "stdio"
command = "mcp-database"
args = ["--db", "postgresql://localhost/mydb"]
[[servers]]
name = "api-server"
transport = "http"
url = "https://api.example.com/mcp"
Authenticationβ
For servers requiring authentication, see Authentication Guide.
Verifying Configurationβ
Test your configuration:
# List configured servers
rad mcp list
# Test connection
rad mcp test
# Test specific server
rad mcp test --server database-server
Examplesβ
Example 1: Local Filesystem Serverβ
[[servers]]
name = "filesystem"
transport = "stdio"
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/directory"]
Example 2: PostgreSQL Database Serverβ
[[servers]]
name = "postgres"
transport = "stdio"
command = "npx"
args = ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:pass@localhost/dbname"]
Example 3: Remote API with OAuthβ
[[servers]]
name = "api-server"
transport = "http"
url = "https://api.example.com/mcp"
auth = {
auth_type = "oauth",
params = {
token_url = "https://api.example.com/oauth/token",
client_id = "your-client-id",
client_secret = "your-client-secret"
}
}
Example 4: Multiple Serversβ
# Database server
[[servers]]
name = "postgres-main"
transport = "stdio"
command = "mcp-postgres"
args = ["postgresql://localhost/maindb"]
# File server
[[servers]]
name = "filesystem"
transport = "stdio"
command = "mcp-filesystem"
args = ["--root", "/home/user/documents"]
# Remote API
[[servers]]
name = "github-api"
transport = "http"
url = "https://api.github.com/mcp"
auth = {
auth_type = "oauth",
params = {
token_url = "https://github.com/login/oauth/access_token",
client_id = "github-client-id",
client_secret = "github-client-secret"
}
}
More Examplesβ
See the examples directory for complete configuration examples: