@tiwater/office-mcp 0.21.9 → 0.21.11

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.
@@ -18,7 +18,8 @@
18
18
  "properties": {
19
19
  "part": {
20
20
  "type": "string",
21
- "minLength": 1
21
+ "minLength": 1,
22
+ "pattern": "^\\/"
22
23
  },
23
24
  "path": {
24
25
  "type": "string",
@@ -47,7 +48,8 @@
47
48
  "properties": {
48
49
  "part": {
49
50
  "type": "string",
50
- "minLength": 1
51
+ "minLength": 1,
52
+ "pattern": "^\\/"
51
53
  },
52
54
  "path": {
53
55
  "type": "string",
@@ -21,7 +21,8 @@
21
21
  "properties": {
22
22
  "part": {
23
23
  "type": "string",
24
- "minLength": 1
24
+ "minLength": 1,
25
+ "pattern": "^\\/"
25
26
  },
26
27
  "path": {
27
28
  "type": "string",
@@ -13,7 +13,7 @@
13
13
  "table": {
14
14
  "type": "object",
15
15
  "properties": {
16
- "part": { "type": "string", "minLength": 1 },
16
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
17
17
  "path": { "type": "string", "pattern": "^\\/" }
18
18
  },
19
19
  "required": ["part", "path"],
@@ -25,7 +25,7 @@
25
25
  "items": {
26
26
  "type": "object",
27
27
  "properties": {
28
- "part": { "type": "string", "minLength": 1 },
28
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
29
29
  "path": { "type": "string", "pattern": "^\\/" }
30
30
  },
31
31
  "required": ["part", "path"],
@@ -26,7 +26,8 @@
26
26
  "properties": {
27
27
  "part": {
28
28
  "type": "string",
29
- "minLength": 1
29
+ "minLength": 1,
30
+ "pattern": "^\\/"
30
31
  },
31
32
  "path": {
32
33
  "type": "string",
@@ -45,7 +46,8 @@
45
46
  "properties": {
46
47
  "part": {
47
48
  "type": "string",
48
- "minLength": 1
49
+ "minLength": 1,
50
+ "pattern": "^\\/"
49
51
  },
50
52
  "path": {
51
53
  "type": "string",
@@ -63,7 +65,8 @@
63
65
  "properties": {
64
66
  "part": {
65
67
  "type": "string",
66
- "minLength": 1
68
+ "minLength": 1,
69
+ "pattern": "^\\/"
67
70
  },
68
71
  "path": {
69
72
  "type": "string",
@@ -13,7 +13,7 @@
13
13
  "table": {
14
14
  "type": "object",
15
15
  "properties": {
16
- "part": { "type": "string", "minLength": 1 },
16
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
17
17
  "path": { "type": "string", "pattern": "^\\/" }
18
18
  },
19
19
  "required": ["part", "path"],
@@ -22,7 +22,7 @@
22
22
  "sourceColumn": {
23
23
  "type": "object",
24
24
  "properties": {
25
- "part": { "type": "string", "minLength": 1 },
25
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
26
26
  "path": { "type": "string", "pattern": "^\\/" }
27
27
  },
28
28
  "required": ["part", "path"],
@@ -31,7 +31,7 @@
31
31
  "before": {
32
32
  "type": "object",
33
33
  "properties": {
34
- "part": { "type": "string", "minLength": 1 },
34
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
35
35
  "path": { "type": "string", "pattern": "^\\/" }
36
36
  },
37
37
  "required": ["part", "path"],
@@ -39,7 +39,8 @@
39
39
  "properties": {
40
40
  "part": {
41
41
  "type": "string",
42
- "minLength": 1
42
+ "minLength": 1,
43
+ "pattern": "^\\/"
43
44
  },
44
45
  "path": {
45
46
  "type": "string",
@@ -21,7 +21,8 @@
21
21
  "properties": {
22
22
  "part": {
23
23
  "type": "string",
24
- "minLength": 1
24
+ "minLength": 1,
25
+ "pattern": "^\\/"
25
26
  },
26
27
  "path": {
27
28
  "type": "string",
@@ -19,7 +19,8 @@
19
19
  "properties": {
20
20
  "part": {
21
21
  "type": "string",
22
- "minLength": 1
22
+ "minLength": 1,
23
+ "pattern": "^\\/"
23
24
  },
24
25
  "path": {
25
26
  "type": "string",
@@ -15,7 +15,7 @@
15
15
  "table": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "part": { "type": "string", "minLength": 1 },
18
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
19
19
  "path": { "type": "string", "pattern": "^\\/" }
20
20
  },
21
21
  "required": ["part", "path"],
@@ -11,7 +11,7 @@
11
11
  "table": {
12
12
  "type": "object",
13
13
  "properties": {
14
- "part": { "type": "string", "minLength": 1 },
14
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
15
15
  "path": { "type": "string", "pattern": "^\\/" }
16
16
  },
17
17
  "required": ["part", "path"],
@@ -25,7 +25,7 @@
25
25
  "first": {
26
26
  "type": "object",
27
27
  "properties": {
28
- "part": { "type": "string", "minLength": 1 },
28
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
29
29
  "path": { "type": "string", "pattern": "^\\/" }
30
30
  },
31
31
  "required": ["part", "path"],
@@ -34,7 +34,7 @@
34
34
  "last": {
35
35
  "type": "object",
36
36
  "properties": {
37
- "part": { "type": "string", "minLength": 1 },
37
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
38
38
  "path": { "type": "string", "pattern": "^\\/" }
39
39
  },
40
40
  "required": ["part", "path"],
@@ -55,7 +55,7 @@
55
55
  "gridColumn": {
56
56
  "type": "object",
57
57
  "properties": {
58
- "part": { "type": "string", "minLength": 1 },
58
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
59
59
  "path": { "type": "string", "pattern": "^\\/" }
60
60
  },
61
61
  "required": ["part", "path"],
@@ -76,7 +76,7 @@
76
76
  "prototypeRow": {
77
77
  "type": "object",
78
78
  "properties": {
79
- "part": { "type": "string", "minLength": 1 },
79
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
80
80
  "path": { "type": "string", "pattern": "^\\/" }
81
81
  },
82
82
  "required": ["part", "path"],
@@ -18,7 +18,8 @@
18
18
  "properties": {
19
19
  "part": {
20
20
  "type": "string",
21
- "minLength": 1
21
+ "minLength": 1,
22
+ "pattern": "^\\/"
22
23
  },
23
24
  "path": {
24
25
  "type": "string",
@@ -21,7 +21,8 @@
21
21
  "properties": {
22
22
  "part": {
23
23
  "type": "string",
24
- "minLength": 1
24
+ "minLength": 1,
25
+ "pattern": "^\\/"
25
26
  },
26
27
  "path": {
27
28
  "type": "string",
@@ -2,7 +2,7 @@
2
2
  "schema": "tiwater.office-provider-contract-manifest/v1",
3
3
  "provider": {
4
4
  "id": "@tiwater/office-mcp",
5
- "version": "0.21.9"
5
+ "version": "0.21.11"
6
6
  },
7
7
  "tools": [
8
8
  {
@@ -42,33 +42,33 @@
42
42
  "name": "docx_copy_content",
43
43
  "providerContract": {
44
44
  "source": "packages/docx-cli/contracts/mcp-input/docx_copy_content.schema.json",
45
- "sha256": "a7b4998f8c9f6423c6d6ca5953d4b8ca5572f38dfdc23bcc06c20c7c488af727"
45
+ "sha256": "2b0c9f7e02262fef4b7bc7c9f7e4d639df808fa38ccc29dd702e4812691fdf58"
46
46
  },
47
47
  "inputContract": {
48
48
  "path": "office/contracts/docx_copy_content.schema.json",
49
- "sha256": "a7b4998f8c9f6423c6d6ca5953d4b8ca5572f38dfdc23bcc06c20c7c488af727"
49
+ "sha256": "2b0c9f7e02262fef4b7bc7c9f7e4d639df808fa38ccc29dd702e4812691fdf58"
50
50
  }
51
51
  },
52
52
  {
53
53
  "name": "docx_delete_object",
54
54
  "providerContract": {
55
55
  "source": "packages/docx-cli/contracts/mcp-input/docx_delete_object.schema.json",
56
- "sha256": "4497eb24df0e5631601232a8b35a9eddf914d02146992dd22f1cfba93ef7780f"
56
+ "sha256": "b404578b12cde9951ad129b3f2ff8c7839fe8d442b1433a259af072b09bffa5d"
57
57
  },
58
58
  "inputContract": {
59
59
  "path": "office/contracts/docx_delete_object.schema.json",
60
- "sha256": "4497eb24df0e5631601232a8b35a9eddf914d02146992dd22f1cfba93ef7780f"
60
+ "sha256": "b404578b12cde9951ad129b3f2ff8c7839fe8d442b1433a259af072b09bffa5d"
61
61
  }
62
62
  },
63
63
  {
64
64
  "name": "docx_delete_table_columns",
65
65
  "providerContract": {
66
66
  "source": "packages/docx-cli/contracts/mcp-input/docx_delete_table_columns.schema.json",
67
- "sha256": "4ce8f6d047fe30f50c711a4d9c1ee10efd6de886294f217e5d11f0bab58c9a90"
67
+ "sha256": "01b0e558d5076bbe5c5ce415a969e30cfa3d8a0ed5e8088264cd9a55805aa5e9"
68
68
  },
69
69
  "inputContract": {
70
70
  "path": "office/contracts/docx_delete_table_columns.schema.json",
71
- "sha256": "4ce8f6d047fe30f50c711a4d9c1ee10efd6de886294f217e5d11f0bab58c9a90"
71
+ "sha256": "01b0e558d5076bbe5c5ce415a969e30cfa3d8a0ed5e8088264cd9a55805aa5e9"
72
72
  }
73
73
  },
74
74
  {
@@ -86,22 +86,22 @@
86
86
  "name": "docx_insert_objects",
87
87
  "providerContract": {
88
88
  "source": "packages/docx-cli/contracts/mcp-input/docx_insert_objects.schema.json",
89
- "sha256": "7cf239b13a9a5bfe15d426f9ed5747c5900a908d4877eeb77ddd9088afe8966f"
89
+ "sha256": "3f8700b58a6bbdce02db48025fcdc887d1c3b36f445efd6bc9ac0a78a51147de"
90
90
  },
91
91
  "inputContract": {
92
92
  "path": "office/contracts/docx_insert_objects.schema.json",
93
- "sha256": "7cf239b13a9a5bfe15d426f9ed5747c5900a908d4877eeb77ddd9088afe8966f"
93
+ "sha256": "3f8700b58a6bbdce02db48025fcdc887d1c3b36f445efd6bc9ac0a78a51147de"
94
94
  }
95
95
  },
96
96
  {
97
97
  "name": "docx_insert_table_columns",
98
98
  "providerContract": {
99
99
  "source": "packages/docx-cli/contracts/mcp-input/docx_insert_table_columns.schema.json",
100
- "sha256": "bd07a489c6b6cd3538e133b99613fac84438de3097ff6ed8f5f1a32ef18a7b5a"
100
+ "sha256": "22293fe0a72f79f4f35ecc149343a8b1551eba06f63144b94757439e6a55aaaf"
101
101
  },
102
102
  "inputContract": {
103
103
  "path": "office/contracts/docx_insert_table_columns.schema.json",
104
- "sha256": "bd07a489c6b6cd3538e133b99613fac84438de3097ff6ed8f5f1a32ef18a7b5a"
104
+ "sha256": "22293fe0a72f79f4f35ecc149343a8b1551eba06f63144b94757439e6a55aaaf"
105
105
  }
106
106
  },
107
107
  {
@@ -119,44 +119,44 @@
119
119
  "name": "docx_list_objects",
120
120
  "providerContract": {
121
121
  "source": "packages/docx-cli/contracts/mcp-input/docx_list_objects.schema.json",
122
- "sha256": "ef7132022feacb423cae3d2b90ad868b6c0b8ae13a0a1b70f481d3df1a04d7c5"
122
+ "sha256": "2ec7bdb24373313e24bd7834c75df603b6b892df519edfca3bdf7bd7288b4d49"
123
123
  },
124
124
  "inputContract": {
125
125
  "path": "office/contracts/docx_list_objects.schema.json",
126
- "sha256": "ef7132022feacb423cae3d2b90ad868b6c0b8ae13a0a1b70f481d3df1a04d7c5"
126
+ "sha256": "2ec7bdb24373313e24bd7834c75df603b6b892df519edfca3bdf7bd7288b4d49"
127
127
  }
128
128
  },
129
129
  {
130
130
  "name": "docx_merge_cells",
131
131
  "providerContract": {
132
132
  "source": "packages/docx-cli/contracts/mcp-input/docx_merge_cells.schema.json",
133
- "sha256": "2106f2b2a39f47fb766e43bcb9a6e586827b3f31a079d875b6cc5c647d253dd4"
133
+ "sha256": "5c9772748619aa8a30e663be8ed7d27f4f185dedaf5b13bfbadbc43342a17d54"
134
134
  },
135
135
  "inputContract": {
136
136
  "path": "office/contracts/docx_merge_cells.schema.json",
137
- "sha256": "2106f2b2a39f47fb766e43bcb9a6e586827b3f31a079d875b6cc5c647d253dd4"
137
+ "sha256": "5c9772748619aa8a30e663be8ed7d27f4f185dedaf5b13bfbadbc43342a17d54"
138
138
  }
139
139
  },
140
140
  {
141
141
  "name": "docx_read_object",
142
142
  "providerContract": {
143
143
  "source": "packages/docx-cli/contracts/mcp-input/docx_read_object.schema.json",
144
- "sha256": "78c7d18eed3d7b3019ff93c18b846877844e8fb1a523a8ceb4817519e63caa46"
144
+ "sha256": "c9d231afedc760f445896bbf79bbf86f405061d8b9c808117a7ff1c52b457ec5"
145
145
  },
146
146
  "inputContract": {
147
147
  "path": "office/contracts/docx_read_object.schema.json",
148
- "sha256": "78c7d18eed3d7b3019ff93c18b846877844e8fb1a523a8ceb4817519e63caa46"
148
+ "sha256": "c9d231afedc760f445896bbf79bbf86f405061d8b9c808117a7ff1c52b457ec5"
149
149
  }
150
150
  },
151
151
  {
152
152
  "name": "docx_read_table",
153
153
  "providerContract": {
154
154
  "source": "packages/docx-cli/contracts/mcp-input/docx_read_table.schema.json",
155
- "sha256": "4fcc4a5e22c844ceef0d6e3fe18449020257cdcde5c6e1ee73ab178f715dd4c1"
155
+ "sha256": "a5e41876565bce998b74f6a29dff16594be1773e2f582bd1987d56a76eff9935"
156
156
  },
157
157
  "inputContract": {
158
158
  "path": "office/contracts/docx_read_table.schema.json",
159
- "sha256": "4fcc4a5e22c844ceef0d6e3fe18449020257cdcde5c6e1ee73ab178f715dd4c1"
159
+ "sha256": "a5e41876565bce998b74f6a29dff16594be1773e2f582bd1987d56a76eff9935"
160
160
  }
161
161
  },
162
162
  {
@@ -185,33 +185,33 @@
185
185
  "name": "docx_set_table_body",
186
186
  "providerContract": {
187
187
  "source": "packages/docx-cli/contracts/mcp-input/docx_set_table_body.schema.json",
188
- "sha256": "10ece7fbf7116c55b7c29e3657d6350895389e92543f08c34dc15af97b444ceb"
188
+ "sha256": "4995a30f82bcd0be5b46413daceca43f6d1fcad05814e4b70000c9e0f3014ba2"
189
189
  },
190
190
  "inputContract": {
191
191
  "path": "office/contracts/docx_set_table_body.schema.json",
192
- "sha256": "10ece7fbf7116c55b7c29e3657d6350895389e92543f08c34dc15af97b444ceb"
192
+ "sha256": "4995a30f82bcd0be5b46413daceca43f6d1fcad05814e4b70000c9e0f3014ba2"
193
193
  }
194
194
  },
195
195
  {
196
196
  "name": "docx_set_text",
197
197
  "providerContract": {
198
198
  "source": "packages/docx-cli/contracts/mcp-input/docx_set_text.schema.json",
199
- "sha256": "9feca848acff5ff7c0f2e08f618e183494959b5a74e9e37e06086d7a627810ca"
199
+ "sha256": "a1167f0f39e799dd354f68ebaa1f200ae08ff75241210526809c6688d6833302"
200
200
  },
201
201
  "inputContract": {
202
202
  "path": "office/contracts/docx_set_text.schema.json",
203
- "sha256": "9feca848acff5ff7c0f2e08f618e183494959b5a74e9e37e06086d7a627810ca"
203
+ "sha256": "a1167f0f39e799dd354f68ebaa1f200ae08ff75241210526809c6688d6833302"
204
204
  }
205
205
  },
206
206
  {
207
207
  "name": "docx_split_cells",
208
208
  "providerContract": {
209
209
  "source": "packages/docx-cli/contracts/mcp-input/docx_split_cells.schema.json",
210
- "sha256": "085a5b8e924c68958752eeb2de9644a3084c249408e9f135ee936f14e9ce5f9b"
210
+ "sha256": "3a656fa60ac9845237221b3fd42e28a3c013756023f18acfa72ba146114cdcd7"
211
211
  },
212
212
  "inputContract": {
213
213
  "path": "office/contracts/docx_split_cells.schema.json",
214
- "sha256": "085a5b8e924c68958752eeb2de9644a3084c249408e9f135ee936f14e9ce5f9b"
214
+ "sha256": "3a656fa60ac9845237221b3fd42e28a3c013756023f18acfa72ba146114cdcd7"
215
215
  }
216
216
  },
217
217
  {
package/office/index.mjs CHANGED
@@ -417,7 +417,7 @@ const tools = [
417
417
  },
418
418
  {
419
419
  name: 'docx_set_text',
420
- description: 'Replace the whole text content of observed paragraph or cell objects while retaining target formatting, bookmarks, spans, and vertical merges. For a vertically merged logical cell, write its visible text to the restart cell rather than a continue cell. Tabs and line breaks remain native document text controls; targets containing non-text objects are rejected. This sets already-derived text; it does not insert objects, change table structure, copy source formatting, or decide business wording.',
420
+ description: 'Replace the whole text content of paragraph or cell objects observed from this exact input DOCX while retaining target formatting, bookmarks, spans, and vertical merges. For a vertically merged logical cell, write its visible text to the restart cell rather than a continue cell. Tabs and line breaks remain native document text controls; targets containing non-text objects are rejected. This sets already-derived text; it does not insert objects, change table structure, copy source formatting, or decide business wording.',
421
421
  inputSchema: inputContract('docx_set_text'),
422
422
  outputSchema: fixedEditOutput('docx_set_text'),
423
423
  handler: args => fixedEdit('docx_set_text', args),
@@ -640,7 +640,7 @@ function buildServer() {
640
640
  const server = new McpServer(
641
641
  { name: 'tiwater-office', version: packageMetadata.version },
642
642
  {
643
- instructions: 'Use these tools only for generic Office observation, conversion, editing, validation, and native rendering. Callers own all selected objects, values, and business decisions. A read-only output path is an immutable artifact identity: an identical request may replay it; every different request uses a different path. Every mutation receiptOutput is a new immutable receipt identity for that exact call and must use a path that has never been used, including when the same document object is updated again.',
643
+ instructions: 'Use these tools only for generic Office observation, conversion, editing, validation, and native rendering. Callers own all selected objects, values, and business decisions. Every native DOCX address belongs only to the exact input file whose observation returned it and must not be reused with another DOCX. A read-only output path is an immutable artifact identity: an identical request may replay it; every different request uses a different path. Every mutation receiptOutput is a new immutable receipt identity for that exact call and must use a path that has never been used, including when the same document object is updated again.',
644
644
  },
645
645
  );
646
646
  for (const tool of tools) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.21.9",
3
+ "version": "0.21.11",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",