新增engram mcp
This commit is contained in:
+12
-5
@@ -2,11 +2,18 @@
|
|||||||
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"sequential-thinking": {
|
"sequential-thinking": {
|
||||||
"command": "npx",
|
"command": "npx",
|
||||||
"args": [
|
"args": [
|
||||||
"-y",
|
"-y",
|
||||||
"@modelcontextprotocol/server-sequential-thinking"
|
"@modelcontextprotocol/server-sequential-thinking"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"engram": {
|
||||||
|
"env": {
|
||||||
|
"ENGRAM_DATA_DIR": "/engram-data"
|
||||||
|
},
|
||||||
|
"command": "engram",
|
||||||
|
"args": ["mcp"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,6 +21,20 @@ spec:
|
|||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mcp-proxy
|
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:
|
containers:
|
||||||
- name: mcp-proxy
|
- name: mcp-proxy
|
||||||
image: image
|
image: image
|
||||||
@@ -41,6 +55,8 @@ spec:
|
|||||||
value: https://registry.npmmirror.com/
|
value: https://registry.npmmirror.com/
|
||||||
- name: UV_INDEX_URL
|
- name: UV_INDEX_URL
|
||||||
value: https://pypi.tuna.tsinghua.edu.cn/simple
|
value: https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
- name: ENGRAM_DATA_DIR
|
||||||
|
value: /engram-data
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config.json
|
- mountPath: /config.json
|
||||||
name: config
|
name: config
|
||||||
@@ -60,6 +76,10 @@ spec:
|
|||||||
- mountPath: /root/.config
|
- mountPath: /root/.config
|
||||||
name: data
|
name: data
|
||||||
subPath: .config
|
subPath: .config
|
||||||
|
- mountPath: /engram-data
|
||||||
|
name: engram-data
|
||||||
|
- mountPath: /tmp
|
||||||
|
name: tmp
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|||||||
@@ -18,4 +18,7 @@ images:
|
|||||||
newTag: v0.12.0
|
newTag: v0.12.0
|
||||||
- name: node
|
- name: node
|
||||||
newName: cr.wetofu.me/library/node
|
newName: cr.wetofu.me/library/node
|
||||||
newTag: lts-alpine3.23
|
newTag: lts-alpine3.23
|
||||||
|
- name: engram
|
||||||
|
newName: ghcr.io/gentleman-programming/engram
|
||||||
|
newTag: v1.16.1
|
||||||
+6
-4
@@ -2,11 +2,13 @@
|
|||||||
|
|
||||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
||||||
apk add --no-cache npm uv
|
apk add --no-cache npm uv
|
||||||
|
cp /tmp/engram /usr/local/bin/ && echo 'install engram done.'
|
||||||
|
|
||||||
which node
|
which node || exit 1
|
||||||
which npm
|
which npm || exit 1
|
||||||
which npx
|
which npx || exit 1
|
||||||
which uvx
|
which uvx || exit 1
|
||||||
|
which engram || exit 1
|
||||||
|
|
||||||
catatonit -- mcp-proxy \
|
catatonit -- mcp-proxy \
|
||||||
--named-server-config /config.json \
|
--named-server-config /config.json \
|
||||||
|
|||||||
Reference in New Issue
Block a user