Add Chat MCP server to Agent Zero

This commit is contained in:
Andrew Stoltz
2026-04-23 12:41:58 -05:00
parent 1c5caf3f40
commit 86ccca18e3

View File

@@ -264,6 +264,12 @@ spec:
MODELCFG MODELCFG
# Strip heredoc indentation # Strip heredoc indentation
sed -i 's/^ //' /a0/usr/plugins/_model_config/config.json sed -i 's/^ //' /a0/usr/plugins/_model_config/config.json
# Phase 0 Chat MCP pilot: Agent Zero does not interpolate env vars
# inside A0_SET_mcp_servers JSON, so build the final JSON here from
# the secret-backed CHAT_MCP_API_KEY env var before initialize.sh.
if [ -n "${CHAT_MCP_API_KEY:-}" ]; then
export A0_SET_mcp_servers="{\"mcpServers\":{\"fc-chat\":{\"type\":\"http\",\"url\":\"https://chat.iamworkin.lan/mcp\",\"headers\":{\"X-Api-Key\":\"${CHAT_MCP_API_KEY}\"}}}}"
fi
# Run the original entrypoint # Run the original entrypoint
exec /exe/initialize.sh $BRANCH exec /exe/initialize.sh $BRANCH
ports: ports:
@@ -332,6 +338,13 @@ spec:
# Speech-to-text disabled (no GPU for Whisper) # Speech-to-text disabled (no GPU for Whisper)
- name: A0_SET_stt_model_size - name: A0_SET_stt_model_size
value: "tiny" value: "tiny"
# FlowerCore.Chat MCP pilot (Phase 0)
- name: CHAT_MCP_API_KEY
valueFrom:
secretKeyRef:
name: chat-mcp-api-key
key: api-key
optional: true
# Print.Web — Thermal printer service on edge2 # Print.Web — Thermal printer service on edge2
- name: PRINT_WEB_URL - name: PRINT_WEB_URL
value: "http://10.0.57.16:5200" value: "http://10.0.57.16:5200"