fix(agent-zero): repair fc knowledge mcp manifest
This commit is contained in:
@@ -277,30 +277,30 @@ spec:
|
|||||||
|
|
||||||
export A0_SET_mcp_servers="$(
|
export A0_SET_mcp_servers="$(
|
||||||
python3 - <<'PY'
|
python3 - <<'PY'
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
servers = {}
|
servers = {}
|
||||||
|
|
||||||
chat_key = os.getenv("CHAT_MCP_API_KEY")
|
chat_key = os.getenv("CHAT_MCP_API_KEY")
|
||||||
if chat_key:
|
if chat_key:
|
||||||
servers["fc_chat"] = {
|
servers["fc_chat"] = {
|
||||||
"type": "streamable-http",
|
"type": "streamable-http",
|
||||||
"url": "http://chat-web.fc-chat.svc/mcp",
|
"url": "http://chat-web.fc-chat.svc/mcp",
|
||||||
"headers": {"X-Api-Key": chat_key},
|
"headers": {"X-Api-Key": chat_key},
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.getenv("KNOWLEDGE_MCP_ENABLED", "false").lower() == "true":
|
if os.getenv("KNOWLEDGE_MCP_ENABLED", "false").lower() == "true":
|
||||||
token = os.getenv("KNOWLEDGE_MCP_BEARER_TOKEN", "")
|
token = os.getenv("KNOWLEDGE_MCP_BEARER_TOKEN", "")
|
||||||
if token:
|
if token:
|
||||||
servers["fc_knowledge"] = {
|
servers["fc_knowledge"] = {
|
||||||
"type": "streamable-http",
|
"type": "streamable-http",
|
||||||
"url": os.getenv("KNOWLEDGE_MCP_URL", "http://knowledge-web.knowledge.svc/mcp"),
|
"url": os.getenv("KNOWLEDGE_MCP_URL", "http://knowledge-web.knowledge.svc/mcp"),
|
||||||
"headers": {"Authorization": f"Bearer {token}"},
|
"headers": {"Authorization": f"Bearer {token}"},
|
||||||
}
|
}
|
||||||
|
|
||||||
print(json.dumps({"mcpServers": servers}, separators=(",", ":")))
|
print(json.dumps({"mcpServers": servers}, separators=(",", ":")))
|
||||||
PY
|
PY
|
||||||
)"
|
)"
|
||||||
# Run the original entrypoint
|
# Run the original entrypoint
|
||||||
exec /exe/initialize.sh $BRANCH
|
exec /exe/initialize.sh $BRANCH
|
||||||
|
|||||||
Reference in New Issue
Block a user