Integrate OpsAny with an AI Agent¶
OpsAny can be integrated into OpenClaw, Hermes Agent, WorkBuddy, or any other AI Agent, so daily operations tasks can be done through natural language conversation.
Prepare the OpsAny MCP Server Configuration¶
- Get the
opsany-mcp-serverconfiguration JSON
# source /opt/opsany-paas/install/install.config
# cat ${INSTALL_PATH}/conf/opsany-paas/mcp-server/mcp.json
{
"mcpServers": {
"opsany-mcp-server": {
"url": "http://119.3.172.93:8020/sse",
"headers": {
"username": "admin",
"user-api-token": "Created on Workbench - Personal Settings - API Token",
"mcp-auth-token": "3e34accb-3cfd-4850-8e18-115ca60cb0a3"
}
}
}
}
-
Adjust the MCP configuration JSON
-
username: the OpsAny user to act as. Defaults toadmin; always grant the minimum required permissions. user-api-token: create it under Workbench → Personal Settings → API Token.-
mcp-auth-token: must match the MCP service configuration file/data/opsany/conf/opsany-paas/mcp-server/config.yaml. It is set during installation and does not need to be changed. -
Integrate OpsAny into your AI Agent
After editing the fields above, paste the JSON into the OpenClaw chat box together with this prompt:
"Please add this opsany-mcp-server for me. Based on its capabilities, create a complete Skill that calls this MCP server to interact with the OpsAny digital operations platform, enabling intelligent operations."
Using an AI Agent to Call OpsAny¶
Example prompts — be very careful with job execution, seriously:
- How many host resources do I have in OpsAny?
- How many pending tickets are there right now?
- How many managed hosts are there? Run a job to check the memory usage of these hosts.
Appendix: Deploying an AI Agent¶
The following OpenClaw and Hermes Agent deployments are for reference only.
INSTALL_PATH="/data/opsany"
mkdir -p ${INSTALL_PATH}/openclaw-volume
docker run -d --name openclaw \
--restart unless-stopped \
-p 18789:18789 \
-e OPENCLAW_SKIP_ONBOARDING=1 \
-e OPENCLAW_GATEWAY_TOKEN="$(openssl rand -hex 32)" \
-v ${INSTALL_PATH}/openclaw-volume:/home/node/.openclaw \
docker.m.daocloud.io/openclaw/openclaw:2026.6.34-slim \
node dist/index.js gateway --port 18789
INSTALL_PATH="/data/opsany"
DASHBOARD_PASSWD="123456.coM"
mkdir -p ${INSTALL_PATH}/hermes-volume
docker run -d --name hermes-agent \
--restart unless-stopped \
-v ${INSTALL_PATH}/hermes-volume:/opt/data \
-p 8642:8642 \
-p 9119:9119 \
-e API_SERVER_ENABLED=true \
-e API_SERVER_HOST=0.0.0.0 \
-e API_SERVER_KEY="$(openssl rand -hex 32)" \
-e API_SERVER_CORS_ORIGINS='*' \
-e HERMES_DASHBOARD=1 \
-e HERMES_DASHBOARD_BASIC_AUTH_USERNAME=admin \
-e HERMES_DASHBOARD_BASIC_AUTH_PASSWORD=${DASHBOARD_PASSWD} \
docker.m.daocloud.io/nousresearch/hermes-agent:v2026.8.3 gateway run
