added gitea, n8n and invokeai MCP servers, plus docs/

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
code
2026-07-14 20:47:29 +00:00
parent 06fcf6bab7
commit bcd7e012ba
9 changed files with 375 additions and 1 deletions
+26
View File
@@ -56,6 +56,32 @@ RUN curl -fsSL https://claude.ai/install.sh | bash
RUN PATH="/root/.local/bin:$PATH" bash -c \
'curl -fsSL https://raw.githubusercontent.com/leeguooooo/claude-code-usage-bar/main/web-install.sh | bash'
# MCP servers for Claude Code. Only installed here — they're registered at
# user scope by entrypoint.sh on container start, because user-scope MCP
# config lives in ~/.claude.json, which is bind-mounted from the host and
# would shadow anything written to it at build time. Each server picks up
# its instance URL/token from the environment (see files/bash_aliases).
# n8n — https://github.com/czlonkowski/n8n-mcp
RUN npm install -g --prefix /usr/local n8n-mcp
# Gitea — official server, latest release binary
# https://gitea.com/gitea/gitea-mcp
RUN tag="$(curl -fsSL https://gitea.com/api/v1/repos/gitea/gitea-mcp/releases/latest \
| python -c 'import json,sys; print(json.load(sys.stdin)["tag_name"])')" && \
curl -fsSL "https://gitea.com/gitea/gitea-mcp/releases/download/${tag}/gitea-mcp_Linux_x86_64.tar.gz" \
| tar -xz -C /usr/local/bin gitea-mcp && \
chmod 755 /usr/local/bin/gitea-mcp
# InvokeAI — https://github.com/coinstax/invokeai-mcp-server. Upstream
# hardcodes the InvokeAI URL, so patch it to honor $INVOKEAI_BASE_URL; the
# grep fails the build if upstream changes shape and the patch stops landing.
RUN uv tool install invokeai-mcp-server && \
sed -i 's|^INVOKEAI_BASE_URL = .*|import os\nINVOKEAI_BASE_URL = os.environ.get("INVOKEAI_BASE_URL", "http://127.0.0.1:9090")|' \
/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py && \
grep -q 'INVOKEAI_BASE_URL = os.environ.get' \
/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py
# tmux wrapper
COPY files/tmux /usr/local/bin/tmux
COPY files/tmux.conf /etc/tmux.conf