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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(mcp): document quote line notes fields in upsertQuoteLine schema (#1673)
Naveen Kashyap5181cd4a6a1c
diff --git a/apps/erp/app/modules/sales/sales.models.ts b/apps/erp/app/modules/sales/sales.models.tsindex 1f73ceb463..b40a7cbf98 100644--- a/apps/erp/app/modules/sales/sales.models.ts+++ b/apps/erp/app/modules/sales/sales.models.ts@@ -465,6 +465,8 @@ export const quoteLineValidator = z.object({taxPercent: zfd.numeric(z.number().min(0).max(1, { message: "Tax percent must be between 0 and 1" })),+ internalNotes: z.any().optional(),+ externalNotes: z.any().optional(),configuration: z.any().optional()});diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.jsonindex 33598e0e23..f72297facc 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json@@ -1376,7 +1376,7 @@{"name":"sales_upsertMakeMethodFromQuoteMethod","classification":"WRITE","paramCount":3,"schema":"32b3a0f5efa0","response":"bcde375ebd4c","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertNoQuoteReason","classification":"WRITE","paramCount":3,"schema":"f47f137a8607","response":"8394fbabd845","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertQuote","classification":"WRITE","paramCount":21,"schema":"c8e476a66d0a","response":"3acbb53b8c04","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},- {"name":"sales_upsertQuoteLine","classification":"WRITE","paramCount":17,"schema":"5fd3eea3d988","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},+ {"name":"sales_upsertQuoteLine","classification":"WRITE","paramCount":19,"schema":"d3c525861e1c","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertQuoteLineAdditionalCharges","classification":"WRITE","paramCount":2,"schema":"483aa73b0c32","response":"bcde375ebd4c","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertQuoteLineMethod","classification":"WRITE","paramCount":5,"schema":"5f94e8a4cbf6","response":"none","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertQuoteLinePrices","classification":"DESTRUCTIVE","paramCount":3,"schema":"25f3f3e7401f","response":"none","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},diff --git a/scripts/lib/service-metadata.ts b/scripts/lib/service-metadata.tsindex a0f3fb10c8..c7df1cb1cf 100644--- a/scripts/lib/service-metadata.ts+++ b/scripts/lib/service-metadata.ts@@ -66,6 +66,8 @@ const DESCRIPTION_OVERRIDES: Record<string, string> = {"Create a new quote with all business logic - generates sequence, creates opportunity, resolves payment/shipping defaults from customer. LLM can create a quote with just customerId.",sales_updateQuote:"Update an existing quote - handles exchange rate updates when currency changes, syncs customer to opportunity",+ sales_upsertQuoteLine:+ "Create or update a quote line. Keep description to a short one-line label - it is truncated on the digital quote. Long specifications belong in externalNotes (TipTap doc JSON, rendered in full under the line on the digital quote and PDF); internalNotes takes the same shape and is never shown to the customer.",sales_insertSalesOrder:"Create a new sales order with all business logic - generates sequence, creates opportunity, resolves payment/shipping defaults from customer. LLM can create a sales order with just customerId.",sales_updateSalesOrder: