← ClaudeAtlas

add-ollama-toollisted

Add Ollama MCP server so the container agent can call local models for cheaper/faster tasks like summarization, translation, or general queries.
sliamh11/Deus · ★ 38 · AI & Automation · score 80
Install: claude install-skill sliamh11/Deus
# Add Ollama Integration This skill adds a stdio-based MCP server that exposes local Ollama models as tools for the container agent. Claude remains the orchestrator but can offload work to local models. Tools added: - `ollama_list_models` — lists installed Ollama models - `ollama_generate` — sends a prompt to a specified model and returns the response ## Phase 1: Pre-flight ### Check if already applied Check if `container/agent-runner/src/ollama-mcp-stdio.ts` exists. If it does, skip to Phase 3 (Configure). ### Check prerequisites Verify Ollama is installed and running on the host: ```bash ollama list ``` If Ollama is not installed, direct the user to https://ollama.com/download. If no models are installed, suggest pulling one: > You need at least one model. I recommend: > > ```bash > ollama pull gemma3:1b # Small, fast (1GB) > ollama pull llama3.2 # Good general purpose (2GB) > ollama pull qwen3-coder:30b # Best for code tasks (18GB) > ``` ## Phase 2: Apply Code Changes Check if the Ollama MCP server files are already present: ```bash test -f container/agent-runner/src/ollama-mcp-stdio.ts && echo "Already present" || echo "Not present" ``` If not present, the Ollama integration needs to be implemented locally. The following files are involved: - `container/agent-runner/src/ollama-mcp-stdio.ts` (Ollama MCP server) - `scripts/ollama-watch.sh` (macOS notification watcher) - Ollama MCP config in `container/agent-runner/src/index.ts` (allowedTools + mcpServ