@ateam-ai/mcp 0.4.62 → 0.4.64

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 +19 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.4.62",
3
+ "version": "0.4.64",
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
@@ -1038,8 +1038,15 @@ export const tools = [
1038
1038
  "A building agent starts every run empty — it does not know which tool " +
1039
1039
  "misled the last run or the workaround that got past it. Log a lesson the " +
1040
1040
  "moment a tool misleads you AND you find a way through.\n\n" +
1041
- "APPEND-ONLY. You cannot edit or delete earlier lessons, and you do not " +
1042
- "supply the timestamp, job or actor — the server stamps those.\n\n" +
1041
+ "APPEND-ONLY. You cannot edit or delete earlier lessons, and you do not supply " +
1042
+ "the timestamp — the server stamps it, so it cannot be forged.\n\n" +
1043
+ "PROVENANCE CAVEAT, stated because the earlier wording over-promised: `job_id` " +
1044
+ "and `actor` are recorded ONLY when the caller supplies x-adas-job-id / " +
1045
+ "x-adas-actor-id. An agent calling this tool does not, so those fields are " +
1046
+ "usually null — a lesson cannot currently be traced back to the run that " +
1047
+ "produced it, and the file cannot tell 'three runs hit this' from 'one run hit " +
1048
+ "it three times'. Do not put a job id in `error` to compensate; keep that field " +
1049
+ "verbatim.\n\n" +
1043
1050
  "LOG ONLY WHAT YOU OBSERVED. Quote the error VERBATIM; never paraphrase it " +
1044
1051
  "and never write a theory about platform internals. A wrong lesson is worse " +
1045
1052
  "than no lesson, because the next run cannot check it and will act on it.\n\n" +
@@ -2248,6 +2255,16 @@ const EXAMPLE_PATHS = {
2248
2255
  // baked into MCP config (e.g., ADAS_TENANT + ADAS_API_KEY in ~/.claude.json).
2249
2256
  // Any tool that touches tenant-specific data (solutions, skills, logs, tests) is here.
2250
2257
  const TENANT_TOOLS = new Set([
2258
+ // Lessons are tenant-specific data — a solution's own failure history. They
2259
+ // were MISSING from this set when the tools shipped (2026-08-21), which is a
2260
+ // bug on two counts: they ran without the explicit-auth requirement every
2261
+ // other tenant-scoped tool has, and in master mode `switchTenant` never fired
2262
+ // for them, so a caller passing `tenant` could read or write ANOTHER
2263
+ // tenant's lessons. Tenant isolation is the one boundary this platform
2264
+ // treats as absolute.
2265
+ "ateam_log_lesson",
2266
+ "ateam_get_lessons",
2267
+
2251
2268
  // Write operations
2252
2269
  "ateam_build_and_run",
2253
2270
  "ateam_patch",