@ateam-ai/mcp 0.3.8 → 0.3.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "mcpName": "io.github.ariekogan/ateam-mcp",
5
5
  "description": "A-Team MCP Server — build, validate, and deploy multi-agent solutions from any AI environment",
6
6
  "type": "module",
package/src/api.js CHANGED
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  const BASE_URL = process.env.ADAS_API_URL || "https://api.ateam-ai.com";
14
- const CORE_URL = process.env.ADAS_CORE_URL || ""; // Direct Core access (for tenant list, etc.)
14
+ // CORE_URL removed all requests now route through BASE_URL (skill-validator)
15
15
  const ENV_TENANT = process.env.ADAS_TENANT || "";
16
16
  const ENV_API_KEY = process.env.ADAS_API_KEY || "";
17
17
 
@@ -441,20 +441,20 @@ export async function del(path, sessionId, opts) {
441
441
  }
442
442
 
443
443
  /**
444
- * List all active tenants from Core API (requires master key).
445
- * Calls Core directly (not through Builder) using shared secret auth.
444
+ * List all active tenants (requires master key).
445
+ * Routes through the skill-validator's /deploy/tenants endpoint,
446
+ * which proxies to Core. This works with any BASE_URL (including
447
+ * public domains without explicit ports).
446
448
  */
447
449
  export async function listTenants(sessionId) {
448
450
  const session = sessionId ? sessions.get(sessionId) : null;
449
451
  if (!session?.masterKey) throw new Error("listTenants requires master key auth");
450
452
 
451
- // Resolve Core URL: env var > derive from Builder URL > fallback
452
- const coreUrl = CORE_URL || BASE_URL.replace(/:\d+$/, ":4000");
453
453
  const controller = new AbortController();
454
454
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);
455
455
 
456
456
  try {
457
- const res = await fetch(`${coreUrl}/api/tenants/list`, {
457
+ const res = await fetch(`${BASE_URL}/deploy/tenants`, {
458
458
  method: "GET",
459
459
  headers: {
460
460
  "Content-Type": "application/json",
@@ -464,7 +464,7 @@ export async function listTenants(sessionId) {
464
464
  });
465
465
  if (!res.ok) {
466
466
  const text = await res.text().catch(() => "");
467
- throw new Error(`Core API error: GET /api/tenants/list returned ${res.status} — ${text}`);
467
+ throw new Error(`Tenant list error: GET /deploy/tenants returned ${res.status} — ${text}`);
468
468
  }
469
469
  const data = await res.json();
470
470
  return data.tenants || [];
package/src/tools.js CHANGED
@@ -1455,7 +1455,10 @@ const handlers = {
1455
1455
  // Phase 2: Deploy
1456
1456
  let deploy;
1457
1457
  try {
1458
- deploy = await post("/deploy/solution", { solution, skills: effectiveSkills, connectors, mcp_store: effectiveMcpStore }, sid, { timeoutMs: 300_000, retries: 2 });
1458
+ deploy = await post("/deploy/solution", {
1459
+ solution, skills: effectiveSkills, connectors, mcp_store: effectiveMcpStore,
1460
+ ...(github && { skip_github_push: true }),
1461
+ }, sid, { timeoutMs: 300_000, retries: 2 });
1459
1462
  phases.push({ phase: "deploy", status: deploy.ok ? "done" : "failed" });
1460
1463
  } catch (err) {
1461
1464
  return {