@thinkingai/ae-cli 6.0.22 → 6.0.27
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/dist/{auth-RDN6D5HU.js → auth-7TQRGLBC.js} +13 -15
- package/dist/auth-MEJ642P4.js +13 -0
- package/dist/chunk-2NDGFQHW.js +190 -0
- package/dist/{chunk-5FBLRSMU.js → chunk-7QQ4233A.js} +3 -3
- package/dist/{chunk-U6QPKCN3.js → chunk-AJTH7LT3.js} +10 -116
- package/dist/chunk-BXMXMUD7.js +254 -0
- package/dist/chunk-C4DH76LX.js +59 -0
- package/dist/chunk-GWZ5MYWE.js +209 -0
- package/dist/{chunk-E34XH4GW.js → chunk-KCA6BA5D.js} +8 -8
- package/dist/{chunk-XE2PI5DS.js → chunk-KGJQCYVC.js} +1 -1
- package/dist/chunk-LG5YT7P7.js +59 -0
- package/dist/{chunk-2W7HULUD.js → chunk-MDJGDI6K.js} +2 -2
- package/dist/{chunk-H52CSLJW.js → chunk-R77JT7XD.js} +53 -6
- package/dist/{chunk-WPXHCP4A.js → chunk-YCLVYFK7.js} +52 -9
- package/dist/{chunk-4EUZRJPO.js → chunk-YNQFYBDB.js} +102 -14
- package/dist/{chunk-YACCPUNQ.js → chunk-ZAOL36CG.js} +1 -1
- package/dist/cli-token-TVQRSE46.js +18 -0
- package/dist/{client-VTJMUZ4O.js → client-2643Z5AG.js} +3 -3
- package/dist/{config-2SDTLGOC.js → config-ZVPARN4R.js} +4 -9
- package/dist/index.js +27 -24
- package/dist/{metadata-JZ2OTWBK.js → metadata-IPSPQBX3.js} +56 -65
- package/dist/metadata-N5REJ7R7.js +411 -0
- package/dist/{model-ZYMRN4VS.js → model-T3KZJWLW.js} +2 -2
- package/dist/{raw-NGYHAL3F.js → raw-OHSUK42D.js} +4 -4
- package/dist/{sync-JVLX6TGW.js → sync-ULT5SECP.js} +3 -3
- package/dist/{te-agent-QPZTLHPH.js → te-agent-QLIVKRUN.js} +1146 -61
- package/dist/{te-analysis-WWX3Z6RP.js → te-analysis-2U5EPXQC.js} +1213 -341
- package/dist/te-analysis-QMZ2UH7F.js +2419 -0
- package/dist/{te-audience-UXGHUVBB.js → te-audience-PVMKQAFH.js} +5 -5
- package/dist/te-audience-XMRMVD2V.js +599 -0
- package/dist/{te-common-7XXH73MF.js → te-common-CFGQXTFV.js} +5 -5
- package/dist/te-common-SDB3O2QG.js +130 -0
- package/dist/{te-community-QKE67HR2.js → te-community-6A7LKYUH.js} +5 -5
- package/dist/te-community-GMWFGILT.js +687 -0
- package/dist/te-dataops-6LIPYNGH.js +1864 -0
- package/dist/{te-dataops-6W7NNYST.js → te-dataops-Z53CTG2U.js} +90 -68
- package/dist/{te-engage-NCFAQFX3.js → te-engage-AGREUOW7.js} +30 -15
- package/dist/te-engage-MIIUKY6M.js +1525 -0
- package/dist/{te-kb-K5BQYUCM.js → te-kb-KQJ53M3A.js} +4 -4
- package/dist/{te-meta-LJZBOSMO.js → te-meta-QLANJ4B4.js} +5 -5
- package/dist/te-meta-TOA6FWDE.js +595 -0
- package/dist/{te-team-DHK5R7MV.js → te-team-TQGMNHQQ.js} +5 -5
- package/package.json +3 -1
- package/skills/ae-agent/SKILL.md +158 -189
- package/skills/ae-agent/references/accept-skill-share.md +39 -0
- package/skills/ae-agent/references/add-attachment.md +57 -0
- package/skills/ae-agent/references/add-mcp.md +75 -0
- package/skills/ae-agent/references/add-model.md +70 -0
- package/skills/ae-agent/references/add-skill.md +71 -0
- package/skills/ae-agent/references/approve-skill.md +41 -0
- package/skills/ae-agent/references/attachment-stats.md +50 -0
- package/skills/ae-agent/references/auto-provision-mcp-credentials.md +57 -0
- package/skills/ae-agent/references/cancel-skill-submission.md +39 -0
- package/skills/ae-agent/references/copy-skill.md +53 -0
- package/skills/ae-agent/references/create-agent.md +71 -0
- package/skills/ae-agent/references/create-automation.md +99 -0
- package/skills/ae-agent/references/del-agent.md +38 -0
- package/skills/ae-agent/references/del-attachment.md +35 -0
- package/skills/ae-agent/references/del-mcp.md +35 -0
- package/skills/ae-agent/references/del-model.md +37 -0
- package/skills/ae-agent/references/del-skill-asset.md +41 -0
- package/skills/ae-agent/references/del-skill-reference.md +41 -0
- package/skills/ae-agent/references/del-skill-script.md +41 -0
- package/skills/ae-agent/references/del-skill.md +36 -0
- package/skills/ae-agent/references/edit-skill.md +64 -0
- package/skills/ae-agent/references/get-agent.md +37 -0
- package/skills/ae-agent/references/get-skill-content.md +36 -0
- package/skills/ae-agent/references/list-agents.md +40 -0
- package/skills/ae-agent/references/list-attachments.md +42 -0
- package/skills/ae-agent/references/list-automations.md +41 -0
- package/skills/ae-agent/references/list-mcp-credentials.md +65 -0
- package/skills/ae-agent/references/list-mcp-market.md +58 -0
- package/skills/ae-agent/references/list-mcps.md +37 -0
- package/skills/ae-agent/references/list-models.md +38 -0
- package/skills/ae-agent/references/list-skill-assets.md +35 -0
- package/skills/ae-agent/references/list-skill-market.md +59 -0
- package/skills/ae-agent/references/list-skill-references.md +36 -0
- package/skills/ae-agent/references/list-skill-scripts.md +35 -0
- package/skills/ae-agent/references/list-skill-shares.md +49 -0
- package/skills/ae-agent/references/list-skill-submissions.md +45 -0
- package/skills/ae-agent/references/list-skills.md +37 -0
- package/skills/ae-agent/references/mcp-auth-disconnect.md +50 -0
- package/skills/ae-agent/references/mcp-auth-start.md +61 -0
- package/skills/ae-agent/references/mcp-auth-status.md +56 -0
- package/skills/ae-agent/references/mcp-stats.md +68 -0
- package/skills/ae-agent/references/mcp-token.md +63 -0
- package/skills/ae-agent/references/mcp-tools.md +55 -0
- package/skills/ae-agent/references/read-skill-asset.md +51 -0
- package/skills/ae-agent/references/read-skill-reference.md +50 -0
- package/skills/ae-agent/references/read-skill-script.md +51 -0
- package/skills/ae-agent/references/reject-skill-share.md +37 -0
- package/skills/ae-agent/references/reject-skill.md +42 -0
- package/skills/ae-agent/references/rescan-skills.md +44 -0
- package/skills/ae-agent/references/set-mcp-credential.md +67 -0
- package/skills/ae-agent/references/set-mcp-meta.md +52 -0
- package/skills/ae-agent/references/set-skill-meta.md +51 -0
- package/skills/ae-agent/references/share-skill.md +50 -0
- package/skills/ae-agent/references/submit-skill.md +51 -0
- package/skills/ae-agent/references/test-model.md +61 -0
- package/skills/ae-agent/references/toggle-mcp.md +39 -0
- package/skills/ae-agent/references/toggle-model.md +37 -0
- package/skills/ae-agent/references/toggle-skill.md +37 -0
- package/skills/ae-agent/references/update-agent.md +71 -0
- package/skills/ae-agent/references/update-automation.md +83 -0
- package/skills/ae-agent/references/update-mcp.md +79 -0
- package/skills/ae-agent/references/update-model.md +77 -0
- package/skills/ae-agent/references/upload-skill-asset.md +49 -0
- package/skills/ae-agent/references/upload-skill-reference.md +51 -0
- package/skills/ae-agent/references/upload-skill-script.md +49 -0
- package/skills/ae-agent/references/upload-skill.md +89 -0
- package/skills/ae-analysis/SKILL.md +53 -25
- package/skills/ae-analysis/references/analysis_gateway_assets.md +129 -0
- package/skills/ae-analysis/references/artifact_download.md +17 -0
- package/skills/ae-analysis/references/bi_panel_copy.md +15 -0
- package/skills/ae-analysis/references/bi_panel_create.md +15 -0
- package/skills/ae-analysis/references/bi_panel_delete.md +15 -0
- package/skills/ae-analysis/references/bi_panel_get.md +18 -0
- package/skills/ae-analysis/references/bi_panel_list.md +15 -0
- package/skills/ae-analysis/references/bi_panel_page_data_export.md +25 -0
- package/skills/ae-analysis/references/bi_panel_page_data_run.md +15 -0
- package/skills/ae-analysis/references/bi_panel_share.md +15 -0
- package/skills/ae-analysis/references/bi_panel_update.md +15 -0
- package/skills/ae-analysis/references/dashboard_abnormal_get.md +15 -0
- package/skills/ae-analysis/references/dashboard_copy.md +17 -0
- package/skills/ae-analysis/references/dashboard_create.md +15 -0
- package/skills/ae-analysis/references/dashboard_daily_report_send.md +17 -0
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +17 -0
- package/skills/ae-analysis/references/dashboard_definition_export.md +33 -0
- package/skills/ae-analysis/references/dashboard_definition_import.md +15 -0
- package/skills/ae-analysis/references/dashboard_delete.md +15 -0
- package/skills/ae-analysis/references/dashboard_freeze.md +15 -0
- package/skills/ae-analysis/references/dashboard_get.md +15 -0
- package/skills/ae-analysis/references/dashboard_handover.md +15 -0
- package/skills/ae-analysis/references/dashboard_list.md +15 -0
- package/skills/ae-analysis/references/dashboard_report_data_export.md +25 -0
- package/skills/ae-analysis/references/dashboard_report_data_run.md +15 -0
- package/skills/ae-analysis/references/dashboard_share.md +15 -0
- package/skills/ae-analysis/references/dashboard_share_info.md +15 -0
- package/skills/ae-analysis/references/dashboard_task_status.md +15 -0
- package/skills/ae-analysis/references/dashboard_update.md +16 -0
- package/skills/ae-analysis/references/favorite_add.md +15 -0
- package/skills/ae-analysis/references/favorite_remove.md +15 -0
- package/skills/ae-analysis/references/folder_create.md +15 -0
- package/skills/ae-analysis/references/folder_delete.md +15 -0
- package/skills/ae-analysis/references/folder_members.md +15 -0
- package/skills/ae-analysis/references/folder_share.md +15 -0
- package/skills/ae-analysis/references/project_space_create.md +15 -0
- package/skills/ae-analysis/references/project_space_delete.md +15 -0
- package/skills/ae-analysis/references/project_space_get.md +18 -0
- package/skills/ae-analysis/references/project_space_list.md +15 -0
- package/skills/ae-analysis/references/project_space_members.md +15 -0
- package/skills/ae-analysis/references/project_space_share.md +15 -0
- package/skills/ae-analysis/references/public_link_create.md +15 -0
- package/skills/ae-analysis/references/public_link_delete.md +15 -0
- package/skills/ae-analysis/references/public_link_list.md +15 -0
- package/skills/ae-analysis/references/public_link_offline.md +15 -0
- package/skills/ae-analysis/references/public_link_update.md +15 -0
- package/skills/ae-analysis/references/query_cancel.md +15 -0
- package/skills/ae-analysis/references/run_inspect.md +22 -0
- package/skills/ae-dataops/references/dataops-flow-create.md +2 -2
- package/skills/ae-dataops/references/dataops-flow-monitor.md +3 -3
- package/skills/ae-dataops/references/dataops-integration.md +1 -0
- package/skills/ae-engage/references/flow-node-config-schema.md +32 -8
- package/skills/ae-engage/references/save-flow.md +65 -29
- package/skills/ae-engage/references/validate-flow-node-config.md +28 -10
- package/skills/ae-generate-tracking-plan/SKILL.md +9 -7
- package/skills/ae-metadata/references/metadata_data_table_csv_write.md +5 -3
- package/skills/ae-metadata/references/metadata_data_table_sql_write.md +5 -4
- package/skills/ae-metadata/references/metadata_property_dimension_table_create_and_bind_csv.md +5 -3
- package/dist/auth-I2G7OAU2.js +0 -19
- package/dist/chunk-FPE5LGVU.js +0 -105
- package/dist/cli-token-6AGEDJF4.js +0 -14
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# agent +list-skill-assets (List Skill Assets)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Skills / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List all files in a Skill's `assets` directory.
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/skills/[id]/assets`.
|
|
10
|
+
- Returns `{ items: [...] }` with file metadata (name, size, etc.).
|
|
11
|
+
|
|
12
|
+
## Mandatory Rules (MUST)
|
|
13
|
+
- `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
|
|
14
|
+
|
|
15
|
+
## Command
|
|
16
|
+
```bash
|
|
17
|
+
ae-cli agent +list-skill-assets --id <skill-cuid>
|
|
18
|
+
ae-cli agent +list-skill-assets --dry-run --id <skill-cuid>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
| Parameter | Required | Description |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| `--id` | Yes | Skill record ID (CUID) |
|
|
25
|
+
|
|
26
|
+
## Decision Rules
|
|
27
|
+
- Use `+list-skills` to confirm the Skill ID before listing assets.
|
|
28
|
+
- Read operation: no confirmation prompt needed.
|
|
29
|
+
- Assets include images, documents, and other supporting files for the Skill.
|
|
30
|
+
|
|
31
|
+
## Next Steps on Failure
|
|
32
|
+
- `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
|
|
33
|
+
|
|
34
|
+
## Recommended Chaining
|
|
35
|
+
- `+list-skills` → confirm `id` → `+list-skill-assets` → `+read-skill-asset` or `+upload-skill-asset`
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# agent +list-skill-market (List Skill Market)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Market (browse) / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List Skills from the market (only approved items; system / company / personal scopes).
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/skills/market`.
|
|
10
|
+
- Supports filtering by scope, category, search, and sort, with pagination.
|
|
11
|
+
- Use this to discover Skills before copying one with `+copy-skill`.
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- `--scope` must be one of the market scopes when provided (see below).
|
|
15
|
+
- `--category` must be one of the market category keys when provided (see below).
|
|
16
|
+
- `--sort` must be one of the sort options when provided (see below).
|
|
17
|
+
- Only approved Skills appear in the market; pending/rejected submissions are not listed.
|
|
18
|
+
|
|
19
|
+
## Market Scope
|
|
20
|
+
`all | system | company | custom` (`custom` = personal; `all` = system + company + personal)
|
|
21
|
+
|
|
22
|
+
## Market Category Keys
|
|
23
|
+
`ae_preset | dev_tool | search_tool | data_query | content_gen | enterprise | life | automation | other`
|
|
24
|
+
|
|
25
|
+
## Sort Options
|
|
26
|
+
`newest | calls | likes` (`calls` sorts Skills by download count)
|
|
27
|
+
|
|
28
|
+
## Command
|
|
29
|
+
```bash
|
|
30
|
+
ae-cli agent +list-skill-market
|
|
31
|
+
ae-cli agent +list-skill-market --search "code review" --sort newest --format table
|
|
32
|
+
ae-cli agent +list-skill-market --scope company --category dev_tool --sort calls
|
|
33
|
+
ae-cli agent +list-skill-market --limit 20 --offset 0
|
|
34
|
+
ae-cli agent +list-skill-market --dry-run --scope system
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Parameters
|
|
38
|
+
| Parameter | Required | Description |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `--scope` | No | Market scope (see above; default `all`) |
|
|
41
|
+
| `--category` | No | Category key (see above) |
|
|
42
|
+
| `--search` | No | Fuzzy search on name/displayName/description |
|
|
43
|
+
| `--sort` | No | Sort option (see above; default `newest`) |
|
|
44
|
+
| `--limit` | No | Page size (1–100, default 50) |
|
|
45
|
+
| `--offset` | No | Page offset (>=0, default 0) |
|
|
46
|
+
|
|
47
|
+
## Decision Rules
|
|
48
|
+
- When the user wants to browse available Skills, call this first.
|
|
49
|
+
- `--sort calls` finds the most-downloaded Skills; `--sort newest` finds the latest.
|
|
50
|
+
- Use `--format table` for a scannable overview.
|
|
51
|
+
- To bring a system/company Skill into your personal workspace, use `+copy-skill` (not `+add-skill`).
|
|
52
|
+
|
|
53
|
+
## Next Steps on Failure
|
|
54
|
+
- `--scope must be one of...`: use one of the market scope values.
|
|
55
|
+
- `--category must be one of...`: use one of the category keys.
|
|
56
|
+
- Empty result: widen filters (remove `--category` / `--scope`).
|
|
57
|
+
|
|
58
|
+
## Recommended Chaining
|
|
59
|
+
- `+list-skill-market` (browse) → `+copy-skill` (copy to personal) → `+list-skills` (verify)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# agent +list-skill-references (List Skill References)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Skills / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List all `.md` files in a Skill's `references` directory.
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/skills/[id]/references`.
|
|
10
|
+
- Returns `{ items: [...] }` with file metadata (name, size, etc.).
|
|
11
|
+
- Only `.md` files are listed (references directory is markdown-only).
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
|
|
15
|
+
|
|
16
|
+
## Command
|
|
17
|
+
```bash
|
|
18
|
+
ae-cli agent +list-skill-references --id <skill-cuid>
|
|
19
|
+
ae-cli agent +list-skill-references --dry-run --id <skill-cuid>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
| Parameter | Required | Description |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| `--id` | Yes | Skill record ID (CUID) |
|
|
26
|
+
|
|
27
|
+
## Decision Rules
|
|
28
|
+
- Use `+list-skills` to confirm the Skill ID before listing references.
|
|
29
|
+
- Read operation: no confirmation prompt needed.
|
|
30
|
+
- References are `.md` files that provide additional context for the Skill.
|
|
31
|
+
|
|
32
|
+
## Next Steps on Failure
|
|
33
|
+
- `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
|
|
34
|
+
|
|
35
|
+
## Recommended Chaining
|
|
36
|
+
- `+list-skills` → confirm `id` → `+list-skill-references` → `+read-skill-reference` or `+upload-skill-reference`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# agent +list-skill-scripts (List Skill Scripts)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Skills / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List all files in a Skill's `scripts` directory.
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/skills/[id]/scripts`.
|
|
10
|
+
- Returns `{ items: [...] }` with file metadata (name, size, etc.).
|
|
11
|
+
|
|
12
|
+
## Mandatory Rules (MUST)
|
|
13
|
+
- `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
|
|
14
|
+
|
|
15
|
+
## Command
|
|
16
|
+
```bash
|
|
17
|
+
ae-cli agent +list-skill-scripts --id <skill-cuid>
|
|
18
|
+
ae-cli agent +list-skill-scripts --dry-run --id <skill-cuid>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
| Parameter | Required | Description |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| `--id` | Yes | Skill record ID (CUID) |
|
|
25
|
+
|
|
26
|
+
## Decision Rules
|
|
27
|
+
- Use `+list-skills` to confirm the Skill ID before listing scripts.
|
|
28
|
+
- Read operation: no confirmation prompt needed.
|
|
29
|
+
- Scripts are executable files that support the Skill's functionality.
|
|
30
|
+
|
|
31
|
+
## Next Steps on Failure
|
|
32
|
+
- `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
|
|
33
|
+
|
|
34
|
+
## Recommended Chaining
|
|
35
|
+
- `+list-skills` → confirm `id` → `+list-skill-scripts` → `+read-skill-script` or `+upload-skill-script`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# agent +list-skill-shares (List Skill Shares)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Skill Share (peer-to-peer) / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List Skill shares (received by default; use `--direction sent` for outgoing).
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/skills/shares`.
|
|
10
|
+
- Sharing is Skill-only — MCP has no share flow.
|
|
11
|
+
- Use this to find a share ID before `+accept-skill-share` / `+reject-skill-share`.
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- `--direction` must be one of the share directions (see below) when provided.
|
|
15
|
+
- `--status` must be one of the share statuses (see below) when provided.
|
|
16
|
+
- Do not guess share IDs. Always call `+list-skill-shares` first when a share ID is needed.
|
|
17
|
+
|
|
18
|
+
## Share Directions
|
|
19
|
+
`received | sent`
|
|
20
|
+
|
|
21
|
+
## Share Statuses
|
|
22
|
+
`pending | accepted | rejected`
|
|
23
|
+
|
|
24
|
+
## Command
|
|
25
|
+
```bash
|
|
26
|
+
ae-cli agent +list-skill-shares
|
|
27
|
+
ae-cli agent +list-skill-shares --direction received --status pending --format table
|
|
28
|
+
ae-cli agent +list-skill-shares --direction sent
|
|
29
|
+
ae-cli agent +list-skill-shares --dry-run --direction received
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Parameters
|
|
33
|
+
| Parameter | Required | Description |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `--direction` | No | `received` (default) \| `sent` |
|
|
36
|
+
| `--status` | No | Filter by status (see above) |
|
|
37
|
+
|
|
38
|
+
## Decision Rules
|
|
39
|
+
- By default, lists shares the current user has **received**; use `--direction sent` to list outgoing shares.
|
|
40
|
+
- `--status pending` filters to shares awaiting action.
|
|
41
|
+
- Capture the share `id` for `+accept-skill-share` / `+reject-skill-share`.
|
|
42
|
+
|
|
43
|
+
## Next Steps on Failure
|
|
44
|
+
- `--direction must be one of...`: use `received` or `sent`.
|
|
45
|
+
- `--status must be one of...`: use one of the share statuses.
|
|
46
|
+
- Empty result: no shares match the filter.
|
|
47
|
+
|
|
48
|
+
## Recommended Chaining
|
|
49
|
+
- `+list-skill-shares --direction received --status pending` → confirm share `id` → `+accept-skill-share` / `+reject-skill-share`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# agent +list-skill-submissions (List Skill Submissions)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Skill Approval (company-scope publish) / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List Skill submissions (approvals).
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/skills/submissions`.
|
|
10
|
+
- Root sees all company submissions; non-root users see only their own.
|
|
11
|
+
- Use this to find a submission ID before `+cancel-skill-submission` / `+approve-skill` / `+reject-skill`.
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- `--status` must be one of the submission statuses (see below) when provided.
|
|
15
|
+
- Do not guess submission IDs. Always call `+list-skill-submissions` first when a submission ID is needed.
|
|
16
|
+
|
|
17
|
+
## Submission Statuses
|
|
18
|
+
`pending | approved | rejected | cancelled`
|
|
19
|
+
|
|
20
|
+
## Command
|
|
21
|
+
```bash
|
|
22
|
+
ae-cli agent +list-skill-submissions
|
|
23
|
+
ae-cli agent +list-skill-submissions --status pending --format table
|
|
24
|
+
ae-cli agent +list-skill-submissions --mine
|
|
25
|
+
ae-cli agent +list-skill-submissions --dry-run --status pending
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Parameters
|
|
29
|
+
| Parameter | Required | Description |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| `--status` | No | Filter by status (see above) |
|
|
32
|
+
| `--mine` | No | Only show submissions created by the current user (root only) |
|
|
33
|
+
|
|
34
|
+
## Decision Rules
|
|
35
|
+
- When the user wants to review pending submissions, use `--status pending`.
|
|
36
|
+
- Root users can see all company submissions; non-root users only see their own.
|
|
37
|
+
- `--mine` (root only) filters to the current user's own submissions.
|
|
38
|
+
- Capture the submission `id` for `+cancel-skill-submission` / `+approve-skill` / `+reject-skill`.
|
|
39
|
+
|
|
40
|
+
## Next Steps on Failure
|
|
41
|
+
- `--status must be one of...`: use one of the submission statuses.
|
|
42
|
+
- Empty result: no submissions match the filter.
|
|
43
|
+
|
|
44
|
+
## Recommended Chaining
|
|
45
|
+
- `+list-skill-submissions` → confirm submission `id` → `+cancel-skill-submission` (submitter/root) or `+approve-skill` / `+reject-skill` (root)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# agent +list-skills (List Skills)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Skills / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List Skills visible to the current user (personal / company / system scopes).
|
|
9
|
+
- Returns an array of Skill summaries; key fields include `id`, `name`, `description`, `scope`, `enabled`.
|
|
10
|
+
|
|
11
|
+
## Mandatory Rules (MUST)
|
|
12
|
+
- Do not guess Skill record IDs. Always call `+list-skills` first when an ID is needed.
|
|
13
|
+
|
|
14
|
+
## Command
|
|
15
|
+
```bash
|
|
16
|
+
ae-cli agent +list-skills
|
|
17
|
+
ae-cli agent +list-skills --scope personal --format table
|
|
18
|
+
ae-cli agent +list-skills --scope company
|
|
19
|
+
ae-cli agent +list-skills --dry-run
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
| Parameter | Required | Description |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| `--scope` | No | Filter by scope: `personal` \| `company` \| `system` |
|
|
26
|
+
|
|
27
|
+
## Decision Rules
|
|
28
|
+
- When the user needs a Skill ID for `+del-skill` / `+toggle-skill` / `+copy-skill` / `+submit-skill` / `+share-skill` / `+set-skill-meta`, call this first.
|
|
29
|
+
- Use `--format table` for a scannable overview of many skills.
|
|
30
|
+
|
|
31
|
+
## Next Steps on Failure
|
|
32
|
+
- Empty result: confirm account permissions and the active AE host.
|
|
33
|
+
- Auth error: run `ae-cli auth login`.
|
|
34
|
+
|
|
35
|
+
## Recommended Chaining
|
|
36
|
+
- `+list-skills` → confirm `id` → `+toggle-skill` / `+del-skill` / `+copy-skill` / `+submit-skill` / `+share-skill`
|
|
37
|
+
- `+list-skill-market` (browse) → `+add-skill` (create) → `+list-skills` (verify)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# agent +mcp-auth-disconnect (Disconnect MCP OAuth)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **MCP Servers / write**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Disconnect the OAuth authorization for an MCP server.
|
|
9
|
+
- Endpoint: `POST /api/sandbox/agent/mcp-servers/[id]/auth/disconnect`.
|
|
10
|
+
- Clears the stored token / credentialJson / identityJson and marks the server `enabled=false`.
|
|
11
|
+
- Use this to revoke a stale credential before re-authorizing, or to fully detach from an OAuth provider.
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
|
|
15
|
+
- After disconnect, the MCP server is disabled (`enabled=false`); re-enable with `+toggle-mcp --enabled true` after re-authorizing.
|
|
16
|
+
- Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
|
|
17
|
+
|
|
18
|
+
## Command
|
|
19
|
+
```bash
|
|
20
|
+
# Disconnect OAuth
|
|
21
|
+
ae-cli agent +mcp-auth-disconnect --id <mcp-cuid> --yes
|
|
22
|
+
|
|
23
|
+
# Dry-run to inspect the request
|
|
24
|
+
ae-cli agent +mcp-auth-disconnect --dry-run --id <mcp-cuid>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Parameters
|
|
28
|
+
| Parameter | Required | Description |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| `--id` | Yes | MCP server record ID (CUID) |
|
|
31
|
+
|
|
32
|
+
## Decision Rules
|
|
33
|
+
- If the user wants to revoke an MCP's OAuth credential and disable the server, use this command.
|
|
34
|
+
- After disconnecting, to use the MCP again: run `+mcp-auth-start` to re-authorize, then `+toggle-mcp --enabled true` (if not auto-enabled).
|
|
35
|
+
- Disconnect does NOT delete the MCP server record — it only clears the OAuth credential. To delete the record, use `+del-mcp`.
|
|
36
|
+
|
|
37
|
+
## Response Shape
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"ok": true,
|
|
41
|
+
"status": "disconnected",
|
|
42
|
+
"server": { "id": "clxxx", "name": "my-mcp", "displayName": "My MCP", "scope": "personal", "providerKey": "github" }
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Next Steps on Failure
|
|
47
|
+
- `404` / not found: re-run `+list-mcps` to verify the server ID.
|
|
48
|
+
|
|
49
|
+
## Recommended Chaining
|
|
50
|
+
- `+list-mcps` → confirm `id` → `+mcp-auth-disconnect` → `+mcp-auth-start` (re-authorize) → `+mcp-auth-status` (verify) → `+toggle-mcp --enabled true`
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# agent +mcp-auth-start (Start MCP OAuth)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **MCP Servers / write**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Start the OAuth authorization flow for an MCP server (CLI mode).
|
|
9
|
+
- Endpoint: `POST /api/sandbox/agent/mcp-servers/[id]/auth/start`.
|
|
10
|
+
- The sandbox endpoint always uses `cliMode=true`: the server derives the OAuth callback URL itself, so no `origin` is required.
|
|
11
|
+
- Returns an `authorizeUrl` — the user opens it in a browser, authorizes, then polls `+mcp-auth-status` until the status becomes `authenticated`.
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
|
|
15
|
+
- The MCP server must have `authMode=oauth2`; otherwise the server returns `oauth_not_required`.
|
|
16
|
+
- `--redirect-after` (when provided) must be same-origin as the service base URL; otherwise it is rejected.
|
|
17
|
+
- `--cli` defaults to `true` and is always true on the sandbox endpoint — it is for documentation/compat only.
|
|
18
|
+
- Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
|
|
19
|
+
|
|
20
|
+
## Command
|
|
21
|
+
```bash
|
|
22
|
+
# Start OAuth for an MCP server
|
|
23
|
+
ae-cli agent +mcp-auth-start --id <mcp-cuid> --yes
|
|
24
|
+
|
|
25
|
+
# With a redirect-after URL
|
|
26
|
+
ae-cli agent +mcp-auth-start --id <mcp-cuid> --redirect-after "https://app.example.com/mcp/done" --yes
|
|
27
|
+
|
|
28
|
+
# Dry-run to inspect the request
|
|
29
|
+
ae-cli agent +mcp-auth-start --dry-run --id <mcp-cuid>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Parameters
|
|
33
|
+
| Parameter | Required | Description |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `--id` | Yes | MCP server record ID (CUID) |
|
|
36
|
+
| `--redirect-after` | No | URL to redirect to after OAuth completes (must be same-origin as the service base URL) |
|
|
37
|
+
| `--cli` | No | CLI mode (always `true` on the sandbox endpoint; server derives the callback URL) |
|
|
38
|
+
|
|
39
|
+
## Decision Rules
|
|
40
|
+
- If the user needs to authorize an OAuth-based MCP server, use this command.
|
|
41
|
+
- The command prints the `authorizeUrl` to stderr (when a TTY is detected) with guidance to open it in a browser and then poll `+mcp-auth-status`.
|
|
42
|
+
- The response also includes `expiresAt` (the auth session expiry, ~10 minutes) and `redirectUri` (the server-derived callback).
|
|
43
|
+
- After the user completes authorization in the browser, poll `+mcp-auth-status --id <id>` until `status` is `authenticated`.
|
|
44
|
+
|
|
45
|
+
## Response Shape
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"authorizeUrl": "https://provider.com/oauth/authorize?...",
|
|
49
|
+
"expiresAt": "2026-07-06T12:10:00.000Z",
|
|
50
|
+
"redirectUri": "https://te-claude.example.com/agent/api/mcp-auth/callback",
|
|
51
|
+
"server": { "id": "clxxx", "name": "my-mcp", "displayName": "My MCP", "scope": "personal", "providerKey": "github" }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Next Steps on Failure
|
|
56
|
+
- `404` / not found: re-run `+list-mcps` to verify the server ID.
|
|
57
|
+
- `400` oauth_not_required: the MCP server does not use OAuth; check `--auth-mode`.
|
|
58
|
+
- `400` origin_required / origin_protocol_unsupported / origin_illegal: check the `--redirect-after` URL.
|
|
59
|
+
|
|
60
|
+
## Recommended Chaining
|
|
61
|
+
- `+list-mcps` → confirm `id` → `+mcp-auth-start` → (browser authorize) → `+mcp-auth-status` (poll) → `+mcp-tools` (verify)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# agent +mcp-auth-status (Query MCP OAuth Status)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **MCP Servers / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Query the OAuth authorization status of an MCP server.
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/mcp-servers/[id]/auth/status`.
|
|
10
|
+
- Used as the polling step after `+mcp-auth-start`: the user authorizes in a browser, then polls this command until `status` becomes `authenticated`.
|
|
11
|
+
- Internally attempts an auto-refresh of soon-to-expire tokens before reporting status.
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
|
|
15
|
+
|
|
16
|
+
## Command
|
|
17
|
+
```bash
|
|
18
|
+
# Poll OAuth status
|
|
19
|
+
ae-cli agent +mcp-auth-status --id <mcp-cuid>
|
|
20
|
+
|
|
21
|
+
# Dry-run to inspect the request
|
|
22
|
+
ae-cli agent +mcp-auth-status --dry-run --id <mcp-cuid>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Parameters
|
|
26
|
+
| Parameter | Required | Description |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| `--id` | Yes | MCP server record ID (CUID) |
|
|
29
|
+
|
|
30
|
+
## Decision Rules
|
|
31
|
+
- Poll this command after `+mcp-auth-start` until `status` is `authenticated`.
|
|
32
|
+
- The `status` field can be:
|
|
33
|
+
- `not_required` — the MCP does not use OAuth (authMode ≠ oauth2).
|
|
34
|
+
- `needs_auth` — no credential exists yet; run `+mcp-auth-start`.
|
|
35
|
+
- `reauth_required` — the credential has expired; run `+mcp-auth-start` to re-authorize.
|
|
36
|
+
- `disabled` — the MCP server is disabled; run `+toggle-mcp --enabled true`.
|
|
37
|
+
- `authenticated` — the credential is valid and ready to use.
|
|
38
|
+
- `authenticated` is `true` only when `status` is `authenticated`.
|
|
39
|
+
- `expiresAt` is the credential expiry (ISO string) or `null` if not applicable.
|
|
40
|
+
|
|
41
|
+
## Response Shape
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"status": "authenticated",
|
|
45
|
+
"authenticated": true,
|
|
46
|
+
"expiresAt": "2026-07-06T13:00:00.000Z",
|
|
47
|
+
"updatedAt": "2026-07-06T12:30:00.000Z",
|
|
48
|
+
"reason": "oauth_not_required"
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Next Steps on Failure
|
|
53
|
+
- `404` / not found: re-run `+list-mcps` to verify the server ID.
|
|
54
|
+
|
|
55
|
+
## Recommended Chaining
|
|
56
|
+
- `+mcp-auth-start` → (browser authorize) → `+mcp-auth-status` (poll until `authenticated`) → `+mcp-tools` (verify tools are accessible)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# agent +mcp-stats (MCP Call Statistics)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **MCP Servers / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Show MCP tool call statistics for the current user over the last N days.
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/mcp-servers/stats`.
|
|
10
|
+
- Returns aggregations: total calls, by-server, daily, and daily-by-server.
|
|
11
|
+
|
|
12
|
+
## Mandatory Rules (MUST)
|
|
13
|
+
- `--days` must be an integer between 1 and 365 when provided; defaults to 30.
|
|
14
|
+
- Statistics are scoped to the authenticated user's own MCP usage.
|
|
15
|
+
|
|
16
|
+
## Command
|
|
17
|
+
```bash
|
|
18
|
+
# Default: last 30 days
|
|
19
|
+
ae-cli agent +mcp-stats
|
|
20
|
+
|
|
21
|
+
# Last 7 days
|
|
22
|
+
ae-cli agent +mcp-stats --days 7
|
|
23
|
+
|
|
24
|
+
# Dry-run to inspect the request
|
|
25
|
+
ae-cli agent +mcp-stats --dry-run --days 7
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Parameters
|
|
29
|
+
| Parameter | Required | Description |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| `--days` | No | Lookback window in days (1-365, default 30) |
|
|
32
|
+
|
|
33
|
+
## Response Shape
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"days": 30,
|
|
37
|
+
"totalCalls": 128,
|
|
38
|
+
"byServer": { "clxxx-server-a": 80, "clxxx-server-b": 48 },
|
|
39
|
+
"daily": [
|
|
40
|
+
{ "date": "2026-06-07", "calls": 5 },
|
|
41
|
+
{ "date": "2026-06-08", "calls": 0 }
|
|
42
|
+
],
|
|
43
|
+
"dailyByServer": {
|
|
44
|
+
"clxxx-server-a": { "2026-06-07": 3, "2026-06-08": 0 }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
| Field | Description |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `days` | The lookback window used for this query |
|
|
52
|
+
| `totalCalls` | Sum of all MCP tool calls over the window |
|
|
53
|
+
| `byServer` | Map of `mcpServerId` → call count |
|
|
54
|
+
| `daily` | Array of `{ date, calls }` for each day in the window (oldest → newest) |
|
|
55
|
+
| `dailyByServer` | Map of `mcpServerId` → `{ date: calls }` |
|
|
56
|
+
|
|
57
|
+
## Decision Rules
|
|
58
|
+
- Use `--days 7` for a weekly review, `--days 30` (default) for a monthly review.
|
|
59
|
+
- `daily` always contains one entry per day in the window (zero-filled), so it is safe to chart directly.
|
|
60
|
+
- `byServer` only contains servers with at least one call in the window; cross-reference IDs with `+list-mcps` to resolve names.
|
|
61
|
+
|
|
62
|
+
## Next Steps on Failure
|
|
63
|
+
- `--days must be an integer between 1 and 365`: pass an integer in range.
|
|
64
|
+
- `500` 获取 MCP 调用统计失败: an internal aggregation error — retry, then contact the platform maintainer if it persists.
|
|
65
|
+
|
|
66
|
+
## Recommended Chaining
|
|
67
|
+
- `+mcp-stats` (which servers are active) → `+list-mcps` (resolve server IDs to names)
|
|
68
|
+
- `+mcp-stats` (low/no calls) → `+mcp-tools` (verify the server exposes tools) → `+mcp-auth-start` if `needs_auth`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# agent +mcp-token (Get MCP Token)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **MCP Credentials / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Get the plaintext MCP token for `useMcpToken=true` system MCP servers.
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/mcp-credentials/mcp-token`.
|
|
10
|
+
- All such servers share one token; the server decrypts and returns it.
|
|
11
|
+
- This is a product behavior (consistent with the web UI) — the token is returned in plaintext so it can be used as a Bearer credential for MCP API calls.
|
|
12
|
+
|
|
13
|
+
## Mandatory Rules (MUST)
|
|
14
|
+
- No flags required.
|
|
15
|
+
- The returned token is **plaintext** — handle it as a secret:
|
|
16
|
+
- Do NOT write it to shell history (avoid `export MCP_TOKEN=$(ae-cli agent +mcp-token)` without precautions).
|
|
17
|
+
- Do NOT log it or commit it to version control.
|
|
18
|
+
- Prefer piping directly to the consuming process or a secure store.
|
|
19
|
+
- The command prints a security warning to stderr (when a TTY is detected) reminding the user to safeguard the token.
|
|
20
|
+
|
|
21
|
+
## Command
|
|
22
|
+
```bash
|
|
23
|
+
# Get the MCP token (prints to stdout as JSON)
|
|
24
|
+
ae-cli agent +mcp-token
|
|
25
|
+
|
|
26
|
+
# Pipe to a file (avoid shell history)
|
|
27
|
+
ae-cli agent +mcp-token --format json > /dev/shm/mcp-token.json 2>/dev/null
|
|
28
|
+
|
|
29
|
+
# Dry-run to inspect the request
|
|
30
|
+
ae-cli agent +mcp-token --dry-run
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Parameters
|
|
34
|
+
| Parameter | Required | Description |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| (none) | — | — |
|
|
37
|
+
|
|
38
|
+
## Decision Rules
|
|
39
|
+
- If the user needs the shared MCP token to call MCP-enabled APIs, use this command.
|
|
40
|
+
- The token is shared across all `useMcpToken=true` system MCP servers — a single call returns it.
|
|
41
|
+
- If `token` is `null`, no credential has been provisioned yet — run `+auto-provision-mcp-credentials` first.
|
|
42
|
+
- Prefer `+list-mcp-credentials` to check credential status without exposing the plaintext token.
|
|
43
|
+
|
|
44
|
+
## Response Shape
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"token": "mcp-xxxxxxxxxxxxxxxx"
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
When no token is provisioned:
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"token": null
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Next Steps on Failure
|
|
59
|
+
- `401` / auth expired: run `ae-cli auth login`.
|
|
60
|
+
- `token: null`: run `+auto-provision-mcp-credentials` to provision the token first.
|
|
61
|
+
|
|
62
|
+
## Recommended Chaining
|
|
63
|
+
- `+auto-provision-mcp-credentials` (provision) → `+mcp-token` (retrieve) → use as `Authorization: bearer <token>` for MCP API calls
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# agent +mcp-tools (List MCP Server Tools)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **MCP Servers / read**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List the tools exposed by an MCP server (name, description, input schema).
|
|
9
|
+
- Endpoint: `GET /api/sandbox/agent/mcp-servers/[id]/tools`.
|
|
10
|
+
- Includes OAuth auto-refresh: if the credential is about to expire, the server attempts a refresh before listing tools.
|
|
11
|
+
|
|
12
|
+
## Mandatory Rules (MUST)
|
|
13
|
+
- `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
|
|
14
|
+
- The MCP server must be enabled and properly configured; otherwise the server returns a structured error.
|
|
15
|
+
|
|
16
|
+
## Command
|
|
17
|
+
```bash
|
|
18
|
+
ae-cli agent +mcp-tools --id <mcp-cuid>
|
|
19
|
+
|
|
20
|
+
# Dry-run to inspect the request
|
|
21
|
+
ae-cli agent +mcp-tools --dry-run --id <mcp-cuid>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Parameters
|
|
25
|
+
| Parameter | Required | Description |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| `--id` | Yes | MCP server record ID (CUID) |
|
|
28
|
+
|
|
29
|
+
## Decision Rules
|
|
30
|
+
- If the user wants to see what tools an MCP server provides, use this command.
|
|
31
|
+
- The response includes `server` (id, name, transport) and `tools` (array of `{name, description, inputSchema}`).
|
|
32
|
+
- If the server returns `needs_auth` (400), run `+mcp-auth-start` to start OAuth, then retry.
|
|
33
|
+
- If the server returns `reauth_required` (428), the credential has expired — run `+mcp-auth-start` to re-authorize.
|
|
34
|
+
- If the server returns `disabled` (400), enable the MCP first with `+toggle-mcp --enabled true`.
|
|
35
|
+
|
|
36
|
+
## Response Shape
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"server": { "id": "clxxx", "name": "my-mcp", "transport": "http" },
|
|
40
|
+
"tools": [
|
|
41
|
+
{ "name": "search", "description": "Search the web", "inputSchema": { "type": "object", "properties": {} } }
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Next Steps on Failure
|
|
47
|
+
- `404` / not found: re-run `+list-mcps` to verify the server ID.
|
|
48
|
+
- `400` needs_auth: run `+mcp-auth-start --id <id>`, then poll `+mcp-auth-status`.
|
|
49
|
+
- `428` reauth_required: credential expired — run `+mcp-auth-start` to re-authorize.
|
|
50
|
+
- `400` disabled: run `+toggle-mcp --id <id> --enabled true`.
|
|
51
|
+
- `502` connection_failed: verify the MCP server URL is reachable.
|
|
52
|
+
|
|
53
|
+
## Recommended Chaining
|
|
54
|
+
- `+list-mcps` → confirm `id` → `+mcp-tools`
|
|
55
|
+
- `+mcp-tools` (fails needs_auth) → `+mcp-auth-start` → `+mcp-auth-status` → `+mcp-tools`
|