@casoon/opengrid-mcp 0.15.0 → 0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casoon/opengrid-mcp",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "opengrid as an MCP App: the grid in a chat client, driven by keyboard and by the model through one view",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",
@@ -24,7 +24,7 @@
24
24
  "@modelcontextprotocol/ext-apps": "^2.0.4",
25
25
  "@modelcontextprotocol/server": "^2.4.0",
26
26
  "zod": "^4.6.7",
27
- "@casoon/opengrid": "0.15.0"
27
+ "@casoon/opengrid": "0.17.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "esbuild": "0.28.2"
package/src/tools.mjs CHANGED
@@ -41,6 +41,7 @@ const View = z
41
41
  order: z.array(z.string()).optional(),
42
42
  hidden: z.array(z.string()).optional(),
43
43
  widths: z.record(z.string(), z.number()).optional(),
44
+ pinned: z.record(z.string(), z.enum(["start", "end", "none"])).optional(),
44
45
  })
45
46
  .optional(),
46
47
  density: z.enum(["compact", "normal", "comfortable"]).optional(),
@@ -58,6 +59,13 @@ const View = z
58
59
  ]),
59
60
  )
60
61
  .optional(),
62
+ // The nested filter: the wire's filter with `and`, `or` and conditions.
63
+ // An object here, and no more: the engine's own refusal names what it
64
+ // does not take (`not`, `in`, an unknown column), and a recursive schema
65
+ // is more than some hosts read.
66
+ where: z.record(z.string(), z.unknown()).optional().describe(
67
+ 'A filter with "or" across columns, and-ed onto `filters`: {"or":[{"field":"country","op":"eq","value":"DE"},{"field":"amount","op":"gte","value":1000}]}. Values are typed as the column is.',
68
+ ),
61
69
  })
62
70
  .describe("A grid view, the JSON of opengrid's get_view. Fields left out keep their defaults.");
63
71