What are MCP Servers?
MCP servers are standalone programs that:- Expose additional tools and resources to Reliant
- Provide access to external data sources such as databases, APIs, and file systems
- Run as separate processes communicating via standard I/O
- Can be written in any language that supports stdio communication
Configuration Files and Scopes
Reliant stores MCP server configs in scoped files:- Global:
~/.reliant/mcp.json - Project:
<project>/.reliant/mcp.json - Project Local (gitignored):
<project>/.reliant.local/mcp.json- Reliant automatically ensures
.reliant.local/is present in<project>/.gitignorewhen you install to this scope.
- Reliant automatically ensures
Global < Project < Project Local.
Built-in MCP Server Support
Reliant comes with example configurations for common MCP servers.Filesystem Server
Provides tools for file system operations with scoped access.GitHub Server
Integrates with GitHub for repository operations.GITHUB_TOKEN environment variable.
SQLite Server
Provides database query capabilities.Adding Custom MCP Servers
You can add custom MCP servers directly from Settings → MCP Servers → Add Custom. The guided UI supports:- server name
- stdio or sse transport
- command or URL
- args and env vars
- scope selection (Global, Project, or Project Local)
MCP + Skill Bundles
Some recommended MCP servers include curated skill bundles. When present, install follows this sequence:- Validate configuration and selected scope
- Write MCP configuration
- Materialize bundled skills into the selected target scope (
.reliant,.reliant.local, or~/.reliant) - Re-index skills
- Return an install summary
- Bundles come only from Reliant’s trusted embedded recommended catalog
- Skill file paths are normalized and traversal with
..is rejected - Conflict policies are respected (
skip,overwrite,prompt) - On bundle materialization failure, MCP installation is rolled back to avoid partial silent state
Configuration Structure
Configuration Fields
command (required): Path to the executable or command name. This can be an absolute path or a command inPATH. Examples: "npx", "python", "/usr/local/bin/custom-server"
args (optional): Array of command-line arguments passed in order. Supports variable substitution.
env (optional): Environment variables for the server process. Format: "VAR_NAME": "${SOURCE_VAR}"
Variable Substitution
MCP configurations support substitution from environment variables:| Variable | Description |
|---|---|
${PWD} | Current working directory |
${HOME} | User’s home directory |
${ENV_VAR} | Any environment variable |
${VAR:-default} | Variable with default value |
Example: Python MCP Server
Example: Docker-based MCP Server
Building Your Own MCP Server
An MCP server must:- Communicate via standard input/output (stdio)
- Implement the MCP protocol
- Handle JSON-RPC 2.0 messages
- Provide tool definitions and implementations
Minimal Example (Python)
MCP Libraries and SDKs
Official SDKs:- Python:
mcppackage - TypeScript/Node.js:
@modelcontextprotocol/sdk - Go: Community implementations available
Managing MCP Servers
Testing MCP Servers
After adding an MCP server:- Open Settings → MCP Servers and verify status or last error
- Check logs for connection errors:
- macOS:
~/Library/Logs/Reliant/reliant.log - Windows:
%APPDATA%\Reliant\logs\reliant.log - Linux:
~/.local/share/reliant/logs/reliant.log
- macOS:
- Test in a chat by asking the agent to use the new tools
Debugging Issues
Server will not start: Check the command path, verify arguments, ensure environment variables are set, and confirm prerequisites likenpx and uvx are installed.
Tools do not work: Verify MCP protocol implementation, check the server last error in MCP Settings, inspect logs or stdout, and test the server independently with manual JSON-RPC calls.
Performance issues: Consider adding timeouts, monitor resource usage, and use caching in the server implementation.
Security Considerations
Scoped Access
Always scope MCP servers to minimal necessary access:Environment Variable Security
- Never commit API keys or secrets in configuration files
- Use environment variables for sensitive data
- Consider using secret management tools
- Rotate credentials regularly
Trusted Servers Only
- Only use MCP servers from trusted sources
- Review server code before using it
- Be cautious with servers requiring broad system access
- Monitor server behavior in logs
Complete Configuration Example
Related Topics
- Workflows Overview - Configure agents to use MCP tools
- API Keys - Set up credentials for MCP servers
- Troubleshooting - Debug MCP server issues