document-mcp 4.6.15 → 4.6.17
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 +1 -1
- package/dist/bin.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -226,7 +226,7 @@ Every tool that takes or produces document bytes goes through the same two hybri
|
|
|
226
226
|
| `odb_tables` | Lists every table an embedded `.odb` database declares — column names, types, and row data — across every storage tier `documents.js` supports (HSQLDB TEXT/CACHED/BINARY, Firebird gbak backups). |
|
|
227
227
|
| `odb_forms` | Lists every form an `.odb` database declares, with each form's own data source and field-bound controls. |
|
|
228
228
|
| `odb_reports` | Lists every report an `.odb` database declares, with each report's own data-source command, band/group structure, and `rpt:` formula expressions. |
|
|
229
|
-
| `odb_query` | Runs a bounded
|
|
229
|
+
| `odb_query` | Runs a bounded `SELECT` (with optional INNER JOINs) over an embedded `.odb` database's extracted tables — given directly as SQL or by naming a saved query. No database engine involved; no OUTER/LEFT/RIGHT/FULL/CROSS/NATURAL joins, subqueries, or table aliases; an unsupported construct is reported as a tool error naming it, never silently ignored. |
|
|
230
230
|
| `odb_to_csv` | Extracts exactly one named table from an embedded `.odb` database as CSV bytes. The table name is required whenever the database declares more than one table. |
|
|
231
231
|
| `odb_to_xlsx` | Extracts every table an embedded `.odb` database declares into one xlsx workbook, one sheet per table. |
|
|
232
232
|
| `odb_render_report` | Resolves one of an `.odb` database's own reports — its data-bound command run through the bounded SQL engine, its `rpt:` formulas evaluated, its bands laid out — and renders the result to docx, odt, or pdf. |
|
package/dist/bin.js
CHANGED
|
@@ -12,7 +12,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
12
12
|
import { basename, join } from "node:path";
|
|
13
13
|
import { buildOutline, isOutlineNode, outlineLeafText } from "document-outline.js";
|
|
14
14
|
//#region package.json
|
|
15
|
-
var version = "4.6.
|
|
15
|
+
var version = "4.6.17";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/io/document-input.ts
|
|
18
18
|
const EXTENSION_TO_FORMAT = {
|
|
@@ -612,7 +612,7 @@ function registerOdbTools(server) {
|
|
|
612
612
|
});
|
|
613
613
|
server.registerTool("odb_query", {
|
|
614
614
|
title: "Query an .odb database",
|
|
615
|
-
description: "Runs a bounded
|
|
615
|
+
description: "Runs a bounded SELECT (with optional INNER JOINs) over an embedded .odb database's own extracted tables, given directly as SQL or by naming one of the database's saved queries. No database engine is involved -- the query runs in memory over the same tables odb_tables would return, against a closed grammar (SELECT/FROM/[INNER] JOIN ... ON/WHERE/GROUP BY/ORDER BY; no OUTER/LEFT/RIGHT/FULL/CROSS/NATURAL joins, subqueries, or table aliases -- a column past the first table must be qualified by its own table name); an unsupported construct is reported as a tool error naming it, never silently ignored.",
|
|
616
616
|
inputSchema: z.object({
|
|
617
617
|
source: DocumentInputSchema.describe(ODB_SOURCE_DESCRIPTION),
|
|
618
618
|
sql: z.string().describe("A literal SELECT statement to run. Mutually exclusive with \"query\".").optional(),
|
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ let node_fs = require("node:fs");
|
|
|
9
9
|
let node_path = require("node:path");
|
|
10
10
|
let document_outline_js = require("document-outline.js");
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "4.6.
|
|
12
|
+
var version = "4.6.17";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/io/document-input.ts
|
|
15
15
|
const EXTENSION_TO_FORMAT = {
|
|
@@ -609,7 +609,7 @@ function registerOdbTools(server) {
|
|
|
609
609
|
});
|
|
610
610
|
server.registerTool("odb_query", {
|
|
611
611
|
title: "Query an .odb database",
|
|
612
|
-
description: "Runs a bounded
|
|
612
|
+
description: "Runs a bounded SELECT (with optional INNER JOINs) over an embedded .odb database's own extracted tables, given directly as SQL or by naming one of the database's saved queries. No database engine is involved -- the query runs in memory over the same tables odb_tables would return, against a closed grammar (SELECT/FROM/[INNER] JOIN ... ON/WHERE/GROUP BY/ORDER BY; no OUTER/LEFT/RIGHT/FULL/CROSS/NATURAL joins, subqueries, or table aliases -- a column past the first table must be qualified by its own table name); an unsupported construct is reported as a tool error naming it, never silently ignored.",
|
|
613
613
|
inputSchema: zod.z.object({
|
|
614
614
|
source: DocumentInputSchema.describe(ODB_SOURCE_DESCRIPTION),
|
|
615
615
|
sql: zod.z.string().describe("A literal SELECT statement to run. Mutually exclusive with \"query\".").optional(),
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
8
8
|
import { basename, join } from "node:path";
|
|
9
9
|
import { buildOutline, isOutlineNode, outlineLeafText } from "document-outline.js";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "4.6.
|
|
11
|
+
var version = "4.6.17";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/io/document-input.ts
|
|
14
14
|
const EXTENSION_TO_FORMAT = {
|
|
@@ -608,7 +608,7 @@ function registerOdbTools(server) {
|
|
|
608
608
|
});
|
|
609
609
|
server.registerTool("odb_query", {
|
|
610
610
|
title: "Query an .odb database",
|
|
611
|
-
description: "Runs a bounded
|
|
611
|
+
description: "Runs a bounded SELECT (with optional INNER JOINs) over an embedded .odb database's own extracted tables, given directly as SQL or by naming one of the database's saved queries. No database engine is involved -- the query runs in memory over the same tables odb_tables would return, against a closed grammar (SELECT/FROM/[INNER] JOIN ... ON/WHERE/GROUP BY/ORDER BY; no OUTER/LEFT/RIGHT/FULL/CROSS/NATURAL joins, subqueries, or table aliases -- a column past the first table must be qualified by its own table name); an unsupported construct is reported as a tool error naming it, never silently ignored.",
|
|
612
612
|
inputSchema: z.object({
|
|
613
613
|
source: DocumentInputSchema.describe(ODB_SOURCE_DESCRIPTION),
|
|
614
614
|
sql: z.string().describe("A literal SELECT statement to run. Mutually exclusive with \"query\".").optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-mcp",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.17",
|
|
4
4
|
"description": "MCP (Model Context Protocol) server exposing documents.js's document-conversion, .odb, metadata, and font tooling as MCP tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@modelcontextprotocol/node": "^2.0.0",
|
|
92
92
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
93
|
-
"document-compute.js": "^1.3.
|
|
93
|
+
"document-compute.js": "^1.3.16",
|
|
94
94
|
"document-outline.js": "^3.5.4",
|
|
95
95
|
"document-schema.js": "^7.0.0",
|
|
96
|
-
"documents.js": "^7.
|
|
96
|
+
"documents.js": "^7.2.0",
|
|
97
97
|
"zod": "^4.2.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|