@archbee/mcp 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -4
- package/dist/index.js +30 -221
- package/dist/index.js.map +1 -1
- package/dist/tool-schemas.js +310 -0
- package/dist/tool-schemas.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +141 -249
- package/src/tool-schemas.ts +389 -0
package/README.md
CHANGED
|
@@ -34,12 +34,12 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
34
34
|
- Input:
|
|
35
35
|
- `content` (string): body as Markdown or MDX text
|
|
36
36
|
- `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
|
-
- also optional: `title`, `parentDocId`, `slug`, `description`, `previewImgURL`, `hidden`
|
|
37
|
+
- also optional: `title`, `parentDocId`, `slug`, `description`, `previewImgURL`, `hidden`, `icon`
|
|
38
38
|
6. `update_doc`
|
|
39
39
|
- Updates a document; only the fields you send are changed
|
|
40
40
|
- Input:
|
|
41
41
|
- `docId` (string): document to update
|
|
42
|
-
- optional: `content`, `format`, `title`, `parentDocId`, `slug`, `description`, `previewImgURL`, `hidden`
|
|
42
|
+
- optional: `content`, `format`, `title`, `parentDocId`, `slug`, `description`, `previewImgURL`, `hidden`, `icon`
|
|
43
43
|
7. `delete_doc`
|
|
44
44
|
- Permanently deletes a document, its uploaded files and images. Cannot be undone
|
|
45
45
|
- Input:
|
|
@@ -49,10 +49,12 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
49
49
|
- Creates a doc space in the team
|
|
50
50
|
- Input:
|
|
51
51
|
- `name` (string): name of the new space
|
|
52
|
-
- optional: `isReviewSystemEnabled`, `isBranchingSystemEnabled`, `docSpaceGroupId`
|
|
52
|
+
- optional: `isReviewSystemEnabled`, `isBranchingSystemEnabled`, `docSpaceGroupId`, `icon`
|
|
53
53
|
9. `update_doc_space`
|
|
54
54
|
- Updates settings of the configured space; only the parts you send are changed
|
|
55
55
|
- Input, all optional:
|
|
56
|
+
- `name` (string): renames the space
|
|
57
|
+
- `icon` (string): left-nav icon
|
|
56
58
|
- `hostnamePart` (`{ hostname, hostnamePath }`): custom hostname configuration
|
|
57
59
|
- `spaceLinks` (`{ label, docSpaceId }[]`): links to other spaces; the list should start with the current space
|
|
58
60
|
- `publicAccessControlPart`: public access control and authentication configuration
|
|
@@ -67,6 +69,83 @@ Write — these need an API key, space or team (the configurations below):
|
|
|
67
69
|
- Deletes an empty space group. Requires a team admin
|
|
68
70
|
- Input:
|
|
69
71
|
- `docSpaceGroupId` (string): group to delete
|
|
72
|
+
13. `create_category`
|
|
73
|
+
- Creates a category (a folder in the space navigation)
|
|
74
|
+
- Input:
|
|
75
|
+
- `categoryName` (string): name of the category
|
|
76
|
+
- `parentDocId` (string, optional): node to nest it under
|
|
77
|
+
14. `delete_category`
|
|
78
|
+
- Deletes an empty category. Documents are never deleted
|
|
79
|
+
- Input:
|
|
80
|
+
- `categoryId` (string): category to delete
|
|
81
|
+
|
|
82
|
+
An `icon` is either an emoji (`"🚀"`), or a JSON string naming an icon:
|
|
83
|
+
`{"lucideIcon":"Rocket"}`, `{"faIcon":"fa-solid fa-rocket"}` or `{"apiMethod":"GET"}`.
|
|
84
|
+
An empty string clears it; anything else is rejected.
|
|
85
|
+
|
|
86
|
+
Reusable resources — templates, content snippets and variables belong to the organization, not to a
|
|
87
|
+
space, so these take no `docSpaceId`. The `list_*` tools work with either key; the rest need a team key:
|
|
88
|
+
|
|
89
|
+
15. `list_templates`
|
|
90
|
+
- Lists the saved document templates, with their content as markdown
|
|
91
|
+
16. `create_template`
|
|
92
|
+
- Saves a new document template. A taken name (case-insensitive) returns the existing
|
|
93
|
+
template's id with `alreadyExists: true` instead of creating a duplicate — the existing
|
|
94
|
+
content is kept, so a different body needs a new name
|
|
95
|
+
- Input:
|
|
96
|
+
- `name` (string): name of the template
|
|
97
|
+
- optional: `content`, `format`, `icon`
|
|
98
|
+
17. `apply_template`
|
|
99
|
+
- Creates a document from a template, copying its content verbatim
|
|
100
|
+
- Input:
|
|
101
|
+
- `templateId` (string): template to apply
|
|
102
|
+
- optional: `title` (defaults to the template name), `parentDocId`, `slug`, `icon`
|
|
103
|
+
18. `delete_template`
|
|
104
|
+
- Deletes a template by moving it to the organization's Archives space, where a person can restore it
|
|
105
|
+
- Input:
|
|
106
|
+
- `templateId` (string): template to delete
|
|
107
|
+
19. `list_content_snippets`
|
|
108
|
+
- Lists the reusable content snippets, with their content as markdown
|
|
109
|
+
20. `create_content_snippet`
|
|
110
|
+
- Creates a content snippet. Requires a Scaling or Enterprise subscription. A taken name
|
|
111
|
+
(case-insensitive) returns the existing snippet's id with `alreadyExists: true` instead of
|
|
112
|
+
creating a duplicate — the existing content is kept, use `update_content_snippet` to change it
|
|
113
|
+
- Input:
|
|
114
|
+
- `name` (string): name of the snippet
|
|
115
|
+
- optional: `content`, `format`
|
|
116
|
+
21. `update_content_snippet`
|
|
117
|
+
- Renames a snippet, replaces its content, or both — reaching every document that embeds it
|
|
118
|
+
- Input:
|
|
119
|
+
- `snippetId` (string): snippet to update
|
|
120
|
+
- at least one of: `name`, `content` (plus optional `format`)
|
|
121
|
+
22. `delete_content_snippet`
|
|
122
|
+
- Permanently deletes a content snippet. Cannot be undone
|
|
123
|
+
- Input:
|
|
124
|
+
- `snippetId` (string): snippet to delete
|
|
125
|
+
23. `list_variables`
|
|
126
|
+
- Lists the content variables and glossary terms, with their values and overrides
|
|
127
|
+
- Input:
|
|
128
|
+
- `variableType` (`variable` | `glossary`, optional): omit for both
|
|
129
|
+
24. `create_variable`
|
|
130
|
+
- Creates a content variable or glossary term. Requires a Scaling or Enterprise subscription
|
|
131
|
+
- Input:
|
|
132
|
+
- `name` (string): how documents reference it (`{{name}}`); unique within its type, letters,
|
|
133
|
+
digits, `-`, `_` and `.` only, max 40 characters. Readers never see it in the glossary
|
|
134
|
+
- `variableContent` (string): value it resolves to (max 100 characters). For a glossary term
|
|
135
|
+
this is the TERM readers see (max 40 characters)
|
|
136
|
+
- optional: `description` (max 250 characters; for a glossary term this is the DEFINITION
|
|
137
|
+
readers see, and it is required), `variableType`, `spaceTargetMap` (per-space or
|
|
138
|
+
per-language overrides)
|
|
139
|
+
25. `update_variable`
|
|
140
|
+
- Updates a variable or glossary term; only the fields you send are changed
|
|
141
|
+
- Input:
|
|
142
|
+
- `variableId` (string): variable to update
|
|
143
|
+
- at least one of: `name`, `variableContent`, `description`, `variableType`, `spaceTargetMap`
|
|
144
|
+
(same field roles and limits as `create_variable`)
|
|
145
|
+
26. `delete_variable`
|
|
146
|
+
- Permanently deletes a variable or glossary term. References to it stop resolving
|
|
147
|
+
- Input:
|
|
148
|
+
- `variableId` (string): variable to delete
|
|
70
149
|
|
|
71
150
|
## Setup
|
|
72
151
|
|
|
@@ -131,7 +210,7 @@ Reads and writes every space in the team. The organization super-admin creates t
|
|
|
131
210
|
|
|
132
211
|
A team key is accepted on the MCP endpoints only — the rest of the Public API and the CLI still take a space key.
|
|
133
212
|
|
|
134
|
-
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`, `update_doc_space` and `delete_doc_space` take a `docSpaceId` argument; `create_doc_space`, `create_space_group
|
|
213
|
+
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` and every reusable-resource tool act on the organization and take none.
|
|
135
214
|
|
|
136
215
|
```json
|
|
137
216
|
{
|
package/dist/index.js
CHANGED
|
@@ -7,236 +7,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
const mcp_js_1 = require("@modelcontextprotocol/sdk/server/mcp.js");
|
|
8
8
|
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
9
9
|
const axios_1 = __importDefault(require("axios"));
|
|
10
|
-
const
|
|
10
|
+
const tool_schemas_1 = require("./tool-schemas");
|
|
11
11
|
// A team key is not bound to a space, so the space travels per call instead of
|
|
12
12
|
// being packed into the credential like a space key is.
|
|
13
13
|
const TEAM_API_KEY_PREFIX = 'abteam_';
|
|
14
14
|
const usesTeamApiKey = () => (process.env.API_KEY || '').startsWith(TEAM_API_KEY_PREFIX);
|
|
15
|
-
const docSpaceIdArg = {
|
|
16
|
-
docSpaceId: zod_1.z
|
|
17
|
-
.string()
|
|
18
|
-
.optional()
|
|
19
|
-
.describe('Space to act on. Required when API_KEY is a team key (starts with `abteam_`), which can reach every space in the team. Ignored with a space API key, since that key already names its space.'),
|
|
20
|
-
};
|
|
21
|
-
const MDX_FORMAT_DESCRIPTION = 'Format of `content`. Use `mdx` when the content contains JSX-style Archbee components such as `<hint>`, `<CtaButton />` or `<Tabs>` — with plain markdown those degrade to raw html blocks. Directive-style components (`:::hint{type="info"}`) work in both formats. Defaults to markdown when omitted.';
|
|
22
15
|
// Create an MCP server
|
|
23
16
|
const server = new mcp_js_1.McpServer({
|
|
24
17
|
name: 'Archbee MCP',
|
|
25
|
-
version: '2.
|
|
26
|
-
});
|
|
27
|
-
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.', { ...docSpaceIdArg }, async ({ docSpaceId }) => {
|
|
28
|
-
const params = {
|
|
29
|
-
tool: 'get-all-docs',
|
|
30
|
-
docSpaceId,
|
|
31
|
-
};
|
|
32
|
-
return callMcpApi(params);
|
|
33
|
-
});
|
|
34
|
-
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.', {
|
|
35
|
-
docId: zod_1.z
|
|
36
|
-
.string()
|
|
37
|
-
.describe('ID of the document to read, as returned by search_query, search_title or get_all_docs.'),
|
|
38
|
-
...docSpaceIdArg,
|
|
39
|
-
}, async ({ docId, docSpaceId }) => {
|
|
40
|
-
const params = {
|
|
41
|
-
tool: 'get-doc',
|
|
42
|
-
docId,
|
|
43
|
-
docSpaceId,
|
|
44
|
-
};
|
|
45
|
-
return callMcpApi(params);
|
|
46
|
-
});
|
|
47
|
-
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.', {
|
|
48
|
-
query: zod_1.z
|
|
49
|
-
.string()
|
|
50
|
-
.describe('Text to look for inside the content of the documents.'),
|
|
51
|
-
...docSpaceIdArg,
|
|
52
|
-
}, async ({ query, docSpaceId }) => {
|
|
53
|
-
const params = {
|
|
54
|
-
tool: 'search-query',
|
|
55
|
-
query,
|
|
56
|
-
docSpaceId,
|
|
57
|
-
};
|
|
58
|
-
return callMcpApi(params);
|
|
59
|
-
});
|
|
60
|
-
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.', {
|
|
61
|
-
query: zod_1.z.string().describe('Text to look for in the document titles.'),
|
|
62
|
-
...docSpaceIdArg,
|
|
63
|
-
}, async ({ query, docSpaceId }) => {
|
|
64
|
-
const params = {
|
|
65
|
-
tool: 'search-title',
|
|
66
|
-
query,
|
|
67
|
-
docSpaceId,
|
|
68
|
-
};
|
|
69
|
-
return callMcpApi(params);
|
|
18
|
+
version: '2.3.0',
|
|
70
19
|
});
|
|
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 }));
|
|
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
|
+
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 }));
|
|
71
24
|
// Write tools. With a space key the target space comes from SPACE_ID; with a
|
|
72
|
-
// team key it comes from the docSpaceId argument, which the
|
|
73
|
-
//
|
|
74
|
-
server.tool('create_doc', 'Create a new document in the Archbee doc space from Markdown or MDX content.', {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
hidden: zod_1.z
|
|
97
|
-
.boolean()
|
|
98
|
-
.optional()
|
|
99
|
-
.describe('When true, the document is hidden from navigation.'),
|
|
100
|
-
...docSpaceIdArg,
|
|
101
|
-
}, async (args) => callWriteApi({ tool: 'create-doc', ...args }));
|
|
102
|
-
server.tool('update_doc', 'Update an existing Archbee document. Only the provided fields are changed.', {
|
|
103
|
-
docId: zod_1.z.string().describe('ID of the document to update.'),
|
|
104
|
-
content: zod_1.z
|
|
105
|
-
.string()
|
|
106
|
-
.optional()
|
|
107
|
-
.describe('New body for the document, as Markdown or MDX text. JSON document content is not accepted.'),
|
|
108
|
-
format: zod_1.z
|
|
109
|
-
.enum(['markdown', 'mdx'])
|
|
110
|
-
.optional()
|
|
111
|
-
.describe(MDX_FORMAT_DESCRIPTION),
|
|
112
|
-
title: zod_1.z.string().optional().describe('New title of the document.'),
|
|
113
|
-
parentDocId: zod_1.z
|
|
114
|
-
.string()
|
|
115
|
-
.optional()
|
|
116
|
-
.describe('ID of the parent document to move this document under.'),
|
|
117
|
-
slug: zod_1.z.string().optional().describe('New URL slug for the document.'),
|
|
118
|
-
description: zod_1.z
|
|
119
|
-
.string()
|
|
120
|
-
.optional()
|
|
121
|
-
.describe('New short description / summary of the document.'),
|
|
122
|
-
previewImgURL: zod_1.z
|
|
123
|
-
.string()
|
|
124
|
-
.optional()
|
|
125
|
-
.describe('New preview / social image URL for the document.'),
|
|
126
|
-
hidden: zod_1.z
|
|
127
|
-
.boolean()
|
|
128
|
-
.optional()
|
|
129
|
-
.describe('When true, the document is hidden from navigation.'),
|
|
130
|
-
...docSpaceIdArg,
|
|
131
|
-
}, async (args) => callWriteApi({ tool: 'update-doc', ...args }));
|
|
132
|
-
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.', {
|
|
133
|
-
docId: zod_1.z.string().describe('ID of the document to delete.'),
|
|
134
|
-
recursive: zod_1.z
|
|
135
|
-
.boolean()
|
|
136
|
-
.optional()
|
|
137
|
-
.describe('Required (set to true) to delete a document that has nested child documents, which deletes those children too. When the document has children and this is not set, the call is rejected and the response lists the child documents that would be affected.'),
|
|
138
|
-
...docSpaceIdArg,
|
|
139
|
-
}, async (args) => callWriteApi({ tool: 'delete-doc', ...args }));
|
|
140
|
-
server.tool('create_doc_space', 'Create a new doc space (documentation space) in the current Archbee team.', {
|
|
141
|
-
name: zod_1.z.string().describe('Name of the new doc space.'),
|
|
142
|
-
isReviewSystemEnabled: zod_1.z
|
|
143
|
-
.boolean()
|
|
144
|
-
.optional()
|
|
145
|
-
.describe('Enable the review/approval workflow for the space.'),
|
|
146
|
-
isBranchingSystemEnabled: zod_1.z
|
|
147
|
-
.boolean()
|
|
148
|
-
.optional()
|
|
149
|
-
.describe('Enable the branching (git-style) workflow for the space.'),
|
|
150
|
-
docSpaceGroupId: zod_1.z
|
|
151
|
-
.string()
|
|
152
|
-
.optional()
|
|
153
|
-
.describe('ID of the collection/group to place the new space in.'),
|
|
154
|
-
}, async (args) => callWriteApi({ tool: 'create-doc-space', ...args }));
|
|
155
|
-
// Mirrors PublicAPIUpdateDocSpaceRequestSchema in @archbee/data-access, which
|
|
156
|
-
// this standalone package cannot import. The API re-validates with the real
|
|
157
|
-
// schema, so this only has to describe the shape well enough for the model;
|
|
158
|
-
// publicAccessControlPart passes unknown keys through so newer access-control
|
|
159
|
-
// fields keep working without a release here.
|
|
160
|
-
const emailListSchema = zod_1.z.array(zod_1.z.object({ email: zod_1.z.string() }));
|
|
161
|
-
const publicAccessControlPartSchema = zod_1.z
|
|
162
|
-
.object({
|
|
163
|
-
publicProtectionTypes: zod_1.z
|
|
164
|
-
.array(zod_1.z.enum([
|
|
165
|
-
'None',
|
|
166
|
-
'Password',
|
|
167
|
-
'Guest accounts',
|
|
168
|
-
'Private Accounts',
|
|
169
|
-
'Private Link',
|
|
170
|
-
'Magic Link',
|
|
171
|
-
'JWT',
|
|
172
|
-
'SAML',
|
|
173
|
-
'OIDC',
|
|
174
|
-
]))
|
|
175
|
-
.optional(),
|
|
176
|
-
publicPassword: zod_1.z.string().optional(),
|
|
177
|
-
publicGuestAccounts: zod_1.z
|
|
178
|
-
.array(zod_1.z.object({ email: zod_1.z.string(), password: zod_1.z.string() }))
|
|
179
|
-
.optional(),
|
|
180
|
-
publicMagicLinkAccounts: emailListSchema.optional(),
|
|
181
|
-
publicPrivateAccounts: emailListSchema.optional(),
|
|
182
|
-
jwtValidationType: zod_1.z.string().optional(),
|
|
183
|
-
jwtKeyUrl: zod_1.z.string().optional(),
|
|
184
|
-
jwtSecret: zod_1.z.string().optional(),
|
|
185
|
-
jwtRedirectURL: zod_1.z.string().optional(),
|
|
186
|
-
samlMetadata: zod_1.z.string().optional(),
|
|
187
|
-
samlEntityId: zod_1.z.string().optional(),
|
|
188
|
-
conditionalRuleId: zod_1.z.string().optional(),
|
|
189
|
-
})
|
|
190
|
-
.passthrough();
|
|
191
|
-
server.tool('update_doc_space', 'Update an Archbee doc space: rename it, or change its hostname, space links or public access control. Only the provided parts are changed, and at least one must be provided. The response echoes the space name, and get_all_docs / get_doc report it too, so a rename can be verified.', {
|
|
192
|
-
name: zod_1.z
|
|
193
|
-
.string()
|
|
194
|
-
.optional()
|
|
195
|
-
.describe('New display name for the space (renames it).'),
|
|
196
|
-
hostnamePart: zod_1.z
|
|
197
|
-
.object({ hostname: zod_1.z.string(), hostnamePath: zod_1.z.string() })
|
|
198
|
-
.optional()
|
|
199
|
-
.describe('Custom hostname configuration for the space.'),
|
|
200
|
-
spaceLinks: zod_1.z
|
|
201
|
-
.array(zod_1.z.object({ label: zod_1.z.string(), docSpaceId: zod_1.z.string() }))
|
|
202
|
-
.optional()
|
|
203
|
-
.describe('Links to other spaces. The list should start with the current space.'),
|
|
204
|
-
publicAccessControlPart: publicAccessControlPartSchema
|
|
205
|
-
.optional()
|
|
206
|
-
.describe('Public access control and authentication configuration.'),
|
|
207
|
-
...docSpaceIdArg,
|
|
208
|
-
}, async (args) => callWriteApi({ tool: 'update-doc-space', ...args }));
|
|
209
|
-
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.', { ...docSpaceIdArg }, async (args) => callWriteApi({ tool: 'delete-doc-space', ...args }));
|
|
210
|
-
server.tool('create_space_group', 'Create a new space group (collection of doc spaces) in the current Archbee team. Requires a team admin.', {
|
|
211
|
-
name: zod_1.z.string().describe('Name of the new space group.'),
|
|
212
|
-
isAiEnabled: zod_1.z
|
|
213
|
-
.boolean()
|
|
214
|
-
.optional()
|
|
215
|
-
.describe('Enable AI features for the space group.'),
|
|
216
|
-
isReviewSystemEnabled: zod_1.z
|
|
217
|
-
.boolean()
|
|
218
|
-
.optional()
|
|
219
|
-
.describe('Enable the review/approval workflow for the space group.'),
|
|
220
|
-
isBranchingSystemEnabled: zod_1.z
|
|
221
|
-
.boolean()
|
|
222
|
-
.optional()
|
|
223
|
-
.describe('Enable the branching (git-style) workflow for the space group.'),
|
|
224
|
-
}, async (args) => callWriteApi({ tool: 'create-space-group', ...args }));
|
|
225
|
-
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.', {
|
|
226
|
-
docSpaceGroupId: zod_1.z.string().describe('ID of the space group to delete.'),
|
|
227
|
-
}, async (args) => callWriteApi({ tool: 'delete-space-group', ...args }));
|
|
228
|
-
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 categoryId as `parentDocId` on create_doc or update_doc.', {
|
|
229
|
-
categoryName: zod_1.z.string().describe('Name of the category to create.'),
|
|
230
|
-
parentDocId: zod_1.z
|
|
231
|
-
.string()
|
|
232
|
-
.optional()
|
|
233
|
-
.describe('ID of the document or category to nest this category under. Omit to create it at the top level of the space.'),
|
|
234
|
-
...docSpaceIdArg,
|
|
235
|
-
}, async (args) => callWriteApi({ tool: 'create-category', ...args }));
|
|
236
|
-
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.', {
|
|
237
|
-
categoryId: zod_1.z.string().describe('ID of the category to delete.'),
|
|
238
|
-
...docSpaceIdArg,
|
|
239
|
-
}, async (args) => callWriteApi({ tool: 'delete-category', ...args }));
|
|
25
|
+
// team key it comes from the docSpaceId argument, which the team-level tools
|
|
26
|
+
// below do not take because they act on the team, not on a space.
|
|
27
|
+
server.tool('create_doc', 'Create a new document in the Archbee doc space from Markdown or MDX content.', 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.', tool_schemas_1.updateDocSchema, async (args) => callWriteApi({ tool: 'update-doc', ...args }));
|
|
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', 'Create a new doc space (documentation space) in the current Archbee team.', 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 or public access control. 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
|
+
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', 'Create a new space group (collection of doc spaces) in the current Archbee team. Requires a team admin.', tool_schemas_1.createSpaceGroupSchema, async (args) => callWriteApi({ tool: 'create-space-group', ...args }));
|
|
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
|
+
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 categoryId as `parentDocId` on create_doc or update_doc.', tool_schemas_1.createCategorySchema, async (args) => callWriteApi({ tool: 'create-category', ...args }));
|
|
36
|
+
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 }));
|
|
37
|
+
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' }));
|
|
38
|
+
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.', tool_schemas_1.createTemplateSchema, async (args) => callWriteApi({ tool: 'create-template', ...args }));
|
|
39
|
+
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 }));
|
|
40
|
+
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.', tool_schemas_1.applyTemplateSchema, async (args) => callWriteApi({ tool: 'apply-template', ...args }));
|
|
41
|
+
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' }));
|
|
42
|
+
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.', tool_schemas_1.createContentSnippetSchema, async (args) => callWriteApi({ tool: 'create-content-snippet', ...args }));
|
|
43
|
+
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 }));
|
|
44
|
+
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 }));
|
|
45
|
+
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 }));
|
|
46
|
+
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.', tool_schemas_1.createVariableSchema, async (args) => callWriteApi({ tool: 'create-variable', ...args }));
|
|
47
|
+
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 }));
|
|
48
|
+
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 }));
|
|
240
49
|
// Origin of the Archbee API the key belongs to, same variable the CLI takes.
|
|
241
50
|
// app.archbee.com/api is being phased out, so the default is api.archbee.com.
|
|
242
51
|
const apiMcpUrl = () => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,oEAAm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