MCP Integration
Model Context Protocol (MCP) allows Alma to integrate with external services and tools through a standardized interface.
What is MCP?
MCP is an open protocol that enables:
- Tools: Additional capabilities beyond built-in tools
- Resources: Access to external data sources
- Prompts: Pre-configured prompt templates
MCP Marketplace
Alma includes a marketplace of pre-configured MCP servers:
- Go to Settings → MCP Servers
- Click Marketplace
- Browse available servers
- Click Install to add a server
Popular MCP Servers
| Server | Description |
|---|---|
| Brave Search | Web search via Brave API |
| GitHub | Repository management |
| Slack | Workspace messaging |
| Filesystem | Extended file operations |
| Memory | Persistent knowledge base |
Adding MCP Servers
From Marketplace
- Find the server in the marketplace
- Click Install
- Configure required parameters
- Server starts automatically
Manual Configuration
- Go to Settings → MCP Servers
- Click Add Server
- Choose server type:
- Stdio: Local command-based servers
- Remote: HTTP/SSE-based servers
Stdio Servers
json
{
"name": "my-server",
"command": "npx",
"args": ["-y", "@mcp/server-name"],
"env": {
"API_KEY": "your-key"
}
}Remote Servers
json
{
"name": "my-remote-server",
"url": "https://mcp.example.com/sse"
}Using MCP Tools
MCP tools appear in the tool selector with the format:
serverName__toolNameFor example, github__create_issue from the GitHub MCP server.
Enabling MCP Tools
- Click the Tools icon in the message input
- Select All or Manual
- Enable specific MCP tools as needed
OAuth Support
Some MCP servers require OAuth authentication:
- Install the MCP server
- Click Authorize when prompted
- Complete the OAuth flow in your browser
- The server is now authenticated
Managing OAuth
- View authorization status in server settings
- Revoke access by clicking Disconnect
- Re-authorize if token expires
Server Management
Server Status
View the status of connected servers:
- 🟢 Connected
- 🟡 Connecting
- 🔴 Disconnected/Error
Reconnecting
If a server disconnects:
- Go to server settings
- Click Reconnect
Removing Servers
- Go to server settings
- Click Delete
- Confirm removal
Creating Custom Servers
You can create your own MCP servers using:
- Python with
mcppackage - Node.js with
@modelcontextprotocol/sdk
See the MCP Documentation for details.
Troubleshooting
"Server Failed to Start"
- Check server command and arguments
- Verify dependencies are installed
- Look at server logs
"Tool Not Available"
- Ensure server is connected
- Check if tool is enabled
- Verify OAuth if required
"Connection Lost"
- Server process may have crashed
- Check network connectivity
- Try reconnecting
