@ductape/mcp 0.2.28 → 0.2.29
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.
- package/dist/index.js +10 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -780,13 +780,16 @@ ALL params are passed as a JSON array in positional order matching the SDK signa
|
|
|
780
780
|
databases.migration.rollback [migrations, count?]
|
|
781
781
|
databases.migration.history []
|
|
782
782
|
databases.migration.status [migrations]
|
|
783
|
-
databases.action.create [{ tag: "product:database:action", name, tableName, operation: "query"|"insert"|"update"|"delete"|"
|
|
783
|
+
databases.action.create [{ tag: "product:database:action", name, description, tableName, operation: "query"|"insert"|"update"|"delete"|"aggregate"|"count", template, filterTemplate? }]
|
|
784
784
|
← ADMINISTRATIVE (access key required). FORBIDDEN via ductape_execute (publishable key) —
|
|
785
785
|
use ductape_cli("db actions create --action-file action.json") instead. tag MUST be fully qualified
|
|
786
786
|
"product_tag:database_tag:action_tag" — a 2-part "database:action" shorthand only resolves
|
|
787
787
|
inside a long-lived process that already has that product's builder cached, never in a
|
|
788
788
|
fresh CLI/MCP call. This is pure metadata registration; it never connects to the live
|
|
789
789
|
database, so it does NOT require the database to be reachable at call time.
|
|
790
|
+
MongoDB query example: { operation: "query", template: { where: { email: "{{email}}" } } }
|
|
791
|
+
Placeholders are {{name}}, never $Input{name}. For the exact manifest call
|
|
792
|
+
ductape_schema({ module: "product", method: "databases.action.create" }).
|
|
790
793
|
databases.action.update [{ tag, name?, description?, template?, filterTemplate? }]
|
|
791
794
|
← ADMINISTRATIVE. Use ductape_cli("db actions update --tag <tag> --action-file patch.json").
|
|
792
795
|
databases.action.fetch [action_tag] ← read-only, safe via ductape_execute
|
|
@@ -2432,10 +2435,12 @@ shape and do not resolve a saved action.
|
|
|
2432
2435
|
Create/update/delete are ADMINISTRATIVE (access key) — FORBIDDEN through ductape_execute
|
|
2433
2436
|
(publishable key). Use ductape_cli, same as every other admin resource:
|
|
2434
2437
|
ductape_cli("db actions create --action-file action.json")
|
|
2435
|
-
File: { tag: "product:database:action", name, tableName,
|
|
2436
|
-
operation: "query"|"insert"|"update"|"delete"|"
|
|
2437
|
-
template
|
|
2438
|
-
|
|
2438
|
+
File: { tag: "product:database:action", name, description, tableName,
|
|
2439
|
+
operation: "query"|"insert"|"update"|"delete"|"aggregate"|"count",
|
|
2440
|
+
template, filterTemplate? }
|
|
2441
|
+
MongoDB query: { operation: "query", template: { where: { email: "{{email}}" } } }
|
|
2442
|
+
Placeholders use {{name}}, never $Input{name}. Call
|
|
2443
|
+
ductape_schema({ module: "product", method: "databases.action.create" }) for the exact shape.
|
|
2439
2444
|
tag MUST be fully qualified "product_tag:database_tag:action_tag" — the SDK's 2-part
|
|
2440
2445
|
"database:action" shorthand only works inside one already-warm process, never a fresh CLI call.
|
|
2441
2446
|
This is pure metadata registration — it does not connect to the live database, so the
|