@carbonaitech/ottofiles-mcp 1.0.0 → 1.1.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.
Files changed (84) hide show
  1. package/README.md +161 -16
  2. package/dist/content.js +22 -0
  3. package/dist/content.js.map +1 -0
  4. package/dist/gateway.js +45 -17
  5. package/dist/gateway.js.map +1 -1
  6. package/dist/guard.js +39 -6
  7. package/dist/guard.js.map +1 -1
  8. package/dist/http.js +548 -0
  9. package/dist/http.js.map +1 -0
  10. package/dist/index.js +53 -225
  11. package/dist/index.js.map +1 -1
  12. package/dist/introspect.js +285 -0
  13. package/dist/introspect.js.map +1 -0
  14. package/dist/readTools.js +130 -0
  15. package/dist/readTools.js.map +1 -0
  16. package/dist/tools/addWorkspaceDocuments.js +4 -4
  17. package/dist/tools/addWorkspaceDocuments.js.map +1 -1
  18. package/dist/tools/addWorkspaceMember.js +3 -3
  19. package/dist/tools/addWorkspaceMember.js.map +1 -1
  20. package/dist/tools/createDocument.js +478 -0
  21. package/dist/tools/createDocument.js.map +1 -0
  22. package/dist/tools/createWorkspace.js +27 -9
  23. package/dist/tools/createWorkspace.js.map +1 -1
  24. package/dist/tools/deleteWorkspace.js +3 -5
  25. package/dist/tools/deleteWorkspace.js.map +1 -1
  26. package/dist/tools/documentAccessRoster.js +25 -10
  27. package/dist/tools/documentAccessRoster.js.map +1 -1
  28. package/dist/tools/editMetadata.js +2 -2
  29. package/dist/tools/editMetadata.js.map +1 -1
  30. package/dist/tools/getDocument.js +3 -3
  31. package/dist/tools/getDocument.js.map +1 -1
  32. package/dist/tools/getDocumentHistory.js +5 -5
  33. package/dist/tools/getDocumentHistory.js.map +1 -1
  34. package/dist/tools/getDocumentVersions.js +3 -3
  35. package/dist/tools/getDocumentVersions.js.map +1 -1
  36. package/dist/tools/getPolicyStats.js +4 -4
  37. package/dist/tools/getPolicyStats.js.map +1 -1
  38. package/dist/tools/groupDocuments.js +35 -14
  39. package/dist/tools/groupDocuments.js.map +1 -1
  40. package/dist/tools/guarded.js +49 -6
  41. package/dist/tools/guarded.js.map +1 -1
  42. package/dist/tools/listCompanies.js +2 -2
  43. package/dist/tools/listCompanies.js.map +1 -1
  44. package/dist/tools/listPolicies.js +3 -3
  45. package/dist/tools/listPolicies.js.map +1 -1
  46. package/dist/tools/listWorkspaces.js +18 -4
  47. package/dist/tools/listWorkspaces.js.map +1 -1
  48. package/dist/tools/lockDocument.js +1 -1
  49. package/dist/tools/lockDocument.js.map +1 -1
  50. package/dist/tools/manageAccess.js +60 -101
  51. package/dist/tools/manageAccess.js.map +1 -1
  52. package/dist/tools/myAccess.js +5 -5
  53. package/dist/tools/myAccess.js.map +1 -1
  54. package/dist/tools/policyAccessRoster.js +23 -9
  55. package/dist/tools/policyAccessRoster.js.map +1 -1
  56. package/dist/tools/reactivateWorkspace.js +2 -2
  57. package/dist/tools/reactivateWorkspace.js.map +1 -1
  58. package/dist/tools/removeWorkspaceDocument.js +3 -7
  59. package/dist/tools/removeWorkspaceDocument.js.map +1 -1
  60. package/dist/tools/removeWorkspaceMember.js +4 -4
  61. package/dist/tools/removeWorkspaceMember.js.map +1 -1
  62. package/dist/tools/rosterCounts.js +12 -0
  63. package/dist/tools/rosterCounts.js.map +1 -0
  64. package/dist/tools/searchContent.js +14 -8
  65. package/dist/tools/searchContent.js.map +1 -1
  66. package/dist/tools/searchDocuments.js +20 -14
  67. package/dist/tools/searchDocuments.js.map +1 -1
  68. package/dist/tools/setStatus.js +3 -3
  69. package/dist/tools/setStatus.js.map +1 -1
  70. package/dist/tools/shareDocument.js +20 -16
  71. package/dist/tools/shareDocument.js.map +1 -1
  72. package/dist/tools/switchCompany.js +1 -2
  73. package/dist/tools/switchCompany.js.map +1 -1
  74. package/dist/tools/unlockDocument.js +2 -2
  75. package/dist/tools/unlockDocument.js.map +1 -1
  76. package/dist/tools/unshareDocument.js +7 -7
  77. package/dist/tools/unshareDocument.js.map +1 -1
  78. package/dist/tools/uploadVersion.js +18 -10
  79. package/dist/tools/uploadVersion.js.map +1 -1
  80. package/package.json +7 -5
  81. package/dist/tools/deleteDocument.js +0 -98
  82. package/dist/tools/deleteDocument.js.map +0 -1
  83. package/dist/tools/restoreDocument.js +0 -101
  84. package/dist/tools/restoreDocument.js.map +0 -1
package/dist/index.js CHANGED
@@ -8,25 +8,15 @@ import { loadConfig } from "./config.js";
8
8
  import { setElicitor } from "./elicit.js";
9
9
  import { TokenProvider } from "./auth.js";
10
10
  import { OAuthTokenProvider } from "./oauth.js";
11
- import { GatewayClient, GatewayError } from "./gateway.js";
12
- import { searchDocumentsInput, runSearchDocuments, } from "./tools/searchDocuments.js";
13
- import { groupDocumentsInput, runGroupDocuments, } from "./tools/groupDocuments.js";
14
- import { listPoliciesInput, runListPolicies } from "./tools/listPolicies.js";
15
- import { getDocumentInput, runGetDocument } from "./tools/getDocument.js";
16
- import { documentAccessRosterInput, runDocumentAccessRoster, } from "./tools/documentAccessRoster.js";
17
- import { getDocumentVersionsInput, runGetDocumentVersions, } from "./tools/getDocumentVersions.js";
18
- import { listWorkspacesInput, runListWorkspaces, } from "./tools/listWorkspaces.js";
19
- import { policyAccessRosterInput, runPolicyAccessRoster, } from "./tools/policyAccessRoster.js";
20
- import { getPolicyStatsInput, runGetPolicyStats } from "./tools/getPolicyStats.js";
21
- import { searchContentInput, runSearchContent } from "./tools/searchContent.js";
22
- import { getDocumentHistoryInput, runGetDocumentHistory, } from "./tools/getDocumentHistory.js";
23
- import { myAccessInput, runMyAccess } from "./tools/myAccess.js";
24
- import { listCompaniesInput, runListCompanies, } from "./tools/listCompanies.js";
11
+ import { GatewayClient } from "./gateway.js";
12
+ import { jsonContent, errorContent } from "./content.js";
13
+ import { registerReadTools } from "./readTools.js";
25
14
  import { switchCompanyInput, runSwitchCompany, } from "./tools/switchCompany.js";
26
15
  import { setStatusInput, runSetStatus } from "./tools/setStatus.js";
27
16
  import { editMetadataInput, runEditMetadata } from "./tools/editMetadata.js";
28
17
  import { manageAccessInput, runManageAccess } from "./tools/manageAccess.js";
29
18
  import { uploadVersionInput, runUploadVersion } from "./tools/uploadVersion.js";
19
+ import { createDocumentInput, runCreateDocument } from "./tools/createDocument.js";
30
20
  import { lockDocumentInput, runLockDocument } from "./tools/lockDocument.js";
31
21
  import { unlockDocumentInput, runUnlockDocument } from "./tools/unlockDocument.js";
32
22
  import { shareDocumentInput, runShareDocument } from "./tools/shareDocument.js";
@@ -49,208 +39,15 @@ function readVersion() {
49
39
  return "0.0.0";
50
40
  }
51
41
  }
52
- function jsonContent(data) {
53
- return {
54
- content: [
55
- { type: "text", text: JSON.stringify(data, null, 2) },
56
- ],
57
- };
58
- }
59
- function errorContent(err) {
60
- let text;
61
- if (err instanceof GatewayError) {
62
- text =
63
- `OttoFiles request failed (HTTP ${err.status}).\n${err.message}` +
64
- (err.body ? `\nResponse: ${err.body.slice(0, 800)}` : "");
65
- }
66
- else if (err instanceof Error) {
67
- text = err.message;
68
- }
69
- else {
70
- text = String(err);
71
- }
72
- return { isError: true, content: [{ type: "text", text }] };
73
- }
74
- async function main() {
75
- const config = loadConfig();
76
- const tokens = config.mode === "interactive"
77
- ? new OAuthTokenProvider(config)
78
- : new TokenProvider(config);
79
- console.error(`ottofiles-mcp: auth mode = ${config.mode}`);
80
- const gateway = new GatewayClient(config, tokens);
42
+ // Builds the full stdio tool surface (read tools plus the stdio-only write tools
43
+ // and switch_company). The hosted HTTP transport registers only the read tools.
44
+ export function buildServer(gateway, config, tokens) {
81
45
  const server = new McpServer({
82
46
  name: "ottofiles-mcp",
83
47
  version: readVersion(),
84
48
  });
85
- server.registerTool("search_documents", {
86
- title: "Search OttoFiles documents",
87
- description: "Search documents across the caller's accessible OttoFiles policies with rich filters, sorting and pagination. Results are scoped by the acting user's tier and ACLs. Use this to find documents by text, number, type, status, policy, or date.",
88
- inputSchema: searchDocumentsInput,
89
- annotations: { readOnlyHint: true },
90
- }, async (args) => {
91
- try {
92
- return jsonContent(await runSearchDocuments(gateway, args));
93
- }
94
- catch (err) {
95
- return errorContent(err);
96
- }
97
- });
98
- server.registerTool("group_documents", {
99
- title: "Group / summarize OttoFiles documents",
100
- description: "Bucket the caller's accessible documents by a field (policyId, statusCodeId, tierId, documentType, or anchor:<Name>) and return per-bucket counts and last-modified dates. Use this for summaries like 'how many documents per status' over the whole corpus, not a page.",
101
- inputSchema: groupDocumentsInput,
102
- annotations: { readOnlyHint: true },
103
- }, async (args) => {
104
- try {
105
- return jsonContent(await runGroupDocuments(gateway, args));
106
- }
107
- catch (err) {
108
- return errorContent(err);
109
- }
110
- });
111
- server.registerTool("list_policies", {
112
- title: "List OttoFiles policies",
113
- description: "List the caller's accessible OttoFiles policies (formerly 'bins') with code, name, description and document count. Filter by search/state, paged. Use this to discover policy ids for scoping document searches.",
114
- inputSchema: listPoliciesInput,
115
- annotations: { readOnlyHint: true },
116
- }, async (args) => {
117
- try {
118
- return jsonContent(await runListPolicies(gateway, args));
119
- }
120
- catch (err) {
121
- return errorContent(err);
122
- }
123
- });
124
- server.registerTool("get_document", {
125
- title: "Get an OttoFiles document",
126
- description: "Fetch full detail for one document by its GUID: title, number, policy, status, version info, file metadata, lock state, and anchor (metadata) values. Subject to the caller's access.",
127
- inputSchema: getDocumentInput,
128
- annotations: { readOnlyHint: true },
129
- }, async (args) => {
130
- try {
131
- return jsonContent(await runGetDocument(gateway, args));
132
- }
133
- catch (err) {
134
- return errorContent(err);
135
- }
136
- });
137
- server.registerTool("document_access_roster", {
138
- title: "Document access roster",
139
- description: "List which users can access a given document and who is denied, with effective tier rank and access/denied counts. Use this to answer 'who can see this document'.",
140
- inputSchema: documentAccessRosterInput,
141
- annotations: { readOnlyHint: true },
142
- }, async (args) => {
143
- try {
144
- return jsonContent(await runDocumentAccessRoster(gateway, args));
145
- }
146
- catch (err) {
147
- return errorContent(err);
148
- }
149
- });
150
- server.registerTool("get_document_versions", {
151
- title: "List a document's versions",
152
- description: "List every version of a document (increment number, version label, file, upload status, who uploaded and when). Use this for version history.",
153
- inputSchema: getDocumentVersionsInput,
154
- annotations: { readOnlyHint: true },
155
- }, async (args) => {
156
- try {
157
- return jsonContent(await runGetDocumentVersions(gateway, args));
158
- }
159
- catch (err) {
160
- return errorContent(err);
161
- }
162
- });
163
- server.registerTool("get_policy_stats", {
164
- title: "Get policy statistics",
165
- description: "Aggregate stats for one policy: document count, storage used, counts by type and status, top contributors, and recent activity. Requires admin, an open published policy, or a Policy.Read grant.",
166
- inputSchema: getPolicyStatsInput,
167
- annotations: { readOnlyHint: true },
168
- }, async (args) => {
169
- try {
170
- return jsonContent(await runGetPolicyStats(gateway, args));
171
- }
172
- catch (err) {
173
- return errorContent(err);
174
- }
175
- });
176
- server.registerTool("list_workspaces", {
177
- title: "List OttoFiles workspaces",
178
- description: "List the caller's accessible workspaces (external document-share spaces) with title, document count, member count, and expiry/revocation state.",
179
- inputSchema: listWorkspacesInput,
180
- annotations: { readOnlyHint: true },
181
- }, async (args) => {
182
- try {
183
- return jsonContent(await runListWorkspaces(gateway, args));
184
- }
185
- catch (err) {
186
- return errorContent(err);
187
- }
188
- });
189
- server.registerTool("policy_access_roster", {
190
- title: "Policy access roster",
191
- description: "List which users can access a given policy and who is denied, with effective tier rank and access/denied counts. Use this to answer 'who can see this policy'.",
192
- inputSchema: policyAccessRosterInput,
193
- annotations: { readOnlyHint: true },
194
- }, async (args) => {
195
- try {
196
- return jsonContent(await runPolicyAccessRoster(gateway, args));
197
- }
198
- catch (err) {
199
- return errorContent(err);
200
- }
201
- });
202
- server.registerTool("search_content", {
203
- title: "Search inside OttoFiles document content",
204
- description: "Search the extracted text of document files (not just title/number/tags). Results include documents matched on metadata or on extracted body text, so totalCount is not a count of content hits; matchedInContent (true) and contentSnippet indicate a body-text hit. Scoped by the caller's tier and ACLs; only documents whose content has been extracted and indexed can match.",
205
- inputSchema: searchContentInput,
206
- annotations: { readOnlyHint: true },
207
- }, async (args) => {
208
- try {
209
- return jsonContent(await runSearchContent(gateway, args));
210
- }
211
- catch (err) {
212
- return errorContent(err);
213
- }
214
- });
215
- server.registerTool("get_document_history", {
216
- title: "Get a document's history",
217
- description: "Audit trail for one document, including version lifecycle events (delete/restore): who did what and when, with before/after values for changed fields. Requires access to the document.",
218
- inputSchema: getDocumentHistoryInput,
219
- annotations: { readOnlyHint: true },
220
- }, async (args) => {
221
- try {
222
- return jsonContent(await runGetDocumentHistory(gateway, args));
223
- }
224
- catch (err) {
225
- return errorContent(err);
226
- }
227
- });
228
- server.registerTool("my_access", {
229
- title: "My OttoFiles access",
230
- description: "The signed-in user's own access footprint: profile and roles, security tier, per-policy tier overrides, and the policies they can see.",
231
- inputSchema: myAccessInput,
232
- annotations: { readOnlyHint: true },
233
- }, async (args) => {
234
- try {
235
- return jsonContent(await runMyAccess(gateway, args));
236
- }
237
- catch (err) {
238
- return errorContent(err);
239
- }
240
- });
241
- server.registerTool("list_companies", {
242
- title: "List my OttoFiles companies",
243
- description: "List the companies (id and name) the signed-in user belongs to. Use the id with switch_company.",
244
- inputSchema: listCompaniesInput,
245
- annotations: { readOnlyHint: true },
246
- }, async (args) => {
247
- try {
248
- return jsonContent(await runListCompanies(gateway, args));
249
- }
250
- catch (err) {
251
- return errorContent(err);
252
- }
253
- });
49
+ // Read-only tools, shared with the hosted HTTP transport (src/http.ts).
50
+ registerReadTools(server, gateway);
254
51
  server.registerTool("switch_company", {
255
52
  title: "Switch active OttoFiles company",
256
53
  description: "STATE-CHANGING. Switch the signed-in user's active company and refresh the OAuth token so all subsequent tools run against that company. This changes the active company for the whole MCP session, and the token cache is shared, so other MCP instances using the same cache are affected too. Interactive OAuth mode only (not supported in headless client_credentials mode). Returns the new active company.",
@@ -291,7 +88,7 @@ async function main() {
291
88
  });
292
89
  server.registerTool("manage_access", {
293
90
  title: "Manage a user's access to a document",
294
- description: "STATE-CHANGING, HIGH IMPACT: changes WHO CAN SEE a single DOCUMENT. Document-scoped only; it does not touch policy-level access or security tiers. Actions: grant (add an explicit per-document grant, level Read or Admin; Admin lets the user edit/manage the document), revoke (remove the user's explicit grants; the user KEEPS access if their security tier already allows it, so revoke may not hide the document: use deny for that), deny (explicit deny; wins over tier and grants, blocks the user entirely, and DESTROYS any existing explicit grant in place), undeny (remove an explicit deny; a prior grant that the deny replaced is NOT restored). Identify the user by exactly one of userEmail (login/username) or userId. Two-step: call with confirm omitted/false for a preview roster delta (current vs proposed access for the target, willChange, who currently has access counts; nothing is written), then call again with confirm:true. Optional expectedFromState (from the preview) aborts if the user's access moved. Revoking or denying YOUR OWN access additionally requires confirmSelfChange:true. Idempotent: if the user is already in the desired state nothing is written. Requires the Administrator role. Grant/revoke are applied by a background job (~15-40s); the tool polls the job and reports pending if it has not landed, in which case do not deny/undeny or re-grant that user until it does. The preview reports the user's current grant levels; granting Admin to a user who holds only Read upgrades them. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
91
+ description: "STATE-CHANGING, HIGH IMPACT: removes or blocks a user's access to a single DOCUMENT. Document-scoped only; it does not touch policy-level access or security tiers. It cannot grant: grants come only from document shares and workspaces, so use share_document to give a user access. Actions: revoke (remove the user's explicit Read/Admin grants; the user KEEPS access if their security tier already allows it, so revoke may not hide the document: use deny for that; a share record the grant came from stays in place, so prefer unshare_document for shared users), deny (explicit deny; wins over tier and grants, blocks the user entirely, and DESTROYS any existing explicit grant in place), undeny (remove an explicit deny; a prior grant that the deny replaced is NOT restored). Identify the user by exactly one of userEmail (login/username) or userId. Two-step: call with confirm omitted/false for a preview (current vs proposed access for the target, their current grant levels, willChange, page-1 roster counts; nothing is written), then call again with confirm:true. Optional expectedFromState (from the preview) aborts if the user's access moved. Revoking or denying YOUR OWN access additionally requires confirmSelfChange:true. Idempotent: if the user is already in the desired state nothing is written. Requires the Administrator role. Revoke is applied by a background job (~15-40s); the tool polls and reports pending if it has not landed, in which case do not deny/undeny that user until it does. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
295
92
  inputSchema: manageAccessInput,
296
93
  annotations: { destructiveHint: true, idempotentHint: true },
297
94
  }, async (args) => {
@@ -320,6 +117,24 @@ async function main() {
320
117
  return errorContent(err);
321
118
  }
322
119
  });
120
+ server.registerTool("create_document", {
121
+ title: "Create a new document in a policy",
122
+ description: "STATE-CHANGING, additive. Creates a BRAND-NEW document in an EXPLICIT policy (policyId is required; no inference — call list_policies if you don't know it) and uploads a file as its first version. The target policy must be Published (drafts hold no documents and are refused) and you must be able to create in it. You MUST supply a value for every number-forming anchor (an anchor whose name is part of the policy's document-number pattern); other anchors are optional. tierRank defaults to the policy's default document tier (and is REQUIRED when the policy has no default document tier); statusCodeId defaults to the policy's default status code. filePath is an ABSOLUTE path under a directory configured in OTTOFILES_UPLOAD_ROOTS (default none, so uploads are refused). Two-step: call with confirm omitted/false for a preview (target policy, the RENDERED document number, anchor values, tier, status, file; nothing is created), then call again with confirm:true. NOT idempotent across different content; the SAME confirmation (the same previewToken) is de-duplicated, but after a failure whose outcome is unknown a fresh preview may create a duplicate, so check search_documents first; pass allowDuplicate:true to force a second independent document. If the create succeeds but the file upload fails, the response says so — use upload_version to attach the file, do NOT create the document again. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
123
+ inputSchema: createDocumentInput,
124
+ annotations: {
125
+ readOnlyHint: false,
126
+ destructiveHint: false,
127
+ idempotentHint: false,
128
+ openWorldHint: false,
129
+ },
130
+ }, async (args) => {
131
+ try {
132
+ return jsonContent(await runCreateDocument(gateway, config, args));
133
+ }
134
+ catch (err) {
135
+ return errorContent(err);
136
+ }
137
+ });
323
138
  server.registerTool("lock_document", {
324
139
  title: "Lock (check out) a document",
325
140
  description: "STATE-CHANGING. Lock a document so other users cannot edit it (check-out). Two-step: call with confirm omitted/false for a preview (current lock state, no change), then confirm:true. Idempotent: locking a document you already hold is a no-op. Fails if another user holds the lock. Locks never expire; release with unlock_document. Requires Document.Admin on the document. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
@@ -348,7 +163,7 @@ async function main() {
348
163
  });
349
164
  server.registerTool("share_document", {
350
165
  title: "Share a document with a colleague",
351
- description: "STATE-CHANGING. Share a document with a user in your company: creates a first-class share (appears in the recipient's \"shared with me\", optional message and expiry) AND grants them Read or Admin on the document. Distinct from manage_access, which only edits the raw ACL with no share record or message. Identify the recipient by exactly one of recipientEmail (login) or recipientUserId. Two-step: call with confirm omitted/false for a preview (recipient, current share state, willChange; nothing is written), then confirm:true. Idempotent: already shared at the requested level is a no-op. An existing share cannot change level in place: unshare_document first. Admin lets the recipient edit and manage the document. Requires Document.Admin. Internal in-company shares only (not workspace/portal/external). Reverse with unshare_document. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
166
+ description: "STATE-CHANGING. Share a document with a user in your company: creates a first-class share (appears in the recipient's \"shared with me\", optional message and expiry) AND grants them Read or Admin on the document. This is the way to give an in-company user explicit access to a document; manage_access can only revoke, deny or undeny. Identify the recipient by exactly one of recipientEmail (login) or recipientUserId. Two-step: call with confirm omitted/false for a preview (recipient, current share state, willChange; nothing is written), then confirm:true. Idempotent: already shared at the requested level is a no-op. A Read share asked for Admin is upgraded in place; lowering Admin to Read needs unshare_document first. Admin lets the recipient edit and manage the document. Requires Document.Admin. Internal in-company shares only (not workspace/portal/external). Reverse with unshare_document. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
352
167
  inputSchema: shareDocumentInput,
353
168
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
354
169
  }, async (args) => {
@@ -361,7 +176,7 @@ async function main() {
361
176
  });
362
177
  server.registerTool("unshare_document", {
363
178
  title: "Remove a document share",
364
- description: "STATE-CHANGING. Revoke an internal document share created by share_document: removes the share and ALL explicit Read/Admin grants the recipient holds on the document, including any made via manage_access (they keep access only if their security tier allows it; use manage_access deny to block). An explicit shareId is always attempted even if not in the active list, which clears an expired share. Identify the share by exactly one of shareId, recipientUserId or recipientEmail. Two-step: call with confirm omitted/false for a preview (who loses access and at what level; nothing is written), then confirm:true. Idempotent: no matching share (or already gone) is a no-op. Requires Document.Admin. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
179
+ description: "STATE-CHANGING. Revoke an internal document share created by share_document: removes the share and the recipient's explicit grant at the share's level (they keep access only if their security tier or another grant allows it; use manage_access deny to block). An explicit shareId is always attempted even if not in the active list, which clears an expired share. Identify the share by exactly one of shareId, recipientUserId or recipientEmail. Two-step: call with confirm omitted/false for a preview (who loses access and at what level; nothing is written), then confirm:true. Idempotent: no matching share (or already gone) is a no-op. Requires Document.Admin. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
365
180
  inputSchema: unshareDocumentInput,
366
181
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
367
182
  }, async (args) => {
@@ -387,7 +202,7 @@ async function main() {
387
202
  });
388
203
  server.registerTool("delete_workspace", {
389
204
  title: "Revoke a workspace",
390
- description: "STATE-CHANGING. Revokes (soft-deletes) a workspace, immediately dropping external portal access for all its members; documents are untouched; reversible via reactivate_workspace. NOTE: there is no owner check, so any company user can revoke any workspace in the company: verify it is the intended one. Two-step: call with confirm omitted/false for a preview (member/external counts, nothing changes), then confirm:true. Idempotent: an already-revoked workspace is a no-op. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
205
+ description: "STATE-CHANGING. Revokes (soft-deletes) a workspace, immediately dropping external portal access for all its members; documents are untouched; reversible via reactivate_workspace. Requires the workspace owner or an admin. Two-step: call with confirm omitted/false for a preview (member/external counts, nothing changes), then confirm:true. Idempotent: an already-revoked workspace is a no-op. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
391
206
  inputSchema: deleteWorkspaceInput,
392
207
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
393
208
  }, async (args) => {
@@ -400,7 +215,7 @@ async function main() {
400
215
  });
401
216
  server.registerTool("reactivate_workspace", {
402
217
  title: "Reactivate a revoked workspace",
403
- description: "STATE-CHANGING. Reactivates a revoked workspace, which RESTORES portal access (including for EXTERNAL members) and may re-notify them. Two-step: call with confirm omitted/false for a preview listing the external members (nothing changes), then confirm:true. Refused if the workspace expiry has passed. If any member is external, confirm needs the client's human confirmation or, when the client cannot prompt, confirmedExternalEmails containing EXACTLY the externalMembers from the preview. Idempotent: an already-active workspace is a no-op. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
218
+ description: "STATE-CHANGING. Reactivates a revoked workspace, which RESTORES portal access (including for EXTERNAL members) and may re-notify them. Two-step: call with confirm omitted/false for a preview listing the external members (nothing changes), then confirm:true. Refused if the workspace expiry has passed. If any member is external, confirm needs the client's human confirmation or, when the client cannot prompt, confirmedExternalEmails containing EXACTLY the externalMembers from the preview. Idempotent: an already-active workspace is a no-op. Requires the workspace owner or an admin. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
404
219
  inputSchema: reactivateWorkspaceInput,
405
220
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
406
221
  }, async (args) => {
@@ -413,7 +228,7 @@ async function main() {
413
228
  });
414
229
  server.registerTool("add_workspace_member", {
415
230
  title: "Add a workspace member (can share documents EXTERNALLY)",
416
- description: "STATE-CHANGING, HIGH RISK. Adds a member by email to an active workspace; they get Read on EVERY document currently in it. An email not in your company is EXTERNAL: they receive an email with a portal link and can DOWNLOAD every document in the workspace, an irreversible disclosure (removing them later only stops future access). Two-step: call with confirm omitted/false for a preview (classification, documents exposed, nothing changes), then confirm:true. For an external member, confirm also requires confirmedExternalEmails to contain exactly that email, else it is refused. Idempotent: an existing member is a no-op. Refuses a revoked workspace. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
231
+ description: "STATE-CHANGING, HIGH RISK. Adds a member by email to an active workspace; they get Read on EVERY document currently in it. An email not in your company is EXTERNAL: they receive an email with a portal link and can DOWNLOAD every document in the workspace, an irreversible disclosure (removing them later only stops future access). Two-step: call with confirm omitted/false for a preview (classification, documents exposed, nothing changes), then confirm:true. For an external member, confirm also requires confirmedExternalEmails to contain exactly that email, else it is refused. Idempotent: an existing member is a no-op. Refuses a revoked workspace. Requires the workspace owner or an admin. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
417
232
  inputSchema: addWorkspaceMemberInput,
418
233
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
419
234
  }, async (args) => {
@@ -426,7 +241,7 @@ async function main() {
426
241
  });
427
242
  server.registerTool("remove_workspace_member", {
428
243
  title: "Remove a workspace member",
429
- description: "STATE-CHANGING. Removes a member (by email or memberId) from a workspace and immediately drops their access to all its documents; downloads they already made are not recoverable. Re-adding sends a new invite. Two-step: preview (who loses access, nothing changes), then confirm:true. Idempotent: a non-member is a no-op. No owner check: any company user can do this. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
244
+ description: "STATE-CHANGING. Removes a member (by email or memberId) from a workspace and immediately drops their access to all its documents; downloads they already made are not recoverable. Re-adding sends a new invite. Two-step: preview (who loses access, nothing changes), then confirm:true. Idempotent: a non-member is a no-op. Requires the workspace owner or an admin. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
430
245
  inputSchema: removeWorkspaceMemberInput,
431
246
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
432
247
  }, async (args) => {
@@ -439,7 +254,7 @@ async function main() {
439
254
  });
440
255
  server.registerTool("add_workspace_documents", {
441
256
  title: "Add documents to a workspace (can expose them EXTERNALLY)",
442
- description: "STATE-CHANGING, HIGH RISK. Adds documents to an active workspace, pinning each one's CURRENT active version. EVERY existing member gets Read and is emailed; if the workspace has EXTERNAL members, those outside people can DOWNLOAD the added documents (irreversible disclosure). Two-step: call with confirm omitted/false for a preview (pinned versions, members classified, externalMembers, nothing changes), then confirm:true. When external members exist (the client is asked to confirm; if it cannot, confirm requires confirmedExternalEmails to contain EXACTLY the externalMembers from the preview) else it is refused. Idempotent: documents already present are skipped. Requires Read on each document; refuses a revoked workspace. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
257
+ description: "STATE-CHANGING, HIGH RISK. Adds documents to an active workspace, pinning each one's CURRENT active version. EVERY existing member gets Read and is emailed; if the workspace has EXTERNAL members, those outside people can DOWNLOAD the added documents (irreversible disclosure). Two-step: call with confirm omitted/false for a preview (pinned versions, members classified, externalMembers, nothing changes), then confirm:true. When external members exist (the client is asked to confirm; if it cannot, confirm requires confirmedExternalEmails to contain EXACTLY the externalMembers from the preview) else it is refused. Idempotent: documents already present are skipped. Requires the workspace owner or an admin, and Read on each document; refuses a revoked workspace. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
443
258
  inputSchema: addWorkspaceDocumentsInput,
444
259
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
445
260
  }, async (args) => {
@@ -452,7 +267,7 @@ async function main() {
452
267
  });
453
268
  server.registerTool("remove_workspace_document", {
454
269
  title: "Remove a document from a workspace",
455
- description: "STATE-CHANGING. Removes a document from an active workspace; every member immediately loses access to it (the document itself is not deleted; prior downloads are not recoverable). Reversible via add_workspace_documents. Two-step: preview (who loses access, nothing changes), then confirm:true. Idempotent: a document not in the workspace is a no-op. No owner check: any company user can do this. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
270
+ description: "STATE-CHANGING. Removes a document from an active workspace; every member immediately loses access to it (the document itself is not deleted; prior downloads are not recoverable). Reversible via add_workspace_documents. Two-step: preview (who loses access, nothing changes), then confirm:true. Idempotent: a document not in the workspace is a no-op. Requires the workspace owner or an admin. Interactive OAuth mode only. Confirm requires previewToken: the confirm call must pass the previewToken returned by a preview call with IDENTICAL arguments (expires in ~10 minutes; a changed argument, expiry or missing token is refused). Do not auto-approve this tool; leave it on per-call approval.",
456
271
  inputSchema: removeWorkspaceDocumentInput,
457
272
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
458
273
  }, async (args) => {
@@ -463,6 +278,16 @@ async function main() {
463
278
  return errorContent(err);
464
279
  }
465
280
  });
281
+ return server;
282
+ }
283
+ async function main() {
284
+ const config = loadConfig();
285
+ const tokens = config.mode === "interactive"
286
+ ? new OAuthTokenProvider(config)
287
+ : new TokenProvider(config);
288
+ console.error(`ottofiles-mcp: auth mode = ${config.mode}`);
289
+ const gateway = new GatewayClient(config, tokens);
290
+ const server = buildServer(gateway, config, tokens);
466
291
  setElicitor(async (message) => {
467
292
  if (!server.server.getClientCapabilities()?.elicitation)
468
293
  return "unsupported";
@@ -481,8 +306,11 @@ async function main() {
481
306
  // stderr is safe for logging under stdio transport; stdout is the protocol.
482
307
  console.error("ottofiles-mcp: connected over stdio");
483
308
  }
484
- main().catch((err) => {
485
- console.error("ottofiles-mcp: fatal", err);
486
- process.exit(1);
487
- });
309
+ // Only auto-start over stdio when run as the entry point, so tests can import buildServer.
310
+ if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) {
311
+ main().catch((err) => {
312
+ console.error("ottofiles-mcp: fatal", err);
313
+ process.exit(1);
314
+ });
315
+ }
488
316
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MA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