Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(mcp): classify compute* service functions as READ tools

sidgaikwada5706f52c525
diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
index d975d51fdf..7d179182d5 100644
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
@@ -1,5 +1,5 @@
{
- "generated": "2026-08-04T13:12:13.628Z",
+ "generated": "2026-08-04T13:23:06.779Z",
"totalTools": 1411,
"modules": 15,
"tools": [
@@ -8047,7 +8047,7 @@
{
"name": "invoicing_computeInvoiceDateDue",
"module": "invoicing",
- "classification": "WRITE",
+ "classification": "READ",
"description": "compute invoice date due",
"paramCount": 2,
"serviceParams": [
diff --git a/scripts/generate-mcp.ts b/scripts/generate-mcp.ts
index e91ab9728c..98b98086fd 100644
--- a/scripts/generate-mcp.ts
+++ b/scripts/generate-mcp.ts
@@ -441,7 +441,7 @@ function classifyFunction(
name: string
): "READ" | "WRITE" | "DESTRUCTIVE" {
if (/^delete/.test(name)) return "DESTRUCTIVE";
- if (/^(get|list|fetch|search|find|count|check|is|has)/.test(name))
+ if (/^(get|list|fetch|search|find|count|check|is|has|compute)/.test(name))
return "READ";
return "WRITE";
}