aai-gateway 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -4
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server-Cz0gw4Tf.js +4589 -0
- package/dist/server-Cz0gw4Tf.js.map +1 -0
- package/package.json +4 -4
- package/dist/server-TmWCZmyU.js +0 -14678
- package/dist/server-TmWCZmyU.js.map +0 -1
package/README.md
CHANGED
|
@@ -14,7 +14,6 @@ Why this matters:
|
|
|
14
14
|
**App-level exposure, not tool-level.** Tools are grouped into apps and only the app interface is visible initially. Users interact through `app:<id>` guides instead of seeing dozens of individual tools.
|
|
15
15
|
|
|
16
16
|
**Two app interfaces, user chooses:**
|
|
17
|
-
|
|
18
17
|
- `summary` — a natural language description; good for automatic triggering
|
|
19
18
|
- `keywords` — a compact keyword set; further reduces context overhead when users reference tools explicitly
|
|
20
19
|
|
|
@@ -73,12 +72,55 @@ Once connected, your AI tool can use AAI Gateway tools such as:
|
|
|
73
72
|
|
|
74
73
|
- `remote:discover`
|
|
75
74
|
- `aai:exec`
|
|
75
|
+
- `import:search`
|
|
76
76
|
- `mcp:import`
|
|
77
77
|
- `skill:import`
|
|
78
78
|
- `mcp:refresh`
|
|
79
79
|
- `import:config`
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
`import:search` also has a compatibility alias: `ability_search`.
|
|
82
|
+
|
|
83
|
+
### 2. Search For MCP Servers Or Skills
|
|
84
|
+
|
|
85
|
+
If you do not already know which MCP server or skill to install, ask the AI tool to call `import:search` first.
|
|
86
|
+
|
|
87
|
+
This tool does not perform the web search for you. Instead, it:
|
|
88
|
+
|
|
89
|
+
- turns the user request into search keywords
|
|
90
|
+
- recommends safer mainstream sources to search first
|
|
91
|
+
- normalizes the agent's gathered results into a shortlist
|
|
92
|
+
- gives each shortlist item a temporary id for user confirmation
|
|
93
|
+
- routes confirmed items into existing `mcp:import` or `skill:import` flows
|
|
94
|
+
|
|
95
|
+
Recommended source order:
|
|
96
|
+
|
|
97
|
+
- Official catalogs first:
|
|
98
|
+
- `modelcontextprotocol/registry`
|
|
99
|
+
- `modelcontextprotocol/servers`
|
|
100
|
+
- `openai/skills`
|
|
101
|
+
- Community-curated GitHub lists second:
|
|
102
|
+
- `punkpeye/awesome-mcp-servers`
|
|
103
|
+
- `ComposioHQ/awesome-claude-skills`
|
|
104
|
+
- Higher-scrutiny sources:
|
|
105
|
+
- open marketplaces such as ClawHub
|
|
106
|
+
|
|
107
|
+
Important:
|
|
108
|
+
|
|
109
|
+
- The recommended list is a preferred starting point, not a hard allowlist.
|
|
110
|
+
- Do not casually suggest tools from random small websites.
|
|
111
|
+
- Outside the preferred list, inspect maintainer identity, repository activity, README quality, license visibility, and whether the source actually exposes an importable MCP config or real skill root.
|
|
112
|
+
- Open marketplaces such as ClawHub should be treated with extra caution. They are not default-trust sources.
|
|
113
|
+
|
|
114
|
+
If the AI tool does not already have a retrieval tool, it can first import a fetch MCP through AAI Gateway, for example:
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"command": "npx",
|
|
119
|
+
"args": ["-y", "mcp-fetch-server"]
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### 3. Import An MCP Server
|
|
82
124
|
|
|
83
125
|
The main workflow is: copy a mainstream MCP config snippet into your AI tool and ask it to import that server through AAI Gateway.
|
|
84
126
|
|
|
@@ -137,7 +179,7 @@ Important:
|
|
|
137
179
|
- After restart, the imported app will appear as `app:<id>`.
|
|
138
180
|
- Use `aai:exec` to actually run the imported app’s operations.
|
|
139
181
|
|
|
140
|
-
###
|
|
182
|
+
### 4. Import A Skill
|
|
141
183
|
|
|
142
184
|
Skills are imported through the AI tool as well.
|
|
143
185
|
|
|
@@ -169,7 +211,7 @@ Just like MCP import, skill import returns:
|
|
|
169
211
|
|
|
170
212
|
Then restart your AI tool before using the imported skill.
|
|
171
213
|
|
|
172
|
-
###
|
|
214
|
+
### 5. Supported ACP Agents
|
|
173
215
|
|
|
174
216
|
AAI Gateway can also control app-like agents through ACP.
|
|
175
217
|
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as logger, D as createDesktopDiscovery, O as getManagedAppDir, T as AAI_GATEWAY_VERSION, _ as isMcpAccess, a as buildMcpImportConfig, b as getMcpExecutor, c as importSkill, d as upsertSkillRegistryEntry, f as upsertMcpRegistryEntry, i as IMPORT_LIMITS, l as normalizeExposureInput, m as createSecureStorage, n as createGatewayServer, o as buildSkillImportSource, r as EXPOSURE_LIMITS, s as importMcpServer, u as validateImportHeaders, v as isSkillAccess } from "./server-
|
|
2
|
+
import { A as logger, D as createDesktopDiscovery, O as getManagedAppDir, T as AAI_GATEWAY_VERSION, _ as isMcpAccess, a as buildMcpImportConfig, b as getMcpExecutor, c as importSkill, d as upsertSkillRegistryEntry, f as upsertMcpRegistryEntry, i as IMPORT_LIMITS, l as normalizeExposureInput, m as createSecureStorage, n as createGatewayServer, o as buildSkillImportSource, r as EXPOSURE_LIMITS, s as importMcpServer, u as validateImportHeaders, v as isSkillAccess } from "./server-Cz0gw4Tf.js";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
//#region src/cli.ts
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as logger, C as AcpExecutor, D as createDesktopDiscovery, E as fetchWebDescriptor, M as ConsentManager, N as createConsentDialog, P as AaiError, S as getCliExecutor, T as AAI_GATEWAY_VERSION, b as getMcpExecutor, g as getSkillExecutor, h as SkillExecutor, j as parseAaiJson, k as SimpleCache, m as createSecureStorage, n as createGatewayServer, p as FileRegistry, t as AaiGatewayServer, w as getAcpExecutor, x as CliExecutor, y as McpExecutor } from "./server-
|
|
1
|
+
import { A as logger, C as AcpExecutor, D as createDesktopDiscovery, E as fetchWebDescriptor, M as ConsentManager, N as createConsentDialog, P as AaiError, S as getCliExecutor, T as AAI_GATEWAY_VERSION, b as getMcpExecutor, g as getSkillExecutor, h as SkillExecutor, j as parseAaiJson, k as SimpleCache, m as createSecureStorage, n as createGatewayServer, p as FileRegistry, t as AaiGatewayServer, w as getAcpExecutor, x as CliExecutor, y as McpExecutor } from "./server-Cz0gw4Tf.js";
|
|
2
2
|
//#region src/executors/registry.ts
|
|
3
3
|
/**
|
|
4
4
|
* Executor Registry
|