@commerceforai/mcp 0.1.1 → 0.1.2

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/dist/index.js +6 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -213,8 +213,12 @@ export function buildServer(commerce, cfg) {
213
213
  tool("configure_sales_tax", {
214
214
  description: "Turn Stripe Tax collection on or off, and set the default tax category for products without their own (e.g. txcd_30011000 for clothing; see sales_tax_status for categories). Changes what customers pay, so get the owner's OK. Set one product's category with update_product tax_code.",
215
215
  write: true,
216
- input: { enabled: z.boolean().optional(), default_tax_code: z.string().nullable().optional() },
217
- }, async (a) => out(await commerce.store.update({ ...(a.enabled !== undefined ? { tax_enabled: a.enabled } : {}), ...(a.default_tax_code !== undefined ? { default_tax_code: a.default_tax_code } : {}) })));
216
+ input: { enabled: z.boolean().optional(), default_tax_code: z.string().nullable().optional(), prices_include_tax: z.boolean().optional().describe("True if listed prices already include tax (common outside the US)") },
217
+ }, async (a) => out(await commerce.store.update({ ...(a.enabled !== undefined ? { tax_enabled: a.enabled } : {}), ...(a.default_tax_code !== undefined ? { default_tax_code: a.default_tax_code } : {}), ...(a.prices_include_tax !== undefined ? { prices_include_tax: a.prices_include_tax } : {}) })));
218
+ tool("tax_orders", {
219
+ description: "Every real order in a period with its destination and tax, for an accountant or a filing. Dates are YYYY-MM-DD; default the last 365 days.",
220
+ input: { from: z.string().optional(), to: z.string().optional() },
221
+ }, async (a) => out(await commerce.reports.taxOrders(a)));
218
222
  tool("sales_by_state", {
219
223
  description: "Sales, orders and tax collected by state over the last N days (default 365), with which states are registered. `watch` marks US states near common registration thresholds, worth checking with an accountant; it isn't a legal determination.",
220
224
  input: { days: z.number().int().min(1).max(366).optional() },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commerceforai/mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server that lets AI agents operate a CommerceForAI store, with guardrails.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@modelcontextprotocol/sdk": "^1.32.2",
15
15
  "zod": "^4.6.7",
16
- "commerceforai": "0.1.1"
16
+ "commerceforai": "0.1.2"
17
17
  },
18
18
  "main": "./dist/index.js",
19
19
  "types": "./dist/index.d.ts",