@ductape/mcp 0.1.36 → 0.1.37

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/index.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ductape/mcp",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "MCP server that exposes Ductape SDK operations via the backend proxy",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -733,7 +733,7 @@ ALL params are passed as a JSON array in positional order matching the SDK signa
733
733
  handler: async (ctx) => {
734
734
  // ctx.input – typed feature input
735
735
  // ctx.step(tag, fn, rollback?, opts?) – define a durable step
736
- // ctx.action.run({ app, event, input }) – call an app action
736
+ // ctx.api.run({ app, event, input }) – call an app action
737
737
  // ctx.database.query/insert/update/delete({ database, event, ... })
738
738
  // ctx.graph.execute({ graph, action, input })
739
739
  // ctx.notification.send/email/push/sms({ notification, event, ... })
@@ -2156,7 +2156,7 @@ STEP 2 — INVENTORY existing Ductape components
2156
2156
  Call ductape_execute("products.fetch", [product_tag]) to read the product.
2157
2157
  Note what already exists:
2158
2158
  - databases[] → available for ctx.database.insert/query/update/delete steps
2159
- - apps[] → available for ctx.action.run steps (check app.events[] for event tags)
2159
+ - apps[] → available for ctx.api.run steps (check app.events[] for event tags)
2160
2160
  - notifications[] → available for ctx.notification.email/sms/push steps
2161
2161
  - storage[] → available for ctx.storage.upload/download steps
2162
2162
  - messageBrokers[] → available for ctx.messaging.produce steps
@@ -2214,8 +2214,8 @@ STEP 8 — SET rollbacks for reversible steps
2214
2214
  Any step that allocates a resource should undo it if a later step fails:
2215
2215
  const charge = await ctx.step(
2216
2216
  'charge',
2217
- async () => ctx.action.run({ app: 'stripe', event: 'create-charge', input: { amount: ctx.input.amount } }),
2218
- async (result) => ctx.action.run({ app: 'stripe', event: 'refund', input: { chargeId: result.id } })
2217
+ async () => ctx.api.run({ app: 'stripe', event: 'create-charge', input: { amount: ctx.input.amount } }),
2218
+ async (result) => ctx.api.run({ app: 'stripe', event: 'refund', input: { chargeId: result.id } })
2219
2219
  );
2220
2220
 
2221
2221
  Step types: action | database | graph | notification | storage | produce | quota | fallback |