Prerequisites
- Mimir AIP running: Ensure the orchestrator is accessible at
http://localhost:8080(or your deployment URL) - MCP endpoint available: Verify
http://localhost:8080/mcp/sseresponds (you can test withcurl)
Claude Code
Claude Code is a VS Code extension and CLI tool that supports MCP servers via SSE.Installation
If you haven’t installed Claude Code yet:Configuration
Method 1: Using the CLI
Method 2: Manual JSON Configuration
Edit your MCP configuration file:- macOS/Linux:
~/.claude/mcp_servers.json - Windows:
%APPDATA%\claude\mcp_servers.json
Verify Connection
Start a Claude Code session:“What Mimir tools are available?”Claude should list all 55 tools. You can also test a simple command:
“Check the health of the Mimir platform.”Expected response:
Example Commands
Once connected, try these natural language commands:Claude Desktop
Claude Desktop (Anthropic’s desktop app) supports MCP servers.Configuration
- Open Claude Desktop
- Go to Settings → Developer → MCP Servers
- Click Add Server
- Enter:
- Name:
Mimir - Type:
SSE - URL:
http://localhost:8080/mcp/sse
- Name:
- Save and restart Claude Desktop
Usage
Start a new conversation and ask:“What can you do with Mimir?”Claude will list available capabilities based on the tool descriptions.
Custom MCP Clients
If you’re building a custom agent or integration, use any MCP-compatible client library.Node.js Example
Python Example
Remote Deployment
If Mimir is deployed on a remote server or Kubernetes cluster:1. Port Forwarding (Development)
http://localhost:8080/mcp/sse.
2. Ingress (Production)
Expose the MCP endpoint via an Ingress with TLS and authentication:3. Reverse Proxy (Docker Compose)
Add nginx to yourdocker-compose.yml:
nginx.conf:
Troubleshooting
Connection Refused
Symptom: MCP client cannot connect tohttp://localhost:8080/mcp/sse
Solutions:
- Verify orchestrator is running:
curl http://localhost:8080/health - Check orchestrator logs for errors:
docker logs mimir-orchestratororkubectl logs -n mimir-aip deployment/mimir-aip-orchestrator - Ensure port 8080 is exposed (check
docker-compose.ymlor Kubernetes Service)
No Tools Listed
Symptom: MCP client connects but shows 0 tools Solutions:- Verify MCP server initialized: check orchestrator logs for
"MCP server started" - Test endpoint manually:
- Ensure MCP SDK versions are compatible (Mimir uses
mcp-gowhich implements MCP 2024-11-05)
Tool Calls Fail
Symptom: Tools are listed but calls return errors Solutions:- Check orchestrator logs for detailed error messages
- Verify required parameters are provided (see Tools Reference)
- Ensure referenced resources exist (e.g., project_id, storage_id)
- For JSON parameters (e.g.,
steps,config), validate JSON syntax
SSE Connection Drops
Symptom: MCP client disconnects after a few minutes Solutions:- Check reverse proxy/ingress timeout settings (default is often 60s; increase to 86400s for SSE)
- Verify firewall/NAT isn’t closing idle connections
- Use a keep-alive mechanism in your MCP client
Next Steps
Tools Reference
Explore all 55 MCP tools with detailed parameters, examples, and response schemas
Advanced Configuration
Custom MCP Server Port
If you need to run the MCP server on a different port or path, configure via environment variables:http://localhost:9000/api/mcp/sse.
Multiple Mimir Instances
To connect to multiple Mimir deployments (dev, staging, prod), add separate MCP server entries:mimir-dev/create_project, mimir-prod/create_project).