@casys/mcp-erpnext 3.2.3 → 3.3.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/README.md CHANGED
@@ -10,13 +10,16 @@ English | [繁體中文](README.zh-TW.md)
10
10
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
11
 
12
12
  > [!IMPORTANT]
13
- > **Installing 3.2:** for npm/Node use `npx -y @casys/mcp-erpnext@latest`; for
14
- > Deno use `deno run -A jsr:@casys/mcp-erpnext@3.2.3/server`. 3.2.3 is the
13
+ > **Installing 3.3:** for npm/Node use `npx -y @casys/mcp-erpnext@latest`; for
14
+ > Deno use `deno run -A jsr:@casys/mcp-erpnext@3.3.0/server`. 3.3.0 is the
15
15
  > stable release and carries npm's `latest` tag; prereleases, when published,
16
- > use the `next` tag. 3.2 adds the generic document viewer and attachment
17
- > workflows, so test it with the MCP host your users actually run before
18
- > replacing an existing deployment. See the [CHANGELOG](CHANGELOG.md) for
19
- > release history.
16
+ > use the `next` tag. 3.3 adds graduated selection to the active context: list
17
+ > checkboxes, select-all over the filtered rows, Shift-click ranges and
18
+ > Ctrl/Cmd-click toggles, compact records for one to three selections,
19
+ > references up to eight and a single `erpnext_doc_list` query item beyond.
20
+ > Chart clicks snap to the nearest point in their column. Test it with the MCP
21
+ > host your users actually run before replacing an existing deployment. See the
22
+ > [CHANGELOG](CHANGELOG.md) for release history.
20
23
 
21
24
  Let any MCP-compatible AI agent operate your [ERPNext](https://erpnext.com) /
22
25
  Frappe instance — documents, workflows, and interactive viewers inside the host
@@ -96,7 +99,7 @@ stable 3.0.5 and 3.1.0 releases. Features remain capability-gated by the MCP
96
99
  host; Buy evidence does not purchase or qualify a live ERP.
97
100
 
98
101
  For stable npm installations use `@casys/mcp-erpnext@latest`; for Deno use
99
- `jsr:@casys/mcp-erpnext@3.2.3/server`.
102
+ `jsr:@casys/mcp-erpnext@3.3.0/server`.
100
103
 
101
104
  See the [CHANGELOG](CHANGELOG.md) for the full release history, or the
102
105
  [latest release](https://github.com/Casys-AI/mcp-erpnext/releases/latest) for
package/mcp-erpnext.mjs CHANGED
@@ -44479,6 +44479,9 @@ var salesTools = [
44479
44479
  }
44480
44480
  ];
44481
44481
 
44482
+ // src/ui/doc-list-defaults.ts
44483
+ var DOC_LIST_DEFAULT_LIMIT = 20;
44484
+
44482
44485
  // src/tools/errors.ts
44483
44486
  var ToolInputError = class extends Error {
44484
44487
  tool;
@@ -44512,7 +44515,6 @@ function formatToolInputError(tool, code, detail, recovery) {
44512
44515
  }
44513
44516
 
44514
44517
  // src/tools/doc-list-query.ts
44515
- var DOC_LIST_DEFAULT_LIMIT = 20;
44516
44518
  var DEFAULT_ORDER_BY = "modified desc";
44517
44519
  var FILTER_FORMS = "[fieldname, operator, value] or [child doctype, fieldname, operator, value]";
44518
44520
  var FRAPPE_FILTERS_INPUT_SCHEMA = {
@@ -54860,7 +54862,7 @@ var VIEWER_TOOL_CANDIDATES = {
54860
54862
  "erpnext_file_upload",
54861
54863
  "erpnext_file_download"
54862
54864
  ],
54863
- "ui://mcp-erpnext/doclist-viewer": [],
54865
+ "ui://mcp-erpnext/doclist-viewer": ["erpnext_doc_list"],
54864
54866
  "ui://mcp-erpnext/doc-viewer": [
54865
54867
  "erpnext_file_list",
54866
54868
  "erpnext_file_upload",
@@ -56147,7 +56149,7 @@ function loadMrtrConfig() {
56147
56149
  }
56148
56150
 
56149
56151
  // src/server-instructions.ts
56150
- var ACTIVE_CONTEXT_INSTRUCTIONS = 'User selections in ERPNext viewers are shared as model context on compatible hosts with schema "casys.erpnext/active-context", version 2, and an items array of {id, view, label, value?}. This context identifies the documents and values the user is referring to. Document selections have IDs of the form record:<doctype>:<name>. Their <name> component is accepted as the name argument by the matching *_get tool; erpnext_doc_get accepts <doctype> and <name> as separate arguments. Child-row selections add :row:<table>:<row> to the document ID.';
56152
+ var ACTIVE_CONTEXT_INSTRUCTIONS = 'User selections in ERPNext viewers are shared as model context on compatible hosts with schema "casys.erpnext/active-context", version 3, and an items array of {id, view, label, value?, fields?, query?}. This context identifies the documents and values the user is referring to. Document selections have IDs of the form record:<doctype>:<name>. Their <name> component is accepted as the name argument by the matching *_get tool; erpnext_doc_get accepts <doctype> and <name> as separate arguments. Child-row selections add :row:<table>:<row> to the document ID. fields holds a compact record. A query item represents selected rows: call query.tool with query.args to read them. truncated: true means only the first includedCount of selectedCount rows are listed.';
56151
56153
 
56152
56154
  // server.ts
56153
56155
  var DEFAULT_HTTP_PORT = 3012;
@@ -56210,7 +56212,7 @@ async function main() {
56210
56212
  assertNonEmptySelection(toolsClient.selection);
56211
56213
  const server = new McpApp({
56212
56214
  name: "mcp-erpnext",
56213
- version: "3.2.3",
56215
+ version: "3.3.0",
56214
56216
  instructions: ACTIVE_CONTEXT_INSTRUCTIONS,
56215
56217
  transport: "stateless",
56216
56218
  cache: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casys/mcp-erpnext",
3
- "version": "3.2.3",
3
+ "version": "3.3.0",
4
4
  "description": "MCP server for ERPNext with interactive UI viewers",
5
5
  "type": "module",
6
6
  "bin": {