aui-agent-builder 0.3.135 → 0.3.137
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 +5 -0
- package/dist/api-client/apollo-client.d.ts +102 -0
- package/dist/api-client/apollo-client.d.ts.map +1 -1
- package/dist/api-client/apollo-client.js +27 -0
- package/dist/api-client/apollo-client.js.map +1 -1
- package/dist/commands/apollo.d.ts +24 -0
- package/dist/commands/apollo.d.ts.map +1 -1
- package/dist/commands/apollo.js +30 -0
- package/dist/commands/apollo.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +188 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/integration-mcp-test.d.ts +60 -0
- package/dist/commands/integration-mcp-test.d.ts.map +1 -0
- package/dist/commands/integration-mcp-test.js +862 -0
- package/dist/commands/integration-mcp-test.js.map +1 -0
- package/dist/commands/integration.d.ts +10 -0
- package/dist/commands/integration.d.ts.map +1 -1
- package/dist/commands/integration.js +259 -72
- package/dist/commands/integration.js.map +1 -1
- package/dist/index.js +48 -2
- package/dist/index.js.map +1 -1
- package/dist/services/integration.service.d.ts +86 -13
- package/dist/services/integration.service.d.ts.map +1 -1
- package/dist/services/integration.service.js +152 -74
- package/dist/services/integration.service.js.map +1 -1
- package/dist/services/list-agents.service.d.ts +10 -0
- package/dist/services/list-agents.service.d.ts.map +1 -1
- package/dist/services/list-agents.service.js +15 -20
- package/dist/services/list-agents.service.js.map +1 -1
- package/package.json +2 -2
package/dist/commands/init.js
CHANGED
|
@@ -301,6 +301,7 @@ Edit these files to define your agent's behavior, then push to the backend.
|
|
|
301
301
|
| \`aui push\` | Upload changes to the backend |
|
|
302
302
|
| \`aui status\` | Show session and project summary |
|
|
303
303
|
| \`aui diff\` | Compare changes |
|
|
304
|
+
| \`aui rag\` | Manage RAG knowledge bases and the files/URLs indexed into them |
|
|
304
305
|
| \`aui apollo create-thread\` | Start a conversation thread to test the agent |
|
|
305
306
|
| \`aui apollo send-message\` | Send a message and get the agent's reply (validates + uses your local files by default) |
|
|
306
307
|
| \`aui apollo rerun\` | Re-run an interaction with edited text |
|
|
@@ -310,6 +311,7 @@ Edit these files to define your agent's behavior, then push to the backend.
|
|
|
310
311
|
| \`aui integration discover\` | List the tools a manual MCP server exposes |
|
|
311
312
|
| \`aui integration create\` | Create an MCP integration (manual server or native Composio toolkit) |
|
|
312
313
|
| \`aui integration test\` | Live-call an integration endpoint and preview the mapped entities |
|
|
314
|
+
| \`aui integration mcp-test\` | Execute an MCP tool (COMPOSIO or DIRECT) and return the raw tool response (+ mapped entities when \`bundle_mapping\` is sent) |
|
|
313
315
|
|
|
314
316
|
> **Discovering commands:** run \`aui --help\` for the full command list, and
|
|
315
317
|
> \`aui <command> --help\` for a command's flags (e.g. \`aui apollo --help\` lists the
|
|
@@ -320,11 +322,41 @@ Edit these files to define your agent's behavior, then push to the backend.
|
|
|
320
322
|
> The discovery/test commands (\`integration toolkits\`/\`tools\`/\`discover\`/\`test\`, \`apollo trace\`)
|
|
321
323
|
> are built to be run non-interactively this way. When in doubt, check \`aui <command> --help\`.
|
|
322
324
|
|
|
325
|
+
> **Headless vs. interactive (for coding agents):** commands that receive an explicit
|
|
326
|
+
> target via flags run **non-interactively** and are \`--json\`-friendly — e.g. \`status\`,
|
|
327
|
+
> \`diff\`, \`validate\`, \`push\`, \`pull\`, \`import-agent <id>\`, \`version list\`, every
|
|
328
|
+
> \`integration tools\` / \`toolkits\` / \`discover\` / \`test\`, every \`apollo\` command, and
|
|
329
|
+
> \`rag --json\` / \`rag --status\`. Commands invoked **without** a target fall back to
|
|
330
|
+
> **interactive prompts that need a TTY** and will hang in a script (\`login\`, \`accounts\`,
|
|
331
|
+
> \`agents\` menu, \`version\` menu, \`rag\` upload / export / import). When automating, always
|
|
332
|
+
> pass the identifying flags (and \`--json\`) so nothing blocks on a prompt.
|
|
333
|
+
|
|
323
334
|
> **Cross-org agents:** if this agent lives in a different organization than the one you
|
|
324
335
|
> logged into, run \`aui sync-session\` first. It re-scopes your session (org / account /
|
|
325
336
|
> token) to match \`.auirc\` so \`push\`, \`pull\`, and the \`apollo\` commands don't 403/404.
|
|
326
337
|
> It's a no-op when your session already matches, so it's safe to run any time.
|
|
327
338
|
|
|
339
|
+
> [!IMPORTANT]
|
|
340
|
+
> **\`aui import-agent\` defaults to the *active* version.** With no \`--version\` (or \`--tag\`),
|
|
341
|
+
> you silently get whatever is **live** in the backend — not the version you think you're
|
|
342
|
+
> editing — and the active version can change out from under you (someone activates a new
|
|
343
|
+
> one, a rollback happens, etc.). **Always pass \`--version <id>\` (or \`--tag <vX.Y>\`) to pin
|
|
344
|
+
> exactly what you import, then fingerprint-check the result** before editing — confirm you
|
|
345
|
+
> got the right version with a cheap, deterministic spot-check (e.g. the parameter count,
|
|
346
|
+
> the number of tools / rules, or the version tag in the import summary). If the fingerprint
|
|
347
|
+
> doesn't match what you expect, you imported the wrong version — re-import with the correct
|
|
348
|
+
> \`--version\`.
|
|
349
|
+
|
|
350
|
+
> [!IMPORTANT]
|
|
351
|
+
> **Never import one agent inside another agent's project.** Each imported agent is its own
|
|
352
|
+
> self-contained project (its own \`.auirc\`, \`.aui.json\` files, schema, and git baseline).
|
|
353
|
+
> Running \`aui import-agent\` from **inside** an existing agent folder nests projects and
|
|
354
|
+
> corrupts which agent the CLI targets — \`validate\` / \`push\` / \`pull\` / \`apollo\` will act on
|
|
355
|
+
> the wrong \`.auirc\`, and the nested files can get swept into the parent's push baseline.
|
|
356
|
+
> Always run \`aui import-agent\` from a **neutral parent directory** (it creates a new
|
|
357
|
+
> subfolder), or pass \`--dir <path>\` pointing somewhere **outside** any existing agent
|
|
358
|
+
> project. One folder = one agent.
|
|
359
|
+
|
|
328
360
|
## Environment
|
|
329
361
|
|
|
330
362
|
The CLI supports switching environments:
|
|
@@ -409,16 +441,149 @@ aui integration create --full --name "Gmail" --toolkit gmail --all-tools
|
|
|
409
441
|
|
|
410
442
|
# Test an integration endpoint (always JSON)
|
|
411
443
|
aui integration test --params '<json>' # returns test_data + parsed_test_response (+ mapped_entities)
|
|
444
|
+
|
|
445
|
+
# Execute an MCP tool directly — raw response (COMPOSIO example)
|
|
446
|
+
aui integration mcp-test --type composio --toolkit gmail --tool GMAIL_SEND_EMAIL
|
|
447
|
+
|
|
448
|
+
# Non-interactive with arguments and bundle_mapping
|
|
449
|
+
aui integration mcp-test --type composio --toolkit gmail --tool GMAIL_SEND_EMAIL \\
|
|
450
|
+
--arguments '{"to":"user@example.com","subject":"Hi","body":"Test"}' \\
|
|
451
|
+
--parameters '[{"code":"EMAIL_ID","type":"string","description":"Sent email id"}]' \\
|
|
452
|
+
--scope-entities '[]' \\
|
|
453
|
+
--response-mapping '{"parameters":[{"mappings":[{"param":"EMAIL_ID"}]}],"entities":[],"resources":[]}'
|
|
454
|
+
|
|
455
|
+
# Direct MCP server (raw, no mapping)
|
|
456
|
+
aui integration mcp-test --type direct --url <mcp-url> --tool <tool-name> --raw
|
|
412
457
|
\`\`\`
|
|
413
458
|
|
|
414
459
|
- \`create\` picks manual vs native from the flags: \`--url\` = manual MCP server,
|
|
415
460
|
\`--toolkit <slug>\` = native Composio. Native auth may open a browser for OAuth.
|
|
416
461
|
- \`integration test\` makes the real HTTP call and previews the entities the runtime
|
|
417
462
|
would extract — use it to verify an integration before \`aui push\`.
|
|
463
|
+
- \`integration mcp-test\` executes an MCP tool directly (Composio or your own server).
|
|
464
|
+
Interactive mode prompts for each argument field from the tool's schema.
|
|
465
|
+
Pass \`--bundle-mapping\` / \`--parameters\` / \`--scope-entities\` / \`--response-mapping\`
|
|
466
|
+
to preview how the agent runtime would map the response to your parameters.
|
|
418
467
|
|
|
419
468
|
> Run \`aui integration <command> --help\` for the full flags. For how to choose and
|
|
420
469
|
> wire up integrations as part of building the agent, follow your agent-building skill.
|
|
421
470
|
|
|
471
|
+
### \`aui integration test\` — verify an endpoint (the curl replacement)
|
|
472
|
+
|
|
473
|
+
\`aui integration test\` makes the **real** HTTP call described by an integration's
|
|
474
|
+
config and returns the result. It is the programmatic replacement for hand-running
|
|
475
|
+
\`curl\` against every endpoint while authoring an integration. It is **always JSON**
|
|
476
|
+
(the \`--json\` flag is implied) and **fully non-interactive** — every input is a flag,
|
|
477
|
+
so it is safe to run in scripts / sandboxes.
|
|
478
|
+
|
|
479
|
+
**What comes back** — one JSON envelope under \`data\` with up to three payloads:
|
|
480
|
+
|
|
481
|
+
- \`test_data\` — the **raw** upstream response, exactly as returned.
|
|
482
|
+
- \`parsed_test_response\` — \`test_data\` after your \`response_parser\` JS snippet runs
|
|
483
|
+
(the snippet receives the response as \`response\`).
|
|
484
|
+
- \`mapped_entities\` — preview of the agent entities the runtime would extract from
|
|
485
|
+
this response. **Returned only when \`bundle_mapping\` is sent** (the default, non-\`--raw\` path); it is \`null\` otherwise.
|
|
486
|
+
|
|
487
|
+
Envelope shape: \`{ "success": true, "data": { url, method, raw, bundle_mapping_sent,
|
|
488
|
+
test_data, parsed_test_response, mapped_entities } }\`. Errors are JSON too
|
|
489
|
+
(exit code \`2\` = validation error, \`1\` = runtime error).
|
|
490
|
+
|
|
491
|
+
**\`--raw\` vs. default — the only difference is what gets SENT** (the endpoint response
|
|
492
|
+
is always passed through as-is):
|
|
493
|
+
|
|
494
|
+
| Mode | Sends \`bundle_mapping\`? | Returns \`mapped_entities\`? | Use when |
|
|
495
|
+
|------|------------------------|----------------------------|----------|
|
|
496
|
+
| default (no \`--raw\`) | yes | yes | **building/iterating** — verify \`response_mapping\` maps the response onto your entities correctly |
|
|
497
|
+
| \`--raw\` | no | no | just eyeball the upstream payload / confirm auth + params work |
|
|
498
|
+
|
|
499
|
+
**Three ways to supply the request body** (combine freely — granular flags override
|
|
500
|
+
matching keys from \`--params\`, and \`--params-file\` overrides \`--params\`):
|
|
501
|
+
|
|
502
|
+
1. \`--params '<json>'\` — the whole body as one JSON blob. Recommended: copy it
|
|
503
|
+
straight out of your integration's \`.aui.json\`.
|
|
504
|
+
2. \`--params-file <path>\` — read that same JSON from a file (handy for large bodies).
|
|
505
|
+
3. Granular flags — build it piecemeal:
|
|
506
|
+
- Request: \`--url\`, \`--method\` (default \`GET\`), \`--request-body <json>\`,
|
|
507
|
+
\`--query-params <json>\`, \`--headers <json>\`
|
|
508
|
+
- Auth: \`--auth-type <BEARER_TOKEN|API_KEY|BASIC|NONE>\`, \`--auth-token <token>\`
|
|
509
|
+
(an \`authentication\` with no \`type\` is treated as "no auth" and dropped)
|
|
510
|
+
- Parsing: \`--response-parser <js>\`
|
|
511
|
+
- Mapping (default mode only): \`--bundle-mapping <json>\` for the whole object, or
|
|
512
|
+
build it from the pieces — \`--response-mapping <json>\`, \`--parameters <json>\`,
|
|
513
|
+
\`--scope-entities <json>\`
|
|
514
|
+
|
|
515
|
+
**Where each field comes from in the local agent files:**
|
|
516
|
+
|
|
517
|
+
| Body field | Source file |
|
|
518
|
+
|---|---|
|
|
519
|
+
| \`url\` / \`method\` / \`headers\` / \`query_params\` / \`request_body\` | \`integrations.aui.json\` → \`settings.endpoint\` |
|
|
520
|
+
| \`authentication\` | \`integrations.aui.json\` → \`settings\` |
|
|
521
|
+
| \`response_parser\` | \`integrations.aui.json\` → \`settings.response_parser\` |
|
|
522
|
+
| \`bundle_mapping.response_mapping\` | \`integrations.aui.json\` → \`settings.response_mapping\` |
|
|
523
|
+
| \`bundle_mapping.parameters\` | \`parameters.aui.json\` → \`parameters[]\` |
|
|
524
|
+
| \`bundle_mapping.scope_entities\` | \`entities.aui.json\` → \`entities[]\` |
|
|
525
|
+
|
|
526
|
+
\`\`\`bash
|
|
527
|
+
# Default — full simulation incl. entity mapping (returns mapped_entities)
|
|
528
|
+
aui integration test --params '{
|
|
529
|
+
"url": "https://www.themealdb.com/api/json/v1/1/search.php",
|
|
530
|
+
"method": "GET",
|
|
531
|
+
"query_params": { "s": "pasta" },
|
|
532
|
+
"bundle_mapping": {
|
|
533
|
+
"response_mapping": { "entities": [ { "code": "Meal", "identifier": "meal-id", "paths": ["meals"],
|
|
534
|
+
"mappings": [ { "key": "idMeal", "param": "meal-id" }, { "key": "strMeal", "param": "meal-name" } ] } ] },
|
|
535
|
+
"parameters": [ { "code": "meal-id", "type": "string" }, { "code": "meal-name", "type": "string" } ],
|
|
536
|
+
"scope_entities": [ { "name": "Meal", "identifier": "meal-id", "reference": "meal-name",
|
|
537
|
+
"parameters": ["meal-id","meal-name"] } ]
|
|
538
|
+
}
|
|
539
|
+
}'
|
|
540
|
+
|
|
541
|
+
# Same body from a file
|
|
542
|
+
aui integration test --params-file ./test-body.json
|
|
543
|
+
|
|
544
|
+
# Raw — plain endpoint call, no mapping (returns test_data only)
|
|
545
|
+
aui integration test --raw \\
|
|
546
|
+
--url https://api.example.com/v1/search --method POST \\
|
|
547
|
+
--request-body '{"q":"tokyo"}' --auth-type BEARER_TOKEN --auth-token sk-...
|
|
548
|
+
|
|
549
|
+
# Mix: base body from --params, override one piece with a granular flag
|
|
550
|
+
aui integration test --params-file ./base.json --query-params '{"s":"curry"}'
|
|
551
|
+
\`\`\`
|
|
552
|
+
|
|
553
|
+
> Tip: when authoring, run the **default** mode and inspect \`mapped_entities\` to
|
|
554
|
+
> confirm your \`response_mapping\` is correct before \`aui push\`. Use \`--raw\` first if
|
|
555
|
+
> you only need to confirm the URL, auth, and params reach the upstream API.
|
|
556
|
+
> Wrap every JSON value in single quotes so your shell doesn't mangle it. Run
|
|
557
|
+
> \`aui integration test --help\` for the full flag list and worked examples.
|
|
558
|
+
|
|
559
|
+
## Knowledge bases (\`aui rag\`)
|
|
560
|
+
|
|
561
|
+
\`aui rag\` manages this agent's RAG **knowledge bases** (KBs) and the files / URLs
|
|
562
|
+
indexed into them (via the knowledge-base-manager API). It operates on the agent
|
|
563
|
+
currently selected in your session.
|
|
564
|
+
|
|
565
|
+
\`\`\`bash
|
|
566
|
+
aui rag --json # list this agent's knowledge bases (non-interactive)
|
|
567
|
+
aui rag --status # per-resource indexing status: completed / failed / in-progress
|
|
568
|
+
aui rag --status --json # same, machine-readable
|
|
569
|
+
aui rag # interactive menu (needs a TTY): list / upload files / upload URLs / export / import
|
|
570
|
+
aui rag --add-file # interactive shortcut to upload files or URLs into a KB
|
|
571
|
+
\`\`\`
|
|
572
|
+
|
|
573
|
+
- **Non-interactive (safe for scripts / coding agents):** \`aui rag --json\` (list KBs)
|
|
574
|
+
and \`aui rag --status [--json]\`. After a human uploads sources, use \`--status\` to
|
|
575
|
+
confirm every resource finished indexing (\`completed\`) before you rely on retrieval
|
|
576
|
+
when testing the agent with \`aui apollo\`.
|
|
577
|
+
- **Interactive only (needs a TTY — will prompt, so don't call these headlessly):**
|
|
578
|
+
uploading files / URLs, and the \`Export to knowledge-hubs/\` / \`Import from
|
|
579
|
+
knowledge-hubs/\` flows. A human runs these from the menu.
|
|
580
|
+
- **Export / Import** round-trip KB content through a \`knowledge-hubs/\` folder in the
|
|
581
|
+
project (alongside your \`.aui.json\` files): Export writes each KB out to that folder,
|
|
582
|
+
Import reads it back. Use this to move or version a KB's contents with the project.
|
|
583
|
+
|
|
584
|
+
> Knowledge bases live in the backend, not in the \`.aui.json\` files — editing files and
|
|
585
|
+
> running \`aui push\` does **not** change KB contents. Manage KB data with \`aui rag\`.
|
|
586
|
+
|
|
422
587
|
## Testing a conversation (\`aui apollo\`)
|
|
423
588
|
|
|
424
589
|
The \`aui apollo\` commands let you talk to the agent from the terminal to test
|
|
@@ -435,6 +600,10 @@ aui apollo rerun --task-id <thread-id> --interaction-id <id> --text "Edited"
|
|
|
435
600
|
- \`send-message\` / \`rerun\` validate and forward your local \`.aui.json\` files by
|
|
436
601
|
default, so replies reflect your edits. Pass \`--no-bundle\` to test against the
|
|
437
602
|
agent's stored/active config instead.
|
|
603
|
+
- \`create-thread\` pins the thread to your current draft version by default
|
|
604
|
+
(\`version_id\` / \`version_tag\` from \`.auirc\`, falling back to the session). Pass
|
|
605
|
+
\`--version-id <id>\` and/or \`--version-tag <tag>\` to run against a specific
|
|
606
|
+
version/revision instead.
|
|
438
607
|
- The \`id\` returned by \`send-message\` is the interaction id used by \`rerun\` and
|
|
439
608
|
\`trace --interaction-id\`.
|
|
440
609
|
|
|
@@ -452,6 +621,25 @@ You can also set it via environment variable:
|
|
|
452
621
|
|
|
453
622
|
- \`AUI_AGENT_TOOLS_API_KEY\`
|
|
454
623
|
|
|
624
|
+
## Debugging a failed command
|
|
625
|
+
|
|
626
|
+
When a command fails (especially \`push\`, \`pull\`, \`apollo\`, or \`integration test\`),
|
|
627
|
+
two tools tell you exactly what hit the backend:
|
|
628
|
+
|
|
629
|
+
\`\`\`bash
|
|
630
|
+
AUI_DEBUG=1 aui push # log every request URL, response status, and body
|
|
631
|
+
aui curl # show the HTTP requests from the LAST command as curl
|
|
632
|
+
aui curl --failed # only the requests that failed
|
|
633
|
+
aui curl --last 3 # only the last N requests
|
|
634
|
+
\`\`\`
|
|
635
|
+
|
|
636
|
+
- \`aui curl\` replays the previous command's captured HTTP calls — paste one into a
|
|
637
|
+
terminal to reproduce a single failing request in isolation.
|
|
638
|
+
- Non-interactive commands emit errors as a JSON envelope on \`--json\`
|
|
639
|
+
(\`{ "success": false, "error": { ... } }\`) and exit non-zero (exit \`2\` = validation,
|
|
640
|
+
\`1\` = runtime). Check the exit code and \`error\` field rather than parsing stdout text.
|
|
641
|
+
- If \`push\` partially fails, just re-run \`aui push\` — it retries only the failed changes.
|
|
642
|
+
|
|
455
643
|
## Schema Autocomplete
|
|
456
644
|
|
|
457
645
|
This project includes a JSON schema that provides autocomplete in VSCode/Cursor.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.tsx"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAiB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,UAAU,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6RV,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `aui integration mcp-test` — execute an MCP tool and return the response.
|
|
3
|
+
*
|
|
4
|
+
* POST /apollo-api/v1/integrations/mcp/test
|
|
5
|
+
*
|
|
6
|
+
* Non-interactive when:
|
|
7
|
+
* COMPOSIO: --toolkit + --tool are present
|
|
8
|
+
* DIRECT: --url + --tool are present
|
|
9
|
+
* or when --json is set. Otherwise prompts for missing inputs.
|
|
10
|
+
*
|
|
11
|
+
* Output is always a JSON envelope.
|
|
12
|
+
*/
|
|
13
|
+
export interface IntegrationMCPTestOptions {
|
|
14
|
+
/** Integration type: "composio" or "direct". */
|
|
15
|
+
type?: string;
|
|
16
|
+
/** Tool name/slug to execute. */
|
|
17
|
+
tool?: string;
|
|
18
|
+
/** Tool arguments as a JSON object string (default {}). */
|
|
19
|
+
arguments?: string;
|
|
20
|
+
/** Composio toolkit slug, e.g. github, gmail. */
|
|
21
|
+
toolkit?: string;
|
|
22
|
+
/** Composio user ID (default: random UUID). */
|
|
23
|
+
userId?: string;
|
|
24
|
+
/** Override Composio API key (otherwise: COMPOSIO_API_KEY env var or backend-issued key). */
|
|
25
|
+
composioApiKey?: string;
|
|
26
|
+
/** Explicit auth scheme (e.g. OAUTH2, API_KEY) — skips scheme picker. */
|
|
27
|
+
composioAuthScheme?: string;
|
|
28
|
+
/** Path to a JSON credentials file for BYO OAuth — skips credential prompts. */
|
|
29
|
+
composioCredentialsFile?: string;
|
|
30
|
+
/** BYO OAuth client ID. */
|
|
31
|
+
composioClientId?: string;
|
|
32
|
+
/** BYO OAuth client secret. */
|
|
33
|
+
composioClientSecret?: string;
|
|
34
|
+
/** BYO OAuth bearer token (optional). */
|
|
35
|
+
composioClientBearerToken?: string;
|
|
36
|
+
/** MCP server URL. */
|
|
37
|
+
url?: string;
|
|
38
|
+
/** HTTP transport variant: STREAMABLE_HTTP (default) or SSE. */
|
|
39
|
+
transportType?: string;
|
|
40
|
+
/** Authentication scheme, e.g. BEARER_TOKEN, API_KEY, NONE. */
|
|
41
|
+
authType?: string;
|
|
42
|
+
/** Authentication token used with --auth-type. */
|
|
43
|
+
authToken?: string;
|
|
44
|
+
/** Full bundle_mapping object as a JSON string. */
|
|
45
|
+
bundleMapping?: string;
|
|
46
|
+
/** Agent parameter definitions JSON array → bundle_mapping.parameters. */
|
|
47
|
+
parameters?: string;
|
|
48
|
+
/** Agent scope entities JSON array → bundle_mapping.scope_entities. */
|
|
49
|
+
scopeEntities?: string;
|
|
50
|
+
/** Integration response_mapping JSON object → bundle_mapping.response_mapping. */
|
|
51
|
+
responseMapping?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Raw mode: call the MCP tool WITHOUT bundle_mapping (no entity mapping),
|
|
54
|
+
* returning the response as-is. Without --raw, bundle_mapping is sent and
|
|
55
|
+
* the endpoint additionally returns `mapped_entities`.
|
|
56
|
+
*/
|
|
57
|
+
raw?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare function integrationMCPTest(options?: IntegrationMCPTestOptions): Promise<void>;
|
|
60
|
+
//# sourceMappingURL=integration-mcp-test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mcp-test.d.ts","sourceRoot":"","sources":["../../src/commands/integration-mcp-test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA2DH,MAAM,WAAW,yBAAyB;IACxC,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;I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