@archbee/mcp 2.5.0 → 2.7.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 +36 -16
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/tool-schemas.js +14 -5
- package/dist/tool-schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -12
- package/src/tool-schemas.ts +22 -4
package/README.md
CHANGED
|
@@ -6,13 +6,15 @@ With a space API key every tool acts on that one space, and `docSpaceId` never h
|
|
|
6
6
|
|
|
7
7
|
### Tools
|
|
8
8
|
|
|
9
|
+
Every create tool returns the new resource's id as `id`, so one call's result feeds the next (`create_category`'s `id` is the `parentDocId` of `create_doc`).
|
|
10
|
+
|
|
9
11
|
Read:
|
|
10
12
|
|
|
11
13
|
1. `get_doc`
|
|
12
14
|
- Gets content of a document
|
|
13
15
|
- Input:
|
|
14
16
|
- `docId` (string): Archbee document id
|
|
15
|
-
- Returns: content as markdown
|
|
17
|
+
- Returns: content as markdown; each embedded content snippet appears as a `:::ContentSnippet{docRefId="…"}` block, which `create_doc` and `update_doc` accept back; `list_content_snippets` returns its text by that id
|
|
16
18
|
2. `get_all_docs`
|
|
17
19
|
- Gets content of all documents in the space
|
|
18
20
|
- Returns: documents, as `DocResponse[]`
|
|
@@ -35,11 +37,13 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
35
37
|
- `content` (string): body as Markdown or MDX text
|
|
36
38
|
- `format` (`markdown` | `mdx`, optional): use `mdx` for JSX-style components such as `<hint>` or `<Tabs>`; directive-style (`:::hint{type="info"}`) works in both. Defaults to `markdown`
|
|
37
39
|
- also optional: `title`, `parentDocId`, `slug`, `description`, `previewImgURL`, `hidden`, `icon`
|
|
40
|
+
- Returns: `id`, the new document's id
|
|
38
41
|
6. `update_doc`
|
|
39
42
|
- Updates a document; only the fields you send are changed
|
|
40
43
|
- Input:
|
|
41
44
|
- `docId` (string): document to update
|
|
42
45
|
- optional: `content`, `format`, `title`, `parentDocId`, `slug`, `description`, `previewImgURL`, `hidden`, `icon`
|
|
46
|
+
- Returns: `id`, the document's id, also when the change went to a draft or a branch
|
|
43
47
|
7. `delete_doc`
|
|
44
48
|
- Permanently deletes a document, its uploaded files and images. Cannot be undone
|
|
45
49
|
- Input:
|
|
@@ -50,6 +54,8 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
50
54
|
- Input:
|
|
51
55
|
- `name` (string): name of the new space
|
|
52
56
|
- optional: `isReviewSystemEnabled`, `isBranchingSystemEnabled`, `docSpaceGroupId`, `icon`
|
|
57
|
+
- at most one of the two review flags, and either needs the Scaling plan or higher
|
|
58
|
+
- Returns: `id`, the new space's id
|
|
53
59
|
9. `update_doc_space`
|
|
54
60
|
- Updates settings of the configured space; only the parts you send are changed
|
|
55
61
|
- Input, all optional:
|
|
@@ -58,6 +64,8 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
58
64
|
- `hostnamePart` (`{ hostname, hostnamePath }`): custom hostname configuration
|
|
59
65
|
- `spaceLinks` (`{ label, docSpaceId }[]`): links to other spaces; the list should start with the current space
|
|
60
66
|
- `publicAccessControlPart`: public access control and authentication configuration
|
|
67
|
+
- `editMode` (`free_edits`, `drafts_reviews` or `branches_reviews`): switches the edit mode as in the space settings. Needs a team admin; the review modes need the Scaling plan or higher
|
|
68
|
+
- `confirmDeletion` (boolean): leaving Drafts & Reviews deletes every draft and leaving Branches & Reviews deletes every branch. Warn the user first and send `true` once they agree; without it such a switch is refused and nothing changes
|
|
61
69
|
10. `delete_doc_space`
|
|
62
70
|
- Permanently deletes the configured space and every document in it. Cannot be undone, and the `API_KEY` dies with it
|
|
63
71
|
11. `create_space_group`
|
|
@@ -65,6 +73,7 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
65
73
|
- Input:
|
|
66
74
|
- `name` (string): name of the new group
|
|
67
75
|
- optional: `isAiEnabled`, `isReviewSystemEnabled`, `isBranchingSystemEnabled`
|
|
76
|
+
- Returns: `id`, the new group's id
|
|
68
77
|
12. `delete_space_group`
|
|
69
78
|
- Deletes an empty space group. Requires a team admin
|
|
70
79
|
- Input:
|
|
@@ -74,12 +83,17 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
74
83
|
discover a `docSpaceId` before calling a space-level tool. Requires a team key
|
|
75
84
|
- Input:
|
|
76
85
|
- `query` (string, optional): case-insensitive filter on space group and space names
|
|
77
|
-
14. `
|
|
86
|
+
14. `whoami`
|
|
87
|
+
- Shows who the API key acts as. Works with a team key or a space key
|
|
88
|
+
- Returns: `user` (`id`, `name`, `email`), `team` (`id`, `name`, `plan`), `spaceCount`,
|
|
89
|
+
`spaceLimit`, and for a space key `docSpace` (`id`, `name`), the space it is bound to
|
|
90
|
+
15. `create_category`
|
|
78
91
|
- Creates a category (a folder in the space navigation)
|
|
79
92
|
- Input:
|
|
80
93
|
- `categoryName` (string): name of the category
|
|
81
94
|
- `parentDocId` (string, optional): node to nest it under
|
|
82
|
-
|
|
95
|
+
- Returns: `id`, the new category's id (a `parentDocId` for `create_doc`)
|
|
96
|
+
16. `delete_category`
|
|
83
97
|
- Deletes an empty category. Documents are never deleted
|
|
84
98
|
- Input:
|
|
85
99
|
- `categoryId` (string): category to delete
|
|
@@ -91,47 +105,51 @@ An empty string clears it; anything else is rejected.
|
|
|
91
105
|
Reusable resources — templates, content snippets and variables belong to the organization, not to a
|
|
92
106
|
space, so these take no `docSpaceId`. The `list_*` tools work with either key; the rest need a team key:
|
|
93
107
|
|
|
94
|
-
|
|
108
|
+
17. `list_templates`
|
|
95
109
|
- Lists the saved document templates, with their content as markdown
|
|
96
|
-
|
|
110
|
+
18. `create_template`
|
|
97
111
|
- Saves a new document template. A taken name (case-insensitive) returns the existing
|
|
98
112
|
template's id with `alreadyExists: true` instead of creating a duplicate — the existing
|
|
99
113
|
content is kept, so a different body needs a new name
|
|
100
114
|
- Input:
|
|
101
115
|
- `name` (string): name of the template
|
|
102
116
|
- optional: `content`, `format`, `icon`
|
|
103
|
-
|
|
117
|
+
- Returns: `id`, the template's id
|
|
118
|
+
19. `apply_template`
|
|
104
119
|
- Creates a document from a template, copying its content verbatim
|
|
105
120
|
- Input:
|
|
106
121
|
- `templateId` (string): template to apply
|
|
107
122
|
- optional: `title` (defaults to the template name), `parentDocId`, `slug`, `icon`
|
|
108
|
-
|
|
123
|
+
- Returns: `id`, the new document's id
|
|
124
|
+
20. `delete_template`
|
|
109
125
|
- Deletes a template by moving it to the organization's Archives space, where a person can restore it
|
|
110
126
|
- Input:
|
|
111
127
|
- `templateId` (string): template to delete
|
|
112
|
-
|
|
128
|
+
21. `list_content_snippets`
|
|
113
129
|
- Lists the reusable content snippets, with their content as markdown
|
|
114
|
-
|
|
130
|
+
22. `create_content_snippet`
|
|
115
131
|
- Creates a content snippet. Requires a Scaling or Enterprise subscription. A taken name
|
|
116
132
|
(case-insensitive) returns the existing snippet's id with `alreadyExists: true` instead of
|
|
117
133
|
creating a duplicate — the existing content is kept, use `update_content_snippet` to change it
|
|
118
134
|
- Input:
|
|
119
135
|
- `name` (string): name of the snippet
|
|
120
136
|
- optional: `content`, `format`
|
|
121
|
-
|
|
137
|
+
- Returns: `id`, the snippet's id
|
|
138
|
+
23. `update_content_snippet`
|
|
122
139
|
- Renames a snippet, replaces its content, or both — reaching every document that embeds it
|
|
123
140
|
- Input:
|
|
124
141
|
- `snippetId` (string): snippet to update
|
|
125
142
|
- at least one of: `name`, `content` (plus optional `format`)
|
|
126
|
-
|
|
143
|
+
- Returns: `id`, the snippet's id
|
|
144
|
+
24. `delete_content_snippet`
|
|
127
145
|
- Permanently deletes a content snippet. Cannot be undone
|
|
128
146
|
- Input:
|
|
129
147
|
- `snippetId` (string): snippet to delete
|
|
130
|
-
|
|
148
|
+
25. `list_variables`
|
|
131
149
|
- Lists the content variables and glossary terms, with their values and overrides
|
|
132
150
|
- Input:
|
|
133
151
|
- `variableType` (`variable` | `glossary`, optional): omit for both
|
|
134
|
-
|
|
152
|
+
26. `create_variable`
|
|
135
153
|
- Creates a content variable or glossary term. Requires a Scaling or Enterprise subscription
|
|
136
154
|
- Input:
|
|
137
155
|
- `name` (string): how documents reference it (`{{name}}`); unique within its type, letters,
|
|
@@ -141,13 +159,15 @@ space, so these take no `docSpaceId`. The `list_*` tools work with either key; t
|
|
|
141
159
|
- optional: `description` (max 250 characters; for a glossary term this is the DEFINITION
|
|
142
160
|
readers see, and it is required), `variableType`, `spaceTargetMap` (per-space or
|
|
143
161
|
per-language overrides)
|
|
144
|
-
|
|
162
|
+
- Returns: `id`, the new variable's id
|
|
163
|
+
27. `update_variable`
|
|
145
164
|
- Updates a variable or glossary term; only the fields you send are changed
|
|
146
165
|
- Input:
|
|
147
166
|
- `variableId` (string): variable to update
|
|
148
167
|
- at least one of: `name`, `variableContent`, `description`, `variableType`, `spaceTargetMap`
|
|
149
168
|
(same field roles and limits as `create_variable`)
|
|
150
|
-
|
|
169
|
+
- Returns: `id`, the variable's id
|
|
170
|
+
28. `delete_variable`
|
|
151
171
|
- Permanently deletes a variable or glossary term. References to it stop resolving
|
|
152
172
|
- Input:
|
|
153
173
|
- `variableId` (string): variable to delete
|
|
@@ -214,7 +234,7 @@ Reads and writes every space in the team. The organization super-admin creates t
|
|
|
214
234
|
|
|
215
235
|
- `API_KEY`: Team key, starting with `abteam_`
|
|
216
236
|
|
|
217
|
-
No `SPACE_ID`: the key is not bound to a space, so the space travels per call. `get_doc`, `get_all_docs`, `search_query`, `search_title`, `create_doc`, `update_doc`, `delete_doc`, `apply_template`, `create_category`, `delete_category`, `update_doc_space` and `delete_doc_space` take a `docSpaceId` argument; `create_doc_space`, `create_space_group`, `delete_space_group`, `list_space_groups` and every reusable-resource tool act on the organization and take none.
|
|
237
|
+
No `SPACE_ID`: the key is not bound to a space, so the space travels per call. `get_doc`, `get_all_docs`, `search_query`, `search_title`, `create_doc`, `update_doc`, `delete_doc`, `apply_template`, `create_category`, `delete_category`, `update_doc_space` and `delete_doc_space` take a `docSpaceId` argument; `create_doc_space`, `create_space_group`, `delete_space_group`, `list_space_groups`, `whoami` and every reusable-resource tool act on the organization and take none.
|
|
218
238
|
|
|
219
239
|
```json
|
|
220
240
|
{
|
package/dist/index.js
CHANGED
|
@@ -15,36 +15,37 @@ const usesTeamApiKey = () => (process.env.API_KEY || '').startsWith(TEAM_API_KEY
|
|
|
15
15
|
// Create an MCP server
|
|
16
16
|
const server = new mcp_js_1.McpServer({
|
|
17
17
|
name: process.env.API_KEY ? 'Archbee CMS MCP' : 'Archbee Portal MCP',
|
|
18
|
-
version: '2.
|
|
18
|
+
version: '2.7.0',
|
|
19
19
|
});
|
|
20
20
|
server.tool('get_all_docs', 'Read every document in the Archbee doc space, with its content, and each document carries the name of the space it belongs to (docSpaceName). Returns the whole space, so prefer search_query or search_title when looking for something specific.', tool_schemas_1.getAllDocsSchema, async (args) => callMcpApi({ tool: 'get-all-docs', ...args }));
|
|
21
|
-
server.tool('get_doc', 'Read one Archbee document by id and return its content as markdown, alongside the id and name of the space it lives in.', tool_schemas_1.getDocSchema, async (args) => callMcpApi({ tool: 'get-doc', ...args }));
|
|
21
|
+
server.tool('get_doc', 'Read one Archbee document by id and return its content as markdown, alongside the id and name of the space it lives in. Each embedded content snippet appears as a :::ContentSnippet{docRefId="…"} block (list_content_snippets returns its text by that id); keep it when writing the content back, or the snippet is removed from the document.', tool_schemas_1.getDocSchema, async (args) => callMcpApi({ tool: 'get-doc', ...args }));
|
|
22
22
|
server.tool('search_query', 'Search the Archbee doc space by document content and return the matching documents. This is the tool to use for answering a question from the documentation. An empty query returns every document.', tool_schemas_1.searchQuerySchema, async (args) => callMcpApi({ tool: 'search-query', ...args }));
|
|
23
23
|
server.tool('search_title', 'Search the Archbee doc space by document title. Use this when looking for a page by name; use search_query to search inside document content.', tool_schemas_1.searchTitleSchema, async (args) => callMcpApi({ tool: 'search-title', ...args }));
|
|
24
24
|
// Write tools. With a space key the target space comes from SPACE_ID; with a
|
|
25
25
|
// team key it comes from the docSpaceId argument, which the team-level tools
|
|
26
26
|
// below do not take because they act on the team, not on a space.
|
|
27
|
-
server.tool('create_doc',
|
|
28
|
-
server.tool('update_doc',
|
|
27
|
+
server.tool('create_doc', "Create a new document in the Archbee doc space from Markdown or MDX content. Free Edits: the document is created with its content. Drafts & Reviews: it is created empty and the content is saved as its draft. Branches & Reviews: it is created and committed in a new branch. A draft or branch goes live only after someone reviews and merges it in Archbee, and the response's warning says so. The response's `id` is the new document's id.", tool_schemas_1.createDocSchema, async (args) => callWriteApi({ tool: 'create-doc', ...args }));
|
|
28
|
+
server.tool('update_doc', "Update an existing Archbee document. Only the provided fields are changed. Free Edits: the change applies directly. Drafts & Reviews: saved as a draft. Branches & Reviews: saved and committed in a new branch. A draft or branch goes live only after someone reviews and merges it in Archbee, and the response's warning says so.", tool_schemas_1.updateDocSchema, async (args) => callWriteApi({ tool: 'update-doc', ...args }));
|
|
29
29
|
server.tool('delete_doc', 'Permanently delete an Archbee document. This is destructive and cannot be undone: the document is removed together with every file and image uploaded to it, and any documents nested underneath it are deleted as well. Ask the user to confirm before calling this tool.', tool_schemas_1.deleteDocSchema, async (args) => callWriteApi({ tool: 'delete-doc', ...args }));
|
|
30
|
-
server.tool('create_doc_space',
|
|
31
|
-
server.tool('update_doc_space', 'Update an Archbee doc space: rename it, or change its icon, hostname, space links
|
|
30
|
+
server.tool('create_doc_space', "Create a new doc space (documentation space) in the current Archbee team. The response's `id` is the new space's id.", tool_schemas_1.createDocSpaceSchema, async (args) => callWriteApi({ tool: 'create-doc-space', ...args }));
|
|
31
|
+
server.tool('update_doc_space', 'Update an Archbee doc space: rename it, or change its icon, hostname, space links, public access control or edit mode. Only the provided parts are changed, and at least one must be provided. The response echoes the space name and icon, and get_all_docs / get_doc report the name too, so a rename can be verified.', tool_schemas_1.updateDocSpaceSchema, async (args) => callWriteApi({ tool: 'update-doc-space', ...args }));
|
|
32
32
|
server.tool('delete_doc_space', 'Permanently delete an Archbee doc space together with every document inside it. This is destructive and cannot be undone. With a space API key the space deleted is the one SPACE_ID points at, so that key dies with it and no further tool call will work; with a team key it is the space named by docSpaceId. Ask the user to confirm before calling this tool.', tool_schemas_1.deleteDocSpaceSchema, async (args) => callWriteApi({ tool: 'delete-doc-space', ...args }));
|
|
33
|
-
server.tool('create_space_group',
|
|
33
|
+
server.tool('create_space_group', "Create a new space group (collection of doc spaces) in the current Archbee team. Requires a team admin. The response's `id` is the new group's id.", tool_schemas_1.createSpaceGroupSchema, async (args) => callWriteApi({ tool: 'create-space-group', ...args }));
|
|
34
34
|
server.tool('delete_space_group', 'Delete a space group (collection of doc spaces) from the current Archbee team. Requires a team admin. The group must already be empty: move or delete every doc space it still contains first, otherwise the call is rejected.', tool_schemas_1.deleteSpaceGroupSchema, async (args) => callWriteApi({ tool: 'delete-space-group', ...args }));
|
|
35
35
|
server.tool('list_space_groups', 'List every space group in the Archbee organization together with the doc spaces it contains, each with its id and name. Use it to discover a docSpaceId before calling a space-level tool. Requires a team API key (abteam_...); a space key is rejected.', tool_schemas_1.listSpaceGroupsSchema, async (args) => callMcpApi({ tool: 'list-space-groups', ...args }));
|
|
36
|
-
server.tool('
|
|
36
|
+
server.tool('whoami', 'Show who the API key acts as: the user, the Archbee organization (id, name, plan), how many doc spaces it has and its space limit, and for a space key the space it is bound to. Call it to confirm which organization a key belongs to, or before create_doc_space to see whether the limit is reached.', tool_schemas_1.whoamiSchema, async () => callMcpApi({ tool: 'whoami' }));
|
|
37
|
+
server.tool('create_category', 'Create a category (a folder in the space navigation) in an Archbee doc space. A category holds documents but has no content of its own. To put a document inside it, pass the returned `id` as `parentDocId` on create_doc or update_doc.', tool_schemas_1.createCategorySchema, async (args) => callWriteApi({ tool: 'create-category', ...args }));
|
|
37
38
|
server.tool('delete_category', 'Delete a category from an Archbee doc space. The category must already be empty: move or delete the documents inside it first, otherwise the call is rejected. Deleting a category never deletes documents.', tool_schemas_1.deleteCategorySchema, async (args) => callWriteApi({ tool: 'delete-category', ...args }));
|
|
38
39
|
server.tool('list_templates', 'List the document templates saved in the Archbee organization (Reusables → Templates), each with its id, name and content as markdown. Use apply_template to create a document from one.', tool_schemas_1.listTemplatesSchema, async () => callMcpApi({ tool: 'list-templates' }));
|
|
39
|
-
server.tool('create_template',
|
|
40
|
+
server.tool('create_template', "Save a new document template in the Archbee organization, from Markdown or MDX content. A template is a starting point for new documents; it is not itself a published page. If a template with the same name already exists, the existing one is returned (alreadyExists: true) instead of a duplicate being created — its content is kept, so a different body needs a new name. The response's `id` is the template's id.", tool_schemas_1.createTemplateSchema, async (args) => callWriteApi({ tool: 'create-template', ...args }));
|
|
40
41
|
server.tool('delete_template', "Delete a document template from the Archbee organization. The template is moved to the organization's Archives space (Archived Docs in the app), where a person can restore it. Ask the user to confirm before calling this tool.", tool_schemas_1.deleteTemplateSchema, async (args) => callWriteApi({ tool: 'delete-template', ...args }));
|
|
41
|
-
server.tool('apply_template',
|
|
42
|
+
server.tool('apply_template', "Create a new Archbee document from a saved template. The template content is copied verbatim, including blocks markdown cannot express (API endpoints, diagrams). The template itself is unchanged. The response's `id` is the new document's id.", tool_schemas_1.applyTemplateSchema, async (args) => callWriteApi({ tool: 'apply-template', ...args }));
|
|
42
43
|
server.tool('list_content_snippets', 'List the reusable content snippets saved in the Archbee organization (Reusables → Content snippets), each with its id, name and content as markdown. A snippet is a block of content embedded into many documents and edited in one place.', tool_schemas_1.listContentSnippetsSchema, async () => callMcpApi({ tool: 'list-content-snippets' }));
|
|
43
|
-
server.tool('create_content_snippet',
|
|
44
|
+
server.tool('create_content_snippet', "Create a reusable content snippet in the Archbee organization, from Markdown or MDX content. Requires a Scaling or Enterprise subscription. If a snippet with the same name already exists, the existing one is returned (alreadyExists: true) instead of a duplicate being created — its content is kept, use update_content_snippet to change it. The response's `id` is the snippet's id.", tool_schemas_1.createContentSnippetSchema, async (args) => callWriteApi({ tool: 'create-content-snippet', ...args }));
|
|
44
45
|
server.tool('update_content_snippet', 'Update a reusable content snippet: rename it, replace its content, or both. The change reaches every document the snippet is embedded in. At least one of name or content must be provided.', tool_schemas_1.updateContentSnippetSchema, async (args) => callWriteApi({ tool: 'update-content-snippet', ...args }));
|
|
45
46
|
server.tool('delete_content_snippet', 'Permanently delete a reusable content snippet from the Archbee organization. Documents that embed it lose that content. This cannot be undone — ask the user to confirm before calling this tool.', tool_schemas_1.deleteContentSnippetSchema, async (args) => callWriteApi({ tool: 'delete-content-snippet', ...args }));
|
|
46
47
|
server.tool('list_variables', 'List the content variables and glossary terms saved in the Archbee organization (Reusables → Variables / Glossary), each with its id, name, value and per-space or per-language overrides.', tool_schemas_1.listVariablesSchema, async (args) => callMcpApi({ tool: 'list-variables', ...args }));
|
|
47
|
-
server.tool('create_variable',
|
|
48
|
+
server.tool('create_variable', "Create a content variable (or a glossary term) in the Archbee organization. A variable is referenced by name inside document content and resolved at render time. For a glossary term, readers see variableContent as the term and description as its definition (required) — the name is only the reference key. Requires a Scaling or Enterprise subscription. The response's `id` is the new variable's id.", tool_schemas_1.createVariableSchema, async (args) => callWriteApi({ tool: 'create-variable', ...args }));
|
|
48
49
|
server.tool('update_variable', 'Update a content variable or glossary term. Only the provided fields change, and at least one must be provided. The new value reaches every document that references it.', tool_schemas_1.updateVariableSchema, async (args) => callWriteApi({ tool: 'update-variable', ...args }));
|
|
49
50
|
server.tool('delete_variable', 'Permanently delete a content variable or glossary term from the Archbee organization. Documents that reference it by name stop resolving. Ask the user to confirm before calling this tool.', tool_schemas_1.deleteVariableSchema, async (args) => callWriteApi({ tool: 'delete-variable', ...args }));
|
|
50
51
|
// Origin of the Archbee API the key belongs to, same variable the CLI takes.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,oEAAmE;AACnE,wEAAgF;AAEhF,kDAAyB;AACzB,iDA4BuB;AAmCvB,+EAA+E;AAC/E,wDAAwD;AACxD,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAErC,MAAM,cAAc,GAAG,GAAY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O,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IAC7E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
package/dist/tool-schemas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteVariableSchema = exports.updateVariableSchema = exports.createVariableSchema = exports.listVariablesSchema = exports.deleteContentSnippetSchema = exports.updateContentSnippetSchema = exports.createContentSnippetSchema = exports.listContentSnippetsSchema = exports.applyTemplateSchema = exports.deleteTemplateSchema = exports.createTemplateSchema = exports.listTemplatesSchema = exports.deleteCategorySchema = exports.createCategorySchema = exports.listSpaceGroupsSchema = exports.deleteSpaceGroupSchema = exports.createSpaceGroupSchema = exports.deleteDocSpaceSchema = exports.updateDocSpaceSchema = exports.createDocSpaceSchema = exports.deleteDocSchema = exports.updateDocSchema = exports.createDocSchema = exports.searchTitleSchema = exports.searchQuerySchema = exports.getDocSchema = exports.getAllDocsSchema = void 0;
|
|
3
|
+
exports.whoamiSchema = exports.deleteVariableSchema = exports.updateVariableSchema = exports.createVariableSchema = exports.listVariablesSchema = exports.deleteContentSnippetSchema = exports.updateContentSnippetSchema = exports.createContentSnippetSchema = exports.listContentSnippetsSchema = exports.applyTemplateSchema = exports.deleteTemplateSchema = exports.createTemplateSchema = exports.listTemplatesSchema = exports.deleteCategorySchema = exports.createCategorySchema = exports.listSpaceGroupsSchema = exports.deleteSpaceGroupSchema = exports.createSpaceGroupSchema = exports.deleteDocSpaceSchema = exports.updateDocSpaceSchema = exports.createDocSpaceSchema = exports.deleteDocSchema = exports.updateDocSchema = exports.createDocSchema = exports.searchTitleSchema = exports.searchQuerySchema = exports.getDocSchema = exports.getAllDocsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
// Input shapes for every tool in index.ts, kept out of it so that file reads as
|
|
6
6
|
// the list of tools this server exposes.
|
|
@@ -49,7 +49,7 @@ exports.searchTitleSchema = {
|
|
|
49
49
|
exports.createDocSchema = {
|
|
50
50
|
content: zod_1.z
|
|
51
51
|
.string()
|
|
52
|
-
.describe('Body of the document to create, as Markdown or MDX text. JSON document content is not accepted.'),
|
|
52
|
+
.describe('Body of the document to create, as Markdown or MDX text. JSON document content is not accepted. Embed a content snippet as a :::ContentSnippet{docRefId="<snippet id from list_content_snippets>"} line followed by a ::: line; get_doc returns the snippets already in a document that way, so keep those lines to keep the snippets.'),
|
|
53
53
|
...formatArg,
|
|
54
54
|
title: zod_1.z.string().optional().describe('Title of the document.'),
|
|
55
55
|
parentDocId: zod_1.z
|
|
@@ -77,7 +77,7 @@ exports.updateDocSchema = {
|
|
|
77
77
|
content: zod_1.z
|
|
78
78
|
.string()
|
|
79
79
|
.optional()
|
|
80
|
-
.describe('New body for the document, as Markdown or MDX text. JSON document content is not accepted.'),
|
|
80
|
+
.describe('New body for the document, as Markdown or MDX text. JSON document content is not accepted. Embed a content snippet as a :::ContentSnippet{docRefId="<snippet id from list_content_snippets>"} line followed by a ::: line; get_doc returns the snippets already in a document that way, so keep those lines to keep the snippets.'),
|
|
81
81
|
...formatArg,
|
|
82
82
|
title: zod_1.z.string().optional().describe('New title of the document.'),
|
|
83
83
|
parentDocId: zod_1.z
|
|
@@ -113,11 +113,11 @@ exports.createDocSpaceSchema = {
|
|
|
113
113
|
isReviewSystemEnabled: zod_1.z
|
|
114
114
|
.boolean()
|
|
115
115
|
.optional()
|
|
116
|
-
.describe('Enable the review/approval workflow for the space.'),
|
|
116
|
+
.describe('Enable the review/approval workflow for the space. At most one of isReviewSystemEnabled and isBranchingSystemEnabled; either needs the Scaling plan or higher.'),
|
|
117
117
|
isBranchingSystemEnabled: zod_1.z
|
|
118
118
|
.boolean()
|
|
119
119
|
.optional()
|
|
120
|
-
.describe('Enable the branching (git-style) workflow for the space.'),
|
|
120
|
+
.describe('Enable the branching (git-style) workflow for the space. At most one of isReviewSystemEnabled and isBranchingSystemEnabled; either needs the Scaling plan or higher.'),
|
|
121
121
|
docSpaceGroupId: zod_1.z
|
|
122
122
|
.string()
|
|
123
123
|
.optional()
|
|
@@ -176,6 +176,14 @@ exports.updateDocSpaceSchema = {
|
|
|
176
176
|
publicAccessControlPart: publicAccessControlPartSchema
|
|
177
177
|
.optional()
|
|
178
178
|
.describe('Public access control and authentication configuration.'),
|
|
179
|
+
editMode: zod_1.z
|
|
180
|
+
.enum(['free_edits', 'drafts_reviews', 'branches_reviews'])
|
|
181
|
+
.optional()
|
|
182
|
+
.describe('Edit mode of the space, as in its settings: free_edits, drafts_reviews or branches_reviews. Needs a team admin, and Drafts & Reviews or Branches & Reviews need the Scaling plan or higher. Leaving drafts_reviews permanently deletes every draft of the space, and leaving branches_reviews permanently deletes every branch. Before such a switch, warn the user, ask them to merge in Archbee whatever they want to keep, and send confirmDeletion: true only once they agree.'),
|
|
183
|
+
confirmDeletion: zod_1.z
|
|
184
|
+
.boolean()
|
|
185
|
+
.optional()
|
|
186
|
+
.describe('Set to true, after the user agreed, to let an editMode switch delete the drafts or branches of the space. Without it a switch that would delete any is refused and nothing changes.'),
|
|
179
187
|
...iconArg,
|
|
180
188
|
...docSpaceIdArg,
|
|
181
189
|
};
|
|
@@ -313,4 +321,5 @@ exports.deleteVariableSchema = {
|
|
|
313
321
|
.string()
|
|
314
322
|
.describe('ID of the variable to delete, as returned by list_variables.'),
|
|
315
323
|
};
|
|
324
|
+
exports.whoamiSchema = {};
|
|
316
325
|
//# sourceMappingURL=tool-schemas.js.map
|
package/dist/tool-schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-schemas.js","sourceRoot":"","sources":["../src/tool-schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,gFAAgF;AAChF,yCAAyC;AAEzC,MAAM,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C;CAC5E,CAAA;AAEY,QAAA,YAAY,GAAG,EAAE,CAAA"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
updateDocSchema,
|
|
33
33
|
updateDocSpaceSchema,
|
|
34
34
|
updateVariableSchema,
|
|
35
|
+
whoamiSchema,
|
|
35
36
|
} from './tool-schemas'
|
|
36
37
|
|
|
37
38
|
interface McpApiParams {
|
|
@@ -62,6 +63,8 @@ interface McpApiParams {
|
|
|
62
63
|
isAiEnabled?: boolean
|
|
63
64
|
isReviewSystemEnabled?: boolean
|
|
64
65
|
isBranchingSystemEnabled?: boolean
|
|
66
|
+
editMode?: 'free_edits' | 'drafts_reviews' | 'branches_reviews'
|
|
67
|
+
confirmDeletion?: boolean
|
|
65
68
|
hostnamePart?: { hostname: string; hostnamePath: string }
|
|
66
69
|
spaceLinks?: { label: string; docSpaceId: string }[]
|
|
67
70
|
publicAccessControlPart?: Record<string, unknown>
|
|
@@ -77,7 +80,7 @@ const usesTeamApiKey = (): boolean =>
|
|
|
77
80
|
// Create an MCP server
|
|
78
81
|
const server = new McpServer({
|
|
79
82
|
name: process.env.API_KEY ? 'Archbee CMS MCP' : 'Archbee Portal MCP',
|
|
80
|
-
version: '2.
|
|
83
|
+
version: '2.7.0',
|
|
81
84
|
})
|
|
82
85
|
|
|
83
86
|
server.tool(
|
|
@@ -89,7 +92,7 @@ server.tool(
|
|
|
89
92
|
|
|
90
93
|
server.tool(
|
|
91
94
|
'get_doc',
|
|
92
|
-
'Read one Archbee document by id and return its content as markdown, alongside the id and name of the space it lives in.',
|
|
95
|
+
'Read one Archbee document by id and return its content as markdown, alongside the id and name of the space it lives in. Each embedded content snippet appears as a :::ContentSnippet{docRefId="…"} block (list_content_snippets returns its text by that id); keep it when writing the content back, or the snippet is removed from the document.',
|
|
93
96
|
getDocSchema,
|
|
94
97
|
async (args) => callMcpApi({ tool: 'get-doc', ...args })
|
|
95
98
|
)
|
|
@@ -114,14 +117,14 @@ server.tool(
|
|
|
114
117
|
|
|
115
118
|
server.tool(
|
|
116
119
|
'create_doc',
|
|
117
|
-
|
|
120
|
+
"Create a new document in the Archbee doc space from Markdown or MDX content. Free Edits: the document is created with its content. Drafts & Reviews: it is created empty and the content is saved as its draft. Branches & Reviews: it is created and committed in a new branch. A draft or branch goes live only after someone reviews and merges it in Archbee, and the response's warning says so. The response's `id` is the new document's id.",
|
|
118
121
|
createDocSchema,
|
|
119
122
|
async (args) => callWriteApi({ tool: 'create-doc', ...args })
|
|
120
123
|
)
|
|
121
124
|
|
|
122
125
|
server.tool(
|
|
123
126
|
'update_doc',
|
|
124
|
-
|
|
127
|
+
"Update an existing Archbee document. Only the provided fields are changed. Free Edits: the change applies directly. Drafts & Reviews: saved as a draft. Branches & Reviews: saved and committed in a new branch. A draft or branch goes live only after someone reviews and merges it in Archbee, and the response's warning says so.",
|
|
125
128
|
updateDocSchema,
|
|
126
129
|
async (args) => callWriteApi({ tool: 'update-doc', ...args })
|
|
127
130
|
)
|
|
@@ -135,14 +138,14 @@ server.tool(
|
|
|
135
138
|
|
|
136
139
|
server.tool(
|
|
137
140
|
'create_doc_space',
|
|
138
|
-
|
|
141
|
+
"Create a new doc space (documentation space) in the current Archbee team. The response's `id` is the new space's id.",
|
|
139
142
|
createDocSpaceSchema,
|
|
140
143
|
async (args) => callWriteApi({ tool: 'create-doc-space', ...args })
|
|
141
144
|
)
|
|
142
145
|
|
|
143
146
|
server.tool(
|
|
144
147
|
'update_doc_space',
|
|
145
|
-
'Update an Archbee doc space: rename it, or change its icon, hostname, space links
|
|
148
|
+
'Update an Archbee doc space: rename it, or change its icon, hostname, space links, public access control or edit mode. Only the provided parts are changed, and at least one must be provided. The response echoes the space name and icon, and get_all_docs / get_doc report the name too, so a rename can be verified.',
|
|
146
149
|
updateDocSpaceSchema,
|
|
147
150
|
async (args) => callWriteApi({ tool: 'update-doc-space', ...args })
|
|
148
151
|
)
|
|
@@ -156,7 +159,7 @@ server.tool(
|
|
|
156
159
|
|
|
157
160
|
server.tool(
|
|
158
161
|
'create_space_group',
|
|
159
|
-
|
|
162
|
+
"Create a new space group (collection of doc spaces) in the current Archbee team. Requires a team admin. The response's `id` is the new group's id.",
|
|
160
163
|
createSpaceGroupSchema,
|
|
161
164
|
async (args) => callWriteApi({ tool: 'create-space-group', ...args })
|
|
162
165
|
)
|
|
@@ -175,9 +178,16 @@ server.tool(
|
|
|
175
178
|
async (args) => callMcpApi({ tool: 'list-space-groups', ...args })
|
|
176
179
|
)
|
|
177
180
|
|
|
181
|
+
server.tool(
|
|
182
|
+
'whoami',
|
|
183
|
+
'Show who the API key acts as: the user, the Archbee organization (id, name, plan), how many doc spaces it has and its space limit, and for a space key the space it is bound to. Call it to confirm which organization a key belongs to, or before create_doc_space to see whether the limit is reached.',
|
|
184
|
+
whoamiSchema,
|
|
185
|
+
async () => callMcpApi({ tool: 'whoami' })
|
|
186
|
+
)
|
|
187
|
+
|
|
178
188
|
server.tool(
|
|
179
189
|
'create_category',
|
|
180
|
-
'Create a category (a folder in the space navigation) in an Archbee doc space. A category holds documents but has no content of its own. To put a document inside it, pass the returned
|
|
190
|
+
'Create a category (a folder in the space navigation) in an Archbee doc space. A category holds documents but has no content of its own. To put a document inside it, pass the returned `id` as `parentDocId` on create_doc or update_doc.',
|
|
181
191
|
createCategorySchema,
|
|
182
192
|
async (args) => callWriteApi({ tool: 'create-category', ...args })
|
|
183
193
|
)
|
|
@@ -198,7 +208,7 @@ server.tool(
|
|
|
198
208
|
|
|
199
209
|
server.tool(
|
|
200
210
|
'create_template',
|
|
201
|
-
|
|
211
|
+
"Save a new document template in the Archbee organization, from Markdown or MDX content. A template is a starting point for new documents; it is not itself a published page. If a template with the same name already exists, the existing one is returned (alreadyExists: true) instead of a duplicate being created — its content is kept, so a different body needs a new name. The response's `id` is the template's id.",
|
|
202
212
|
createTemplateSchema,
|
|
203
213
|
async (args) => callWriteApi({ tool: 'create-template', ...args })
|
|
204
214
|
)
|
|
@@ -212,7 +222,7 @@ server.tool(
|
|
|
212
222
|
|
|
213
223
|
server.tool(
|
|
214
224
|
'apply_template',
|
|
215
|
-
|
|
225
|
+
"Create a new Archbee document from a saved template. The template content is copied verbatim, including blocks markdown cannot express (API endpoints, diagrams). The template itself is unchanged. The response's `id` is the new document's id.",
|
|
216
226
|
applyTemplateSchema,
|
|
217
227
|
async (args) => callWriteApi({ tool: 'apply-template', ...args })
|
|
218
228
|
)
|
|
@@ -226,7 +236,7 @@ server.tool(
|
|
|
226
236
|
|
|
227
237
|
server.tool(
|
|
228
238
|
'create_content_snippet',
|
|
229
|
-
|
|
239
|
+
"Create a reusable content snippet in the Archbee organization, from Markdown or MDX content. Requires a Scaling or Enterprise subscription. If a snippet with the same name already exists, the existing one is returned (alreadyExists: true) instead of a duplicate being created — its content is kept, use update_content_snippet to change it. The response's `id` is the snippet's id.",
|
|
230
240
|
createContentSnippetSchema,
|
|
231
241
|
async (args) => callWriteApi({ tool: 'create-content-snippet', ...args })
|
|
232
242
|
)
|
|
@@ -254,7 +264,7 @@ server.tool(
|
|
|
254
264
|
|
|
255
265
|
server.tool(
|
|
256
266
|
'create_variable',
|
|
257
|
-
|
|
267
|
+
"Create a content variable (or a glossary term) in the Archbee organization. A variable is referenced by name inside document content and resolved at render time. For a glossary term, readers see variableContent as the term and description as its definition (required) — the name is only the reference key. Requires a Scaling or Enterprise subscription. The response's `id` is the new variable's id.",
|
|
258
268
|
createVariableSchema,
|
|
259
269
|
async (args) => callWriteApi({ tool: 'create-variable', ...args })
|
|
260
270
|
)
|
package/src/tool-schemas.ts
CHANGED
|
@@ -74,7 +74,7 @@ export const createDocSchema = {
|
|
|
74
74
|
content: z
|
|
75
75
|
.string()
|
|
76
76
|
.describe(
|
|
77
|
-
'Body of the document to create, as Markdown or MDX text. JSON document content is not accepted.'
|
|
77
|
+
'Body of the document to create, as Markdown or MDX text. JSON document content is not accepted. Embed a content snippet as a :::ContentSnippet{docRefId="<snippet id from list_content_snippets>"} line followed by a ::: line; get_doc returns the snippets already in a document that way, so keep those lines to keep the snippets.'
|
|
78
78
|
),
|
|
79
79
|
...formatArg,
|
|
80
80
|
title: z.string().optional().describe('Title of the document.'),
|
|
@@ -105,7 +105,7 @@ export const updateDocSchema = {
|
|
|
105
105
|
.string()
|
|
106
106
|
.optional()
|
|
107
107
|
.describe(
|
|
108
|
-
'New body for the document, as Markdown or MDX text. JSON document content is not accepted.'
|
|
108
|
+
'New body for the document, as Markdown or MDX text. JSON document content is not accepted. Embed a content snippet as a :::ContentSnippet{docRefId="<snippet id from list_content_snippets>"} line followed by a ::: line; get_doc returns the snippets already in a document that way, so keep those lines to keep the snippets.'
|
|
109
109
|
),
|
|
110
110
|
...formatArg,
|
|
111
111
|
title: z.string().optional().describe('New title of the document.'),
|
|
@@ -146,11 +146,15 @@ export const createDocSpaceSchema = {
|
|
|
146
146
|
isReviewSystemEnabled: z
|
|
147
147
|
.boolean()
|
|
148
148
|
.optional()
|
|
149
|
-
.describe(
|
|
149
|
+
.describe(
|
|
150
|
+
'Enable the review/approval workflow for the space. At most one of isReviewSystemEnabled and isBranchingSystemEnabled; either needs the Scaling plan or higher.'
|
|
151
|
+
),
|
|
150
152
|
isBranchingSystemEnabled: z
|
|
151
153
|
.boolean()
|
|
152
154
|
.optional()
|
|
153
|
-
.describe(
|
|
155
|
+
.describe(
|
|
156
|
+
'Enable the branching (git-style) workflow for the space. At most one of isReviewSystemEnabled and isBranchingSystemEnabled; either needs the Scaling plan or higher.'
|
|
157
|
+
),
|
|
154
158
|
docSpaceGroupId: z
|
|
155
159
|
.string()
|
|
156
160
|
.optional()
|
|
@@ -216,6 +220,18 @@ export const updateDocSpaceSchema = {
|
|
|
216
220
|
publicAccessControlPart: publicAccessControlPartSchema
|
|
217
221
|
.optional()
|
|
218
222
|
.describe('Public access control and authentication configuration.'),
|
|
223
|
+
editMode: z
|
|
224
|
+
.enum(['free_edits', 'drafts_reviews', 'branches_reviews'])
|
|
225
|
+
.optional()
|
|
226
|
+
.describe(
|
|
227
|
+
'Edit mode of the space, as in its settings: free_edits, drafts_reviews or branches_reviews. Needs a team admin, and Drafts & Reviews or Branches & Reviews need the Scaling plan or higher. Leaving drafts_reviews permanently deletes every draft of the space, and leaving branches_reviews permanently deletes every branch. Before such a switch, warn the user, ask them to merge in Archbee whatever they want to keep, and send confirmDeletion: true only once they agree.'
|
|
228
|
+
),
|
|
229
|
+
confirmDeletion: z
|
|
230
|
+
.boolean()
|
|
231
|
+
.optional()
|
|
232
|
+
.describe(
|
|
233
|
+
'Set to true, after the user agreed, to let an editMode switch delete the drafts or branches of the space. Without it a switch that would delete any is refused and nothing changes.'
|
|
234
|
+
),
|
|
219
235
|
...iconArg,
|
|
220
236
|
...docSpaceIdArg,
|
|
221
237
|
}
|
|
@@ -396,3 +412,5 @@ export const deleteVariableSchema = {
|
|
|
396
412
|
.string()
|
|
397
413
|
.describe('ID of the variable to delete, as returned by list_variables.'),
|
|
398
414
|
}
|
|
415
|
+
|
|
416
|
+
export const whoamiSchema = {}
|