@ateam-ai/mcp 0.4.24 → 0.4.25
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 +6 -15
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -2653,22 +2653,13 @@ const handlers = {
|
|
|
2653
2653
|
// Design-time capability advisor. Proxies to the Builder's /spec/advisor
|
|
2654
2654
|
// (LLM over the curated capability catalog). Public endpoint (auth-exempt),
|
|
2655
2655
|
// but we forward the session so a base override is honored.
|
|
2656
|
-
ateam_design_advisor: async ({ goal, design_state
|
|
2656
|
+
ateam_design_advisor: async ({ goal, design_state }, sid) => {
|
|
2657
2657
|
if (!goal || typeof goal !== "string") throw new Error("goal required (a string describing what you're building)");
|
|
2658
|
-
//
|
|
2659
|
-
//
|
|
2660
|
-
//
|
|
2661
|
-
//
|
|
2662
|
-
|
|
2663
|
-
const r = await post(
|
|
2664
|
-
`/deploy/solutions/${encodeURIComponent(sol)}/connectors/sysSpecSearch-mcp/call`,
|
|
2665
|
-
{ tool: "sysSpecSearch.advise", args: { goal, design_state: design_state || {} } },
|
|
2666
|
-
sid,
|
|
2667
|
-
{ timeoutMs: 90_000, retries: 1 },
|
|
2668
|
-
);
|
|
2669
|
-
const text = r?.result?.content?.[0]?.text;
|
|
2670
|
-
if (text) { try { return JSON.parse(text); } catch { return { ok: true, raw: text }; } }
|
|
2671
|
-
return r?.result ?? r;
|
|
2658
|
+
// Direct call to the Builder's /spec/advisor. The session's X-ADAS-TENANT
|
|
2659
|
+
// header rides along (post() sets it), so the Builder resolves this tenant's
|
|
2660
|
+
// LLM via Core's sys.llm gateway (stage→tier→model, transparent — no keys in
|
|
2661
|
+
// the Builder). Reachable externally on prod: the relay forwards /spec/*.
|
|
2662
|
+
return post("/spec/advisor", { goal, design_state: design_state || {} }, sid, { timeoutMs: 90_000, retries: 1 });
|
|
2672
2663
|
},
|
|
2673
2664
|
|
|
2674
2665
|
// Semantic search over the full /spec corpus. Reaches the sysSpecSearch-mcp
|