From b5d5842234252e635141bf29ec30b4967b63effe Mon Sep 17 00:00:00 2001 From: Sense T Date: Tue, 2 Jun 2026 08:55:23 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eengram=20mcp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mcp-proxy/config.json | 17 ++++++++++++----- mcp-proxy/deploy.yaml | 20 ++++++++++++++++++++ mcp-proxy/kustomization.yaml | 5 ++++- mcp-proxy/start.sh | 10 ++++++---- 4 files changed, 42 insertions(+), 10 deletions(-) diff --git a/mcp-proxy/config.json b/mcp-proxy/config.json index 1ff10ea..c5c239f 100644 --- a/mcp-proxy/config.json +++ b/mcp-proxy/config.json @@ -2,11 +2,18 @@ "$schema": "https://json.schemastore.org/claude-code-settings.json", "mcpServers": { "sequential-thinking": { - "command": "npx", - "args": [ - "-y", - "@modelcontextprotocol/server-sequential-thinking" - ] + "command": "npx", + "args": [ + "-y", + "@modelcontextprotocol/server-sequential-thinking" + ] + }, + "engram": { + "env": { + "ENGRAM_DATA_DIR": "/engram-data" + }, + "command": "engram", + "args": ["mcp"] } } } \ No newline at end of file diff --git a/mcp-proxy/deploy.yaml b/mcp-proxy/deploy.yaml index 3a512dc..1c44eaa 100644 --- a/mcp-proxy/deploy.yaml +++ b/mcp-proxy/deploy.yaml @@ -21,6 +21,20 @@ spec: - name: data persistentVolumeClaim: claimName: mcp-proxy + - name: engram-data + hostPath: + path: /data/engram + type: DirectoryOrCreate + initContainers: + - name: engram-init + image: engram + command: + - /bin/sh + - -c + - "cp -r /usr/local/bin/engram /tmp/engram" + volumeMounts: + - name: tmp + mountPath: /tmp containers: - name: mcp-proxy image: image @@ -41,6 +55,8 @@ spec: value: https://registry.npmmirror.com/ - name: UV_INDEX_URL value: https://pypi.tuna.tsinghua.edu.cn/simple + - name: ENGRAM_DATA_DIR + value: /engram-data volumeMounts: - mountPath: /config.json name: config @@ -60,6 +76,10 @@ spec: - mountPath: /root/.config name: data subPath: .config + - mountPath: /engram-data + name: engram-data + - mountPath: /tmp + name: tmp livenessProbe: httpGet: port: 8080 diff --git a/mcp-proxy/kustomization.yaml b/mcp-proxy/kustomization.yaml index 0ec0004..dde6cca 100644 --- a/mcp-proxy/kustomization.yaml +++ b/mcp-proxy/kustomization.yaml @@ -18,4 +18,7 @@ images: newTag: v0.12.0 - name: node newName: cr.wetofu.me/library/node - newTag: lts-alpine3.23 \ No newline at end of file + newTag: lts-alpine3.23 +- name: engram + newName: ghcr.io/gentleman-programming/engram + newTag: v1.16.1 \ No newline at end of file diff --git a/mcp-proxy/start.sh b/mcp-proxy/start.sh index 603c754..fa8037d 100644 --- a/mcp-proxy/start.sh +++ b/mcp-proxy/start.sh @@ -2,11 +2,13 @@ sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories apk add --no-cache npm uv +cp /tmp/engram /usr/local/bin/ && echo 'install engram done.' -which node -which npm -which npx -which uvx +which node || exit 1 +which npm || exit 1 +which npx || exit 1 +which uvx || exit 1 +which engram || exit 1 catatonit -- mcp-proxy \ --named-server-config /config.json \