@carbonstopper/agent-mcp 0.1.47 → 0.1.49

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.
@@ -9,9 +9,9 @@ Scope: the `tools/list.inputSchema` contract and deterministic MCP-side validati
9
9
  | Baseline | Version | Tools | Payload | `anyOf` | `oneOf` | `allOf` | `not` | `if` | `then` |
10
10
  |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
11
11
  | Test endpoint before this change | 0.1.38 | 39 | 174,877 bytes | 78 | 0 | 0 | 0 | 0 | 0 |
12
- | Local working tree | 0.1.46 | 71 | 283,179 bytes | 321 | 0 | 4 | 31 | 7 | 7 |
12
+ | Local working tree | 0.1.48 | 70 | 284,035 bytes | 318 | 0 | 4 | 31 | 7 | 7 |
13
13
 
14
- The local tool count includes four `project_memory_*` tools, eleven `project_*` runtime-read tools, the confirmed `project_enterprise_task_create` write tool, and sixteen task-oriented `cbam2_*` tools. Those sixteen tools route to all 31 CBAM2 Java atomic endpoints. The local payload is measured with `Buffer.byteLength(JSON.stringify(await client.listTools()))`; it excludes HTTP/SSE framing and is not a model-token count. The older test-endpoint baseline preserves its original endpoint-response measurement, so use that comparison as directional rather than byte-for-byte.
14
+ The local tool count includes four `project_memory_*` tools, eleven `project_*` runtime-read tools, the confirmed `project_enterprise_task_create` write tool, and fifteen task-oriented `cbam_*` tools. Those fifteen tools route to all 31 CBAM Java atomic endpoints; the generation-status endpoint is used internally by `cbam_report_generate` and is absent from `tools/list`. The local payload is measured with `Buffer.byteLength(JSON.stringify(await client.listTools()))`; it excludes HTTP/SSE framing and is not a model-token count. The older test-endpoint baseline preserves its original endpoint-response measurement, so use that comparison as directional rather than byte-for-byte.
15
15
 
16
16
  Some optional fields retain MCP-side blank/null-to-omitted normalization for compatibility with older callers. For those fields, the public Schema advertises the tolerated placeholders so strict MCP clients and server-side normalization agree. Agents should still prefer omission over generating blank or null values.
17
17
 
@@ -27,23 +27,22 @@ Some optional fields retain MCP-side blank/null-to-omitted normalization for com
27
27
 
28
28
  | Tool | Mode | Public contract and audit result | Residual owner |
29
29
  |---|---|---|---|
30
- | `session_carbon_objects` | Read | **Covered**: `sessionId`; optional `all/footprint3/enterprise/cbam2` module enum. | **State**: session-bound accounts/computations/reports; one session may contain multiple CBAM2 reports. |
31
- | `cbam2_reference_search` | Read | **Covered/Contract**: reference-type enum, bounds, unique types; report id required for tax candidates. | **State**: organization visibility, dictionaries, report-scoped candidates. |
32
- | `cbam2_report_search` | Read | **Covered**: typed optional filters and pagination. | **Workflow/State**: user selection when multiple reports match; report visibility. |
33
- | `cbam2_report_read` | Read | **Contract**: unified view enum; section and item dependencies; exact report/item ids. | **State**: report visibility and child ownership. |
34
- | `cbam2_factory_read` | Read | **Covered**: exact factory id. | **State**: company and organization visibility. |
35
- | `cbam2_factory_save` | Write | **Contract**: create/update action, conditional factory id, complete form, idempotency, confirmed retry requires pending action id; no automatic retry. | **State/Workflow**: shared-data WAIT_CONFIRM, immutable org, dictionary/code uniqueness. |
36
- | `cbam2_report_save` | Write | **Contract**: create/update action, conditional report id, complete base form, exact calendar range, idempotency. | **Workflow/State**: every create adds a new session-bound report; organization/factory visibility. |
37
- | `cbam2_process_manage` | Write | **Contract**: save/delete/reorder action payloads, unique ids, limits, delete confirmation. | **State**: dependencies, references, complete reorder set, report ownership. |
38
- | `cbam2_precursor_manage` | Write | **Contract**: save/delete payloads, unique ids, limits, delete confirmation. | **State**: category/country validity and report ownership. |
39
- | `cbam2_source_flow_manage` | Write | **Contract**: save/delete payloads, enum codes, numeric ranges, unique ids, delete confirmation. | **State**: owning process and calculation rules. |
40
- | `cbam2_heat_power_update` | Write | **Covered**: positive/non-negative complete input form; calculated outputs absent. | **State**: report include flag and backend calculation. |
41
- | `cbam2_product_data_update` | Write | **Contract**: process/precursor discriminator, matching item form, exact ids, numeric ranges. | **State**: activity balance, route references, server-derived calculations. |
42
- | `cbam2_sale_product_manage` | Write | **Contract**: save/delete payloads, form fields, exact ids, calculated/attachment fields absent, delete confirmation. | **State**: process/category/CN references and dependent tax rows. |
43
- | `cbam2_carbon_tax_manage` | Write | **Contract**: save/delete/calculate payloads, exact ids/codes, delete/calculate confirmation. | **State**: candidates, currencies, running calculation task, backend formula. |
44
- | `cbam2_data_quality_update` | Write | **Covered**: complete Agent-safe quality fields; ownership/calculated fields absent. | **State/Workflow**: read-before-full-update and report ownership. |
45
- | `cbam2_report_generate` | Write | **Contract**: exact report id, idempotency, confirmed retry requires pending action id, 120-second timeout, no automatic retry. | **Workflow/State**: WAIT_CONFIRM, asynchronous generation, readiness and download record. |
46
- | `cbam2_report_generation_status` | Read | **Covered**: exact report and generation ids. | **State**: task belongs to report and current company. |
30
+ | `session_carbon_objects` | Read | **Covered**: `sessionId`; optional `all/footprint3/enterprise/cbam` module enum. | **State**: session-bound accounts/computations/reports; one session may contain multiple CBAM reports. |
31
+ | `cbam_reference_search` | Read | **Covered/Contract**: reference-type enum, bounds, unique types; report id required for tax candidates. | **State**: organization visibility, dictionaries, report-scoped candidates. |
32
+ | `cbam_report_search` | Read | **Covered**: typed optional filters and pagination. | **Workflow/State**: user selection when multiple reports match; report visibility. |
33
+ | `cbam_report_read` | Read | **Contract**: unified view enum; section and item dependencies; exact report/item ids. | **State**: report visibility and child ownership. |
34
+ | `cbam_factory_read` | Read | **Covered**: exact factory id. | **State**: company and organization visibility. |
35
+ | `cbam_factory_save` | Write | **Contract**: create/update action, conditional factory id, complete form, wrapper-injected idempotency and `confirmed=true`; no automatic retry. | **State/Workflow**: reuse existing Agent approval before the single MCP call; immutable org, dictionary/code uniqueness. |
36
+ | `cbam_report_save` | Write | **Contract**: create/update action, conditional report id, complete base form, exact calendar range, idempotency. | **Workflow/State**: every create adds a new session-bound report; organization/factory visibility. |
37
+ | `cbam_process_manage` | Write | **Contract**: save/delete/reorder action payloads, unique ids, limits, delete confirmation. | **State**: dependencies, references, complete reorder set, report ownership. |
38
+ | `cbam_precursor_manage` | Write | **Contract**: save/delete payloads, unique ids, limits, delete confirmation. | **State**: category/country validity and report ownership. |
39
+ | `cbam_source_flow_manage` | Write | **Contract**: save/delete payloads, enum codes, numeric ranges, unique ids, delete confirmation. | **State**: owning process and calculation rules. |
40
+ | `cbam_heat_power_update` | Write | **Covered**: positive/non-negative complete input form; calculated outputs absent. | **State**: report include flag and backend calculation. |
41
+ | `cbam_product_data_update` | Write | **Contract**: process/precursor discriminator, matching item form, exact ids, numeric ranges. | **State**: activity balance, route references, server-derived calculations. |
42
+ | `cbam_sale_product_manage` | Write | **Contract**: save/delete payloads, form fields, exact ids, calculated/attachment fields absent, delete confirmation. | **State**: process/category/CN references and dependent tax rows. |
43
+ | `cbam_carbon_tax_manage` | Write | **Contract**: save/delete/calculate payloads, exact ids/codes, delete/calculate confirmation. | **State**: candidates, currencies, running calculation task, backend formula. |
44
+ | `cbam_data_quality_update` | Write | **Covered**: complete Agent-safe quality fields; ownership/calculated fields absent. | **State/Workflow**: read-before-full-update and report ownership. |
45
+ | `cbam_report_generate` | Write | **Contract**: exact report id, wrapper-injected idempotency and `confirmed=true`, no write retry; the asynchronous start has an exact 20-second timeout and MCP internally polls for up to 100 seconds inside one 120-second total budget. | **Workflow/State**: reuse existing Agent approval before the single MCP call; Java generation remains asynchronous, while the status endpoint is internal and validates task/report/company ownership. |
47
46
  | `user_memory_recall` | Read | **Covered**: identity, query length, type filter, limit. | **State**: message/session ownership. |
48
47
  | `user_memory_get` | Read | **Covered**: exact `memoryId`. | **State**: memory ownership and visibility. |
49
48
  | `user_memory_upsert` | Write | **Covered**: scope/type/source/recall enums, key pattern, content length, confidence ranges. Compatibility permits omitted/zero version. | **Workflow/State**: recall-first workflow, semantic duplicate detection, optimistic-lock state. |
@@ -167,7 +166,7 @@ Ordinary Zod field/type failures are MCP protocol `-32602` errors and are also n
167
166
  `npm run test:schema` verifies:
168
167
 
169
168
  1. A real in-memory MCP `initialize` and `tools/list` flow.
170
- 2. Exactly 71 exposed tools in the current working tree, including 16 CBAM2 task tools covering 31 Java endpoints.
169
+ 2. Exactly 70 exposed tools in the current working tree, including 15 public CBAM task tools covering 31 Java endpoints through one internal generation-status route.
171
170
  3. Draft-07 metadata validity, object roots, declared required properties, and resolvable local refs.
172
171
  4. One generated minimum-valid public-Schema fixture per tool.
173
172
  5. Save/update valid and invalid factor-mode matrices.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonstopper/agent-mcp",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "MCP server for Carbonstop Agent internal skill APIs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",