GarraIA supports the Model Context Protocol for connecting to external tools and services.
Configure MCP servers in config.yml:
mcp:
filesystem:
command: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
github:
command: npx
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_TOKEN: "your-github-token"For remote MCP servers (requires mcp-http feature):
mcp:
remote-server:
transport: http
url: "http://localhost:3000/mcp"garraia mcp listgarraia mcp inspect <server-name>garraia mcp resources <server-name>garraia mcp prompts <server-name>Access local filesystem:
mcp:
filesystem:
command: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/directory"]mcp:
github:
command: npx
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_TOKEN: "ghp_..."mcp:
postgres:
command: npx
args: ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:pass@localhost/db"]mcp:
aws:
command: npx
args: ["-y", "@modelcontextprotocol/server-aws-kb-retrieval-server"]GarraIA is compatible with Claude Desktop MCP configuration.
Create ~/.garraia/mcp.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
}
}
}MCP tools are namespaced with the server name:
server_name.tool_name
Example: filesystem.read_file
MCP servers are monitored for health:
garraia healthCheck MCP status in health output.
Check logs:
garraia logs | grep mcpVerify server is running:
garraia mcp listIncrease timeout in config:
timeouts:
mcp:
default_secs: 60 # Increase from default