MCP Configuration
The Model Context Protocol (MCP) is an open standard that allows AI assistants to connect to external tools and data sources. Calmo Local Bridge supports MCP servers, enabling you to extend Calmo’s capabilities with documentation lookup, specialized tools, and more.
What is MCP?
MCP provides a standardized way for AI applications to:
- Access External Tools - Connect to specialized tools and services
- Retrieve Documentation - Fetch up-to-date docs and code examples
- Enable New Capabilities - Add sequential thinking, file access, and more
Viewing MCP Servers
The MCP Tools tab shows all configured servers:
- Server Name - Identifier for the MCP server
- Type - HTTP or STDIO transport
- Tools Count - Number of tools provided by the server
- Status - Connection status (green = connected)
Configuring MCP Servers
Accessing the Configuration
Click Edit MCP Config to open the configuration file:
The configuration file is located at:
- macOS:
~/Library/Application Support/Calmo Bridge/mcp.json
- Windows:
%APPDATA%\Calmo Bridge\mcp.json
The configuration uses JSON format with an mcpServers object:
{
"mcpServers": {
"server-name": {
// Server configuration
}
}
}
Server Types
Stdio Servers
Local processes that communicate via stdin/stdout. Best for npm packages and local tools.
{
"mcpServers": {
"mastra": {
"command": "/usr/local/bin/npx",
"args": ["-y", "@mastra/mcp-docs-server"],
"env": {
"PATH": "/usr/local/bin:/usr/bin:/bin"
}
}
}
}
Configuration Fields:
| Field | Required | Description |
|---|
command | ✅ | Path to executable (e.g., /usr/local/bin/npx) |
args | ✅ | Array of command arguments |
env | ❌ | Environment variables for the process |
disabled | ❌ | Set to true to disable without removing |
HTTP/HTTPS Servers
Remote servers accessed over the network. Best for cloud-hosted services.
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "your-api-key-here"
}
}
}
}
Configuration Fields:
| Field | Required | Description |
|---|
url | ✅ | Full URL to the MCP server endpoint |
headers | ❌ | HTTP headers (e.g., API keys) |
disabled | ❌ | Set to true to disable without removing |
Example Configurations
Documentation Server (Context7)
Provides up-to-date documentation for any library:
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "ctx7sk-xxxx-xxxx-xxxx"
}
}
}
}
Tools Provided: resolve-library-id, get-library-docs
Mastra Documentation
Access Mastra.ai documentation, examples, and migration guides:
{
"mcpServers": {
"mastra": {
"command": "/usr/local/bin/npx",
"args": ["-y", "@mastra/mcp-docs-server"],
"env": {
"PATH": "/usr/local/bin:/usr/bin:/bin"
}
}
}
}
Tools Provided: mastraDocs, mastraExamples, mastraBlog, mastraChanges, mastraMigration, and more
Sequential Thinking
Enables structured problem-solving through step-by-step reasoning:
{
"mcpServers": {
"sequential-thinking": {
"command": "/usr/local/bin/npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
],
"env": {
"PATH": "/usr/local/bin:/usr/bin:/bin"
}
}
}
}
Tools Provided: sequentialthinking
Complete Example
A full configuration with multiple servers:
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "ctx7sk-xxxx-xxxx-xxxx"
}
},
"mastra": {
"command": "/usr/local/bin/npx",
"args": ["-y", "@mastra/mcp-docs-server"],
"env": {
"PATH": "/usr/local/bin:/usr/bin:/bin"
}
},
"sequential-thinking": {
"command": "/usr/local/bin/npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"],
"env": {
"PATH": "/usr/local/bin:/usr/bin:/bin"
}
}
}
}
Managing Servers
Reloading Configuration
After editing the configuration:
- Save the
mcp.json file
- Click Reload Servers in the MCP Tools tab
- Or wait for auto-detection (changes are automatically detected)
Disabling a Server
To temporarily disable a server without removing it:
{
"mcpServers": {
"server-name": {
"command": "/usr/local/bin/npx",
"args": ["-y", "some-server"],
"disabled": true
}
}
}
Viewing Server Logs
Check the Logs tab for MCP server activity:
[15:36:34] [MCP Config] Found server: context7 (http)
[15:36:34] [MCP Config] Found server: mastra (stdio)
[15:36:35] [MCP:context7] Connected with 2 tools
[15:36:37] [MCP:mastra] Connected with 10 tools
[15:36:38] [MCP Registry] Active servers: 3
Popular MCP Servers
| Server | Type | Description |
|---|
| context7 | HTTP | Library documentation and code examples |
| @mastra/mcp-docs-server | Stdio | Mastra.ai documentation and examples |
| @modelcontextprotocol/server-sequential-thinking | Stdio | Structured reasoning and problem-solving |
| @modelcontextprotocol/server-filesystem | Stdio | File system read/write access |
| @modelcontextprotocol/server-github | Stdio | GitHub API integration |
| @modelcontextprotocol/server-slack | Stdio | Slack messaging integration |
Windows Troubleshooting
On Windows, npx is a script that requires shell access. Wrap calls with cmd /c:
{
"mcpServers": {
"server-name": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@some/mcp-server"
]
}
}
}
Security Considerations
MCP servers run with your user permissions and may have network access. Only configure servers you trust.
Best Practices:
- Review Server Code - Understand what servers do before adding them
- Limit Permissions - Some servers request file system or network access
- Secure API Keys - Keep API keys private; don’t commit config files to git
- Monitor Logs - Watch for unexpected behavior in the Activity Log
Troubleshooting
Server Won’t Connect
- Check the command path - Ensure the executable exists at the specified path
- Verify npx - Run
which npx to confirm location
- Check environment - Some tools need specific PATH configuration
- Review logs - Check the Logs tab for error messages
- Wait for initialization - Some servers take time to load
- Check stderr - Look for startup errors in logs
- Verify package - Ensure the npm package name is correct
API Key Issues
- Check header format - Headers must be in the correct structure
- Verify key validity - Ensure the API key is active and has proper permissions
- Check URL - Confirm the server URL is correct
For MCP configuration help, contact our support team at [email protected].