@ateam-ai/mcp 0.3.1 → 0.3.2
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/package.json +1 -1
- package/src/tools.js +49 -0
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -367,6 +367,46 @@ export const tools = [
|
|
|
367
367
|
},
|
|
368
368
|
},
|
|
369
369
|
|
|
370
|
+
{
|
|
371
|
+
name: "ateam_upload_connector",
|
|
372
|
+
core: true,
|
|
373
|
+
description:
|
|
374
|
+
"Upload connector code to Core and restart — WITHOUT redeploying skills. " +
|
|
375
|
+
"Use this to update connector source code (server.js, UI assets, plugins) quickly. " +
|
|
376
|
+
"Set github=true to pull files from the solution's GitHub repo, or pass files directly. " +
|
|
377
|
+
"Much faster than ateam_build_and_run for connector-only changes.",
|
|
378
|
+
inputSchema: {
|
|
379
|
+
type: "object",
|
|
380
|
+
properties: {
|
|
381
|
+
solution_id: {
|
|
382
|
+
type: "string",
|
|
383
|
+
description: "The solution ID",
|
|
384
|
+
},
|
|
385
|
+
connector_id: {
|
|
386
|
+
type: "string",
|
|
387
|
+
description: "The connector ID to upload (e.g. 'personal-assistant-ui-mcp')",
|
|
388
|
+
},
|
|
389
|
+
github: {
|
|
390
|
+
type: "boolean",
|
|
391
|
+
description: "If true, pull connector files from GitHub repo. Default: false.",
|
|
392
|
+
},
|
|
393
|
+
files: {
|
|
394
|
+
type: "array",
|
|
395
|
+
items: {
|
|
396
|
+
type: "object",
|
|
397
|
+
properties: {
|
|
398
|
+
path: { type: "string", description: "Relative file path (e.g. 'server.js', 'ui-dist/panel/1.0.0/index.html')" },
|
|
399
|
+
content: { type: "string", description: "File content" },
|
|
400
|
+
},
|
|
401
|
+
required: ["path", "content"],
|
|
402
|
+
},
|
|
403
|
+
description: "Files to upload. Alternative to github=true.",
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
required: ["solution_id", "connector_id"],
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
|
|
370
410
|
// ═══════════════════════════════════════════════════════════════════
|
|
371
411
|
// ADVANCED TOOLS — hidden from tools/list, still callable by name
|
|
372
412
|
// Use these for manual lifecycle control, debugging, and diagnostics
|
|
@@ -987,6 +1027,7 @@ const TENANT_TOOLS = new Set([
|
|
|
987
1027
|
"ateam_redeploy",
|
|
988
1028
|
"ateam_delete_solution",
|
|
989
1029
|
"ateam_delete_connector",
|
|
1030
|
+
"ateam_upload_connector",
|
|
990
1031
|
"ateam_solution_chat",
|
|
991
1032
|
// Read operations (tenant-specific data)
|
|
992
1033
|
"ateam_list_solutions",
|
|
@@ -1589,6 +1630,14 @@ const handlers = {
|
|
|
1589
1630
|
ateam_delete_connector: async ({ solution_id, connector_id }, sid) =>
|
|
1590
1631
|
del(`/deploy/solutions/${solution_id}/connectors/${connector_id}`, sid),
|
|
1591
1632
|
|
|
1633
|
+
ateam_upload_connector: async ({ solution_id, connector_id, github, files }, sid) =>
|
|
1634
|
+
post(
|
|
1635
|
+
`/deploy/solutions/${solution_id}/connectors/${connector_id}/upload`,
|
|
1636
|
+
{ github, files },
|
|
1637
|
+
sid,
|
|
1638
|
+
{ timeoutMs: 300_000, retries: 1 },
|
|
1639
|
+
),
|
|
1640
|
+
|
|
1592
1641
|
ateam_redeploy: async ({ solution_id, skill_id }, sid) => {
|
|
1593
1642
|
const endpoint = skill_id
|
|
1594
1643
|
? `/deploy/solutions/${solution_id}/skills/${skill_id}/redeploy`
|