@ateam-ai/mcp 0.4.10 → 0.4.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tools.js +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
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/tools.js CHANGED
@@ -3162,15 +3162,17 @@ const handlers = {
3162
3162
  // accepted for back-compat but no longer hold the HTTP request open.
3163
3163
  const body = { message, async: true, ...(actor_id ? { actor_id } : {}) };
3164
3164
  const kickoff = await post(`/deploy/solutions/${solution_id}/test`, body, sid, { timeoutMs: 15_000 });
3165
- const jobId = kickoff?.job_id || kickoff?.jobId || null;
3165
+ // The CHAIN id not a single job id — is the conversation's identity and
3166
+ // what you poll. The Builder returns it as chain_id (falls back to the
3167
+ // root job id only if an older Builder didn't send one).
3168
+ const chainId = kickoff?.chain_id || kickoff?.chainId || kickoff?.job_id || kickoff?.jobId || null;
3166
3169
  return {
3167
3170
  ...kickoff,
3168
- job_id: jobId,
3169
- chain_id: jobId,
3170
- _poll: jobId
3171
+ chain_id: chainId,
3172
+ _poll: chainId
3171
3173
  ? {
3172
- _note: "Conversation started (async). Poll for the reply do NOT expect it in this response.",
3173
- slim: `ateam_get_chain(job_id: "${jobId}") → chain tree + per-job status`,
3174
+ _note: "Conversation started (async). The reply is NOT in this response poll the CHAIN for it.",
3175
+ slim: `ateam_get_chain(job_id: "${chainId}") → chain tree + per-job status; the routed worker's terminal job carries the reply`,
3174
3176
  continue: kickoff?.actor_id ? `ateam_conversation(actor_id: "${kickoff.actor_id}", ...) to continue the thread` : undefined,
3175
3177
  }
3176
3178
  : undefined,