aai:exec
Execute any AAI tool action. Read the guide first (call app:*, mcp:import, skill:import, or search:discover) — it contains the required schema and parameters.
Import MCP servers and skills once, and every agent on the machine can use them — with their full schemas loaded only at the moment they are used.
LABSCO SUMMARY
The trade is deliberate: each app contributes a one-line summary up front and its real schema only when it is called, which keeps a large collection of servers usable at the cost of one extra hop through aai:exec. The second benefit is quieter but adds up — an import is shared across every agent on the machine, so Claude Code, Codex and OpenCode stop each keeping their own copy of the same configuration.
A management layer in front of your other MCP servers and skills. Each import becomes an Agent App represented by a short summary in the session; the details are fetched when the app is actually called, and imports are shared across agents rather than configured per client.
No account and no key of its own — each imported app still needs whatever credentials it needs. It runs as npx -y aai-gateway over stdio, and the README gives the one-line add commands for Claude Code, Codex and OpenCode, plus a plugin for OpenClaw. Imports it manages are global, so project-scoped servers still belong in your agent's own config (.mcp.json, .cursor/mcp.json) and project-scoped skills in its skill directory.
One command — claude mcp add --scope user --transport stdio aai-gateway -- npx -y aai-gateway
USE CASES
Import them once, and each shows up as a short summary until the moment it is used.
Search for a tool that fits the request, install it and use it in the same conversation — no restart.
Import once through the gateway; other agents on the machine see the same apps rather than needing their own configuration.
Read its configuration, change just the argument, environment variable or timeout that is wrong, and leave the rest untouched.
Disable the apps that agent should not use, and remove the ones nobody needs any more.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
aai:execExecute any AAI tool action. Read the guide first (call app:*, mcp:import, skill:import, or search:discover) — it contains the required schema and parameters.
disableAppDisable one app for the current agent only. If you do not know the app id, call listAllAaiApps first to find it.
enableAppEnable or re-enable an app for the current agent. When the user asks to enable, start, turn on, or use a specific app by name, call listAllAaiApps first to check if it is already imported before searching for new tools.
getAppConfigGet the full configuration of an imported app plus ready-to-share install snippets. Use this when: (1) the user wants to inspect or check an app's config, or (2) the user wants to share an app's install instructions with someone else (e.g. via chat or email). Secrets are masked as ${VAR_NAME} and required env vars are listed. Works for both MCP and skill apps. If you do not know the app id, call listAllAaiApps first.
listAllAaiAppsList imported apps (MCP servers and skills) for the current agent. This does not include built-in tools like search:discover, mcp:import, or skill:import — those are always available.
mcp:importImport an MCP server as a GLOBAL app (visible to all projects). For project-level MCP, use your agent's native config instead (e.g. .mcp.json, .cursor/mcp.json). Call this first to get the import guide. Never ask the user for API keys or secrets in chat.
removeAppRemove one AAI Gateway managed import from all agents. If you do not know the app id, call listAllAaiApps first to find it.
search:discoverFind and install new tools. Call this when: 1. The user explicitly asks to search for or install tools. 2. The user's request cannot be fulfilled by any currently available tool — proactively suggest and search for a suitable tool. Before searching, check listAllAaiApps first — the user may already have the app imported (possibly disabled).
skill:importImport a local skill as a GLOBAL app (visible to all projects). For project-level skills, use your agent's native skill directory instead (e.g. .claude/skills/). Call this first to get the import guide.
updateAppConfigUpdate an imported MCP server's configuration. Only provided fields are applied; all others are preserved — so the user can change a single parameter (e.g. add an arg, set a timeout) without re-entering the whole config. Use this instead of remove + re-import when modifying an existing MCP. Only MCP apps are supported (not skills). Env and headers, when provided, replace the existing values. After updating, call the app to verify it still works. If you do not know the app id, call listAllAaiApps first.
BEFORE YOU INSTALL
10 tools when we connected. Each imported Agent App adds its own app_<app-id> tool, so the count grows as you import apps. skill:create, named in an architecture doc, is not available.
npx on PATH
CONTEXT COST
Rated by the size of the 10 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
claude mcp add --scope user --transport stdio aai-gateway -- npx -y aai-gatewaycodex mcp add aai-gateway -- npx -y aai-gateway{
"mcp": {
"aai-gateway": {
"type": "local",
"command": [
"npx",
"-y",
"aai-gateway"
],
"enabled": true
}
}
}openclaw plugins install openclaw-aai-gateway-plugin