@ateam-ai/mcp 0.4.79 → 0.4.80
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 +19 -1
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -4966,7 +4966,25 @@ const handlers = {
|
|
|
4966
4966
|
throw new Error("Pass chain_id (the whole run — recommended) or job_id. ateam_conversation returns chain_id.");
|
|
4967
4967
|
}
|
|
4968
4968
|
if (!skill_id) {
|
|
4969
|
-
|
|
4969
|
+
// ASK FOR NOTHING THE TOOL CAN WORK OUT ITSELF. This used to throw
|
|
4970
|
+
// "job_id needs skill_id too — pass chain_id instead". The message was
|
|
4971
|
+
// accurate and well-written, and it was reached by FAILING FIRST, every
|
|
4972
|
+
// time: 4 occurrences on 4 different job ids in a single clean e2e, each
|
|
4973
|
+
// one a wasted turn. A good error still costs a round trip.
|
|
4974
|
+
//
|
|
4975
|
+
// /deploy/jobs/:id/status resolves ANY job id — it is the same endpoint
|
|
4976
|
+
// the chain path above already uses — so a job id without a skill needs no
|
|
4977
|
+
// skill at all. `scope` says which question was answered, because "this
|
|
4978
|
+
// job" and "the whole run" genuinely differ: a root job can read completed
|
|
4979
|
+
// while a handoff is still running.
|
|
4980
|
+
const data = await get(`/deploy/jobs/${encodeURIComponent(job_id)}/status`, sid);
|
|
4981
|
+
return {
|
|
4982
|
+
ok: true,
|
|
4983
|
+
scope: "job",
|
|
4984
|
+
job_id,
|
|
4985
|
+
...data,
|
|
4986
|
+
_note: `Answered for THIS JOB. For the whole run — including handoffs a root job does not cover — pass chain_id instead${data?.chainId ? ` (this job's chain is "${data.chainId}")` : ""}.`,
|
|
4987
|
+
};
|
|
4970
4988
|
}
|
|
4971
4989
|
// Existing single-job snapshot via Builder (unchanged shape for back-compat).
|
|
4972
4990
|
const single = await get(`/deploy/solutions/${solution_id}/skills/${skill_id}/test/${job_id}`, sid);
|