suppa-mcp-2 1.16.1 → 1.17.0
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/httpClient.js +11 -3
- package/package.json +1 -1
package/dist/httpClient.js
CHANGED
|
@@ -434,7 +434,12 @@ export async function searchEntity(entity, filters = null, fields = null, limit
|
|
|
434
434
|
offset: Math.max(0, offset),
|
|
435
435
|
orderBy: orderBy !== null ? orderBy : [{ field: "createdAt", order: "desc" }],
|
|
436
436
|
searchValue,
|
|
437
|
-
|
|
437
|
+
// data.txt:72 — "Adds $readAccess and $updateAccess to each record". Those
|
|
438
|
+
// arrays are the same field names on every row of an entity, and NOTHING in
|
|
439
|
+
// this server reads them: a token audit over 104 transcripts put them at a
|
|
440
|
+
// third of everything suppa tools ever returned. The platform omits them
|
|
441
|
+
// unless asked, and asking was inherited from the v1 client.
|
|
442
|
+
getAccessByFields: false,
|
|
438
443
|
// data.txt:75 — includeDeletedRelations "Keep related records that are
|
|
439
444
|
// soft-deleted. Defaults to true." This client used to hard-code false,
|
|
440
445
|
// which silently dropped soft-deleted relations from every read: a deleted
|
|
@@ -451,7 +456,7 @@ export async function selectEntity(entity, filters, fields = null, deletedScope
|
|
|
451
456
|
const body = {
|
|
452
457
|
conditions: { operator: "and", filters },
|
|
453
458
|
fields: fields || { id: true },
|
|
454
|
-
getAccessByFields:
|
|
459
|
+
getAccessByFields: false, // data.txt:72 — see searchEntity
|
|
455
460
|
includeDeletedRelations, // data.txt:75 (platform default true; was hard-coded false)
|
|
456
461
|
deletedScope, // data.txt:76
|
|
457
462
|
};
|
|
@@ -492,7 +497,10 @@ export async function validateSelect(entity, payload) {
|
|
|
492
497
|
: null;
|
|
493
498
|
}
|
|
494
499
|
export async function insertEntity(entity, fieldsList, returning = null) {
|
|
495
|
-
|
|
500
|
+
// data.txt:325 — on insert the flag "Defaults to TRUE", so a write answers
|
|
501
|
+
// with the access arrays unless it is told not to. Same reasoning as the read
|
|
502
|
+
// path: nothing here reads them.
|
|
503
|
+
const body = { fields: fieldsList, getAccessByFields: false };
|
|
496
504
|
if (returning) {
|
|
497
505
|
body.returning = returning;
|
|
498
506
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suppa-mcp-2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "MCP server for the Suppa platform (modern.suppa.me) — Tasks, Docs/Pages, Entities & Schema, Forms, Automations, and file attachments, with multi-tenant Google auth. Node port of PyPI suppa-mcp.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|