|
| 1 | +# MCP Context Server Integration |
| 2 | +# Lightweight environment for universal MCP Context Server integration. |
| 3 | +# Provides persistent memory across Claude Code sessions via context server hooks and skills. |
| 4 | +# Downloads the PostgreSQL+Ollama+OpenAI compose file and starts the stack automatically. |
| 5 | +# |
| 6 | +# Prerequisites: |
| 7 | +# - uv (required for PEP 723 hooks with inline dependencies; auto-installed by setup-environment.ps1) |
| 8 | +# - Docker Desktop running (required to start the MCP Context Server) |
| 9 | + |
| 10 | +name: MCP Context Server Integration |
| 11 | + |
| 12 | +inherit: https://raw.githubusercontent.com/alex-feel/mcp-context-server/main/agents/claude-code/environment-docker-ollama.yaml |
| 13 | + |
| 14 | +# Additional files to download (utility modules loaded by other hooks at runtime) |
| 15 | +files-to-download: |
| 16 | + - source: https://raw.githubusercontent.com/alex-feel/mcp-context-server/main/agents/claude-code/hooks/hook_config_loader.py |
| 17 | + dest: ~/.claude/hooks/ |
| 18 | + - source: https://raw.githubusercontent.com/alex-feel/mcp-context-server/main/agents/claude-code/hooks/hook_json_output.py |
| 19 | + dest: ~/.claude/hooks/ |
| 20 | + - source: https://raw.githubusercontent.com/alex-feel/mcp-context-server/main/deploy/docker/docker-compose.postgresql.ollama-openai.yml |
| 21 | + dest: ~/.mcp/docker-compose.postgresql.ollama-openai.yml |
| 22 | + |
| 23 | +# Start the stack after the compose file has been downloaded. |
| 24 | +dependencies: |
| 25 | + common: |
| 26 | + - docker compose -f ~/.mcp/docker-compose.postgresql.ollama-openai.yml up -d |
| 27 | + |
| 28 | +post-install-notes: | |
| 29 | + MCP Context Server is deploying at: http://localhost:8000/mcp |
| 30 | +
|
| 31 | + First-run: Ollama pulls qwen3-embedding:0.6b and qwen3:0.6b (~1.2 GB). Allow 2-5 minutes. |
| 32 | +
|
| 33 | + Follow progress: |
| 34 | + docker compose -f ~/.mcp/docker-compose.postgresql.ollama-openai.yml logs -f ollama |
| 35 | +
|
| 36 | + Verify server health: |
| 37 | + curl http://localhost:8000/health |
| 38 | +
|
| 39 | + Stop the stack: |
| 40 | + docker compose -f ~/.mcp/docker-compose.postgresql.ollama-openai.yml down |
| 41 | +
|
| 42 | + Update (re-download compose file + pull newer images + restart): |
| 43 | + Just re-run the same script from https://github.com/alex-feel/mcp-context-server/blob/main/docs/connecting-ai-assistant.md |
| 44 | +
|
| 45 | + Windows PowerShell: replace ~ with $HOME in the commands above. |
0 commit comments