suppa-mcp-2 1.40.0 → 1.40.1
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/server.js +13 -9
- package/dist/tools/entity.js +26 -0
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1204,15 +1204,19 @@ export function buildToolTable() {
|
|
|
1204
1204
|
.default(null)
|
|
1205
1205
|
.describe('Field options as a JSON object, e.g. {"searchable": true, "searchPriority": 3}. ' +
|
|
1206
1206
|
"Keys: searchable, searchPriority (1-4, higher = stronger weight), readOnly, " +
|
|
1207
|
-
"canGroup, canSort, showInTable, editFromTable, canFilter.
|
|
1208
|
-
"
|
|
1209
|
-
"
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1212
|
-
"
|
|
1213
|
-
"
|
|
1214
|
-
"
|
|
1215
|
-
"
|
|
1207
|
+
"canGroup, canSort, showInTable, editFromTable, canFilter. The one usually worth " +
|
|
1208
|
+
"passing is searchable (+searchPriority): free-text search " +
|
|
1209
|
+
"(suppa_search_records search=...) only covers fields marked searchable; " +
|
|
1210
|
+
"readOnly and searchable default to false. THE FIVE DISPLAY FLAGS ARE " +
|
|
1211
|
+
"UNSETTLED: reading a field back on a live tenant shows canGroup, canSort, " +
|
|
1212
|
+
"showInTable, editFromTable and canFilter as true (2026-08-17), but the " +
|
|
1213
|
+
"platform's own docs say the backend never defaults them and every consumer " +
|
|
1214
|
+
"reads an absent key as FALSE — which is how agent-created fields ended up " +
|
|
1215
|
+
"non-groupable, unsortable and hidden from tables. The stored shape does look " +
|
|
1216
|
+
"sparse: of 70 Tasks fields, 15 carry no options object at all. So if the new " +
|
|
1217
|
+
"field MUST be visible and sortable, pass the five explicitly rather than " +
|
|
1218
|
+
"trusting a default — it costs nothing — and read the field back afterwards. " +
|
|
1219
|
+
"Unknown keys are refused here (the platform would silently drop them)."),
|
|
1216
1220
|
max_length: z
|
|
1217
1221
|
.number()
|
|
1218
1222
|
.int()
|
package/dist/tools/entity.js
CHANGED
|
@@ -135,6 +135,21 @@ export function defaultValueMayBeSent(unique = false) {
|
|
|
135
135
|
// the searchable option participate."). `searchable` (and searchPriority) are
|
|
136
136
|
// therefore the ones worth setting deliberately; the rest already hold the
|
|
137
137
|
// value most fields want.
|
|
138
|
+
/**
|
|
139
|
+
* The display flags the platform's own client sends on every field it creates
|
|
140
|
+
* (`fieldDraft.DEFAULT_TRUE_OPTIONS` in the entity builder, `setDefaultTrueOptions` in the legacy
|
|
141
|
+
* admin). They are NOT defaulted by the backend, and a consumer that reads the stored options
|
|
142
|
+
* object treats an absent key as false — which is how agent-created fields ended up non-groupable,
|
|
143
|
+
* unsortable and hidden from tables. `searchable` and `readOnly` are deliberately absent: they
|
|
144
|
+
* default to false and are the two worth setting deliberately.
|
|
145
|
+
*/
|
|
146
|
+
export const DEFAULT_TRUE_FIELD_OPTIONS = {
|
|
147
|
+
canGroup: true,
|
|
148
|
+
canSort: true,
|
|
149
|
+
canFilter: true,
|
|
150
|
+
showInTable: true,
|
|
151
|
+
editFromTable: true,
|
|
152
|
+
};
|
|
138
153
|
/** Boolean members of the Field Options object. */
|
|
139
154
|
export const FIELD_OPTION_BOOLEAN_KEYS = [
|
|
140
155
|
"searchable", // builder.txt:66 — "Available for search."
|
|
@@ -1775,9 +1790,20 @@ export async function buildFieldDef(entityName, fieldName, fieldType, title, opt
|
|
|
1775
1790
|
}
|
|
1776
1791
|
// builder.txt:60 — "options | object | false | Field options configuration."
|
|
1777
1792
|
// (example body: builder.txt:127-132).
|
|
1793
|
+
//
|
|
1778
1794
|
if (fieldOptions) {
|
|
1779
1795
|
fieldDef.options = fieldOptions;
|
|
1780
1796
|
}
|
|
1797
|
+
else {
|
|
1798
|
+
// UNSETTLED, and it decides whether a new field is visible in tables at all. Our own read-back
|
|
1799
|
+
// (2026-08-05, live) says the platform fills these in; the platform's AI-assistant page says
|
|
1800
|
+
// the opposite — "never defaulted by the backend … every consumer reads an absent key as
|
|
1801
|
+
// false … an agent-created field was silently non-groupable, unsortable and hidden from
|
|
1802
|
+
// tables" — and today's read of the stored shape supports it (15 of 70 Tasks fields carry no
|
|
1803
|
+
// `options` at all). Only a write settles it, so nothing is forced here; the caller is told.
|
|
1804
|
+
// Deliberately NOT reported: an omission is the normal call, and a warning on every one of
|
|
1805
|
+
// them is the noise that teaches people to stop reading warnings.
|
|
1806
|
+
}
|
|
1781
1807
|
return { fieldDef, notApplicable, resolvedType };
|
|
1782
1808
|
}
|
|
1783
1809
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suppa-mcp-2",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.1",
|
|
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": {
|