@archbee/mcp 2.5.1 → 3.0.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 +42 -212
- package/dist/index.js +180 -216
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/src/index.ts +221 -465
- package/dist/tool-schemas.js +0 -324
- package/dist/tool-schemas.js.map +0 -1
- package/src/tool-schemas.ts +0 -414
package/README.md
CHANGED
|
@@ -1,257 +1,87 @@
|
|
|
1
|
-
# Archbee
|
|
1
|
+
# Archbee MCP
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Connects an MCP client that can only start a local stdio server to Archbee's hosted MCP server. The package has no tools of its own: it forwards every message to Archbee over HTTP, so the tools are always the ones Archbee serves today.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Most clients do not need this package.** Claude, ChatGPT, Cursor and VS Code connect to a URL directly:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
| You want | Connect to |
|
|
8
|
+
| -------- | ---------- |
|
|
9
|
+
| Read and write your organization's docs | `https://api.archbee.com/mcp` (sign in with OAuth, or send an API key) |
|
|
10
|
+
| Read one public docs site | `https://<your-docs-site>/mcp`, no login. The site's `/.well-known/mcp.json` names it too |
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
1. `get_doc`
|
|
12
|
-
- Gets content of a document
|
|
13
|
-
- Input:
|
|
14
|
-
- `docId` (string): Archbee document id
|
|
15
|
-
- 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
|
-
2. `get_all_docs`
|
|
17
|
-
- Gets content of all documents in the space
|
|
18
|
-
- Returns: documents, as `DocResponse[]`
|
|
19
|
-
3. `search_query`
|
|
20
|
-
- Searches docs by content; an empty query returns all docs
|
|
21
|
-
- Input:
|
|
22
|
-
- `query` (string): text to look for inside documents
|
|
23
|
-
- Returns: documents containing the query, as `DocResponse[]`
|
|
24
|
-
4. `search_title`
|
|
25
|
-
- Searches docs by title
|
|
26
|
-
- Input:
|
|
27
|
-
- `query` (string): text to look for in titles
|
|
28
|
-
- Returns: documents with a matching title, as `DocResponse[]`
|
|
29
|
-
|
|
30
|
-
Write — these need an API key, space or team (the configurations below):
|
|
31
|
-
|
|
32
|
-
5. `create_doc`
|
|
33
|
-
- Creates a document from Markdown or MDX content
|
|
34
|
-
- Input:
|
|
35
|
-
- `content` (string): body as Markdown or MDX text
|
|
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`, `icon`
|
|
38
|
-
6. `update_doc`
|
|
39
|
-
- Updates a document; only the fields you send are changed
|
|
40
|
-
- Input:
|
|
41
|
-
- `docId` (string): document to update
|
|
42
|
-
- optional: `content`, `format`, `title`, `parentDocId`, `slug`, `description`, `previewImgURL`, `hidden`, `icon`
|
|
43
|
-
7. `delete_doc`
|
|
44
|
-
- Permanently deletes a document, its uploaded files and images. Cannot be undone
|
|
45
|
-
- Input:
|
|
46
|
-
- `docId` (string): document to delete
|
|
47
|
-
- `recursive` (boolean, optional): required to delete a document that has nested children, which deletes them too
|
|
48
|
-
8. `create_doc_space`
|
|
49
|
-
- Creates a doc space in the team
|
|
50
|
-
- Input:
|
|
51
|
-
- `name` (string): name of the new space
|
|
52
|
-
- optional: `isReviewSystemEnabled`, `isBranchingSystemEnabled`, `docSpaceGroupId`, `icon`
|
|
53
|
-
- at most one of the two review flags, and either needs the Scaling plan or higher
|
|
54
|
-
9. `update_doc_space`
|
|
55
|
-
- Updates settings of the configured space; only the parts you send are changed
|
|
56
|
-
- Input, all optional:
|
|
57
|
-
- `name` (string): renames the space
|
|
58
|
-
- `icon` (string): left-nav icon
|
|
59
|
-
- `hostnamePart` (`{ hostname, hostnamePath }`): custom hostname configuration
|
|
60
|
-
- `spaceLinks` (`{ label, docSpaceId }[]`): links to other spaces; the list should start with the current space
|
|
61
|
-
- `publicAccessControlPart`: public access control and authentication configuration
|
|
62
|
-
- `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
|
|
63
|
-
- `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
|
|
64
|
-
10. `delete_doc_space`
|
|
65
|
-
- Permanently deletes the configured space and every document in it. Cannot be undone, and the `API_KEY` dies with it
|
|
66
|
-
11. `create_space_group`
|
|
67
|
-
- Creates a space group. Requires a team admin
|
|
68
|
-
- Input:
|
|
69
|
-
- `name` (string): name of the new group
|
|
70
|
-
- optional: `isAiEnabled`, `isReviewSystemEnabled`, `isBranchingSystemEnabled`
|
|
71
|
-
12. `delete_space_group`
|
|
72
|
-
- Deletes an empty space group. Requires a team admin
|
|
73
|
-
- Input:
|
|
74
|
-
- `docSpaceGroupId` (string): group to delete
|
|
75
|
-
13. `list_space_groups`
|
|
76
|
-
- Lists every space group with the doc spaces in it, each with its id and name. Use it to
|
|
77
|
-
discover a `docSpaceId` before calling a space-level tool. Requires a team key
|
|
78
|
-
- Input:
|
|
79
|
-
- `query` (string, optional): case-insensitive filter on space group and space names
|
|
80
|
-
14. `create_category`
|
|
81
|
-
- Creates a category (a folder in the space navigation)
|
|
82
|
-
- Input:
|
|
83
|
-
- `categoryName` (string): name of the category
|
|
84
|
-
- `parentDocId` (string, optional): node to nest it under
|
|
85
|
-
15. `delete_category`
|
|
86
|
-
- Deletes an empty category. Documents are never deleted
|
|
87
|
-
- Input:
|
|
88
|
-
- `categoryId` (string): category to delete
|
|
89
|
-
|
|
90
|
-
An `icon` is either an emoji (`"🚀"`), or a JSON string naming an icon:
|
|
91
|
-
`{"lucideIcon":"Rocket"}`, `{"faIcon":"fa-solid fa-rocket"}` or `{"apiMethod":"GET"}`.
|
|
92
|
-
An empty string clears it; anything else is rejected.
|
|
93
|
-
|
|
94
|
-
Reusable resources — templates, content snippets and variables belong to the organization, not to a
|
|
95
|
-
space, so these take no `docSpaceId`. The `list_*` tools work with either key; the rest need a team key:
|
|
96
|
-
|
|
97
|
-
16. `list_templates`
|
|
98
|
-
- Lists the saved document templates, with their content as markdown
|
|
99
|
-
17. `create_template`
|
|
100
|
-
- Saves a new document template. A taken name (case-insensitive) returns the existing
|
|
101
|
-
template's id with `alreadyExists: true` instead of creating a duplicate — the existing
|
|
102
|
-
content is kept, so a different body needs a new name
|
|
103
|
-
- Input:
|
|
104
|
-
- `name` (string): name of the template
|
|
105
|
-
- optional: `content`, `format`, `icon`
|
|
106
|
-
18. `apply_template`
|
|
107
|
-
- Creates a document from a template, copying its content verbatim
|
|
108
|
-
- Input:
|
|
109
|
-
- `templateId` (string): template to apply
|
|
110
|
-
- optional: `title` (defaults to the template name), `parentDocId`, `slug`, `icon`
|
|
111
|
-
19. `delete_template`
|
|
112
|
-
- Deletes a template by moving it to the organization's Archives space, where a person can restore it
|
|
113
|
-
- Input:
|
|
114
|
-
- `templateId` (string): template to delete
|
|
115
|
-
20. `list_content_snippets`
|
|
116
|
-
- Lists the reusable content snippets, with their content as markdown
|
|
117
|
-
21. `create_content_snippet`
|
|
118
|
-
- Creates a content snippet. Requires a Scaling or Enterprise subscription. A taken name
|
|
119
|
-
(case-insensitive) returns the existing snippet's id with `alreadyExists: true` instead of
|
|
120
|
-
creating a duplicate — the existing content is kept, use `update_content_snippet` to change it
|
|
121
|
-
- Input:
|
|
122
|
-
- `name` (string): name of the snippet
|
|
123
|
-
- optional: `content`, `format`
|
|
124
|
-
22. `update_content_snippet`
|
|
125
|
-
- Renames a snippet, replaces its content, or both — reaching every document that embeds it
|
|
126
|
-
- Input:
|
|
127
|
-
- `snippetId` (string): snippet to update
|
|
128
|
-
- at least one of: `name`, `content` (plus optional `format`)
|
|
129
|
-
23. `delete_content_snippet`
|
|
130
|
-
- Permanently deletes a content snippet. Cannot be undone
|
|
131
|
-
- Input:
|
|
132
|
-
- `snippetId` (string): snippet to delete
|
|
133
|
-
24. `list_variables`
|
|
134
|
-
- Lists the content variables and glossary terms, with their values and overrides
|
|
135
|
-
- Input:
|
|
136
|
-
- `variableType` (`variable` | `glossary`, optional): omit for both
|
|
137
|
-
25. `create_variable`
|
|
138
|
-
- Creates a content variable or glossary term. Requires a Scaling or Enterprise subscription
|
|
139
|
-
- Input:
|
|
140
|
-
- `name` (string): how documents reference it (`{{name}}`); unique within its type, letters,
|
|
141
|
-
digits, `-`, `_` and `.` only, max 40 characters. Readers never see it in the glossary
|
|
142
|
-
- `variableContent` (string): value it resolves to (max 100 characters). For a glossary term
|
|
143
|
-
this is the TERM readers see (max 40 characters)
|
|
144
|
-
- optional: `description` (max 250 characters; for a glossary term this is the DEFINITION
|
|
145
|
-
readers see, and it is required), `variableType`, `spaceTargetMap` (per-space or
|
|
146
|
-
per-language overrides)
|
|
147
|
-
26. `update_variable`
|
|
148
|
-
- Updates a variable or glossary term; only the fields you send are changed
|
|
149
|
-
- Input:
|
|
150
|
-
- `variableId` (string): variable to update
|
|
151
|
-
- at least one of: `name`, `variableContent`, `description`, `variableType`, `spaceTargetMap`
|
|
152
|
-
(same field roles and limits as `create_variable`)
|
|
153
|
-
27. `delete_variable`
|
|
154
|
-
- Permanently deletes a variable or glossary term. References to it stop resolving
|
|
155
|
-
- Input:
|
|
156
|
-
- `variableId` (string): variable to delete
|
|
12
|
+
Use `@archbee/mcp` when your client takes a `command` instead of a `url`.
|
|
157
13
|
|
|
158
14
|
## Setup
|
|
159
15
|
|
|
160
|
-
Add
|
|
161
|
-
|
|
162
|
-
### Environment Variables - public portal
|
|
16
|
+
Add one of these to your client's MCP configuration (`claude_desktop_config.json`, `.cursor/mcp.json`, ...).
|
|
163
17
|
|
|
164
|
-
|
|
18
|
+
### Organization API key: read and write every space
|
|
165
19
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
Copy it from your portal's `/.well-known/mcp.json`, e.g. `https://docs.customer.com/.well-known/mcp.json` (`docs.customer.com` is an example, use your own portal's address).
|
|
20
|
+
The organization super admin creates the key in Settings → Organization settings → Organization API key. It is shown once.
|
|
169
21
|
|
|
170
22
|
```json
|
|
171
23
|
{
|
|
172
24
|
"mcpServers": {
|
|
173
25
|
"archbee": {
|
|
174
|
-
"command": "
|
|
175
|
-
"args": ["
|
|
176
|
-
"env": {
|
|
177
|
-
"SPACE_ID": "PUBLISHED-<id-of-space>"
|
|
178
|
-
}
|
|
26
|
+
"command": "npx",
|
|
27
|
+
"args": ["-y", "@archbee/mcp"],
|
|
28
|
+
"env": { "API_KEY": "abteam_<organization-key>" }
|
|
179
29
|
}
|
|
180
30
|
}
|
|
181
31
|
}
|
|
182
32
|
```
|
|
183
33
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
### Environment Variables - space id
|
|
187
|
-
|
|
188
|
-
Required for the write tools, and also works for reading internal spaces.
|
|
189
|
-
|
|
190
|
-
You can get an API token from Space Settings in Archbee app.
|
|
34
|
+
### Space API key: read and write one space
|
|
191
35
|
|
|
192
|
-
|
|
193
|
-
- `API_KEY`: Your Archbee API token for that Space
|
|
194
|
-
|
|
195
|
-
Use the live space id here. A `PUBLISHED-` or `PREVIEW-` snapshot id reads fine, but the API refuses every write through a snapshot credential.
|
|
196
|
-
|
|
197
|
-
A space API key belongs to one space, so this configuration reads and writes that space only. For every space in the team, use a team key instead.
|
|
36
|
+
Create the key in the space settings. `SPACE_ID` is the live space id from the space URL in the app.
|
|
198
37
|
|
|
199
38
|
```json
|
|
200
39
|
{
|
|
201
40
|
"mcpServers": {
|
|
202
41
|
"archbee": {
|
|
203
|
-
"command": "
|
|
204
|
-
"args": ["
|
|
205
|
-
"env": {
|
|
206
|
-
"SPACE_ID": "<id-of-space>",
|
|
207
|
-
"API_KEY": "<api-key-of-space>"
|
|
208
|
-
}
|
|
42
|
+
"command": "npx",
|
|
43
|
+
"args": ["-y", "@archbee/mcp"],
|
|
44
|
+
"env": { "API_KEY": "<space-key>", "SPACE_ID": "<space-id>" }
|
|
209
45
|
}
|
|
210
46
|
}
|
|
211
47
|
}
|
|
212
48
|
```
|
|
213
49
|
|
|
214
|
-
###
|
|
215
|
-
|
|
216
|
-
Reads and writes every space in the team. The organization super-admin creates the key in Settings → Organization settings → Organization API key; it is shown once, on creation, and cannot be read back afterwards. Revoking it stops every assistant configured with it.
|
|
50
|
+
### No key: read one public docs site
|
|
217
51
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
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.
|
|
52
|
+
`API_BASE` is the link to a published docs site with no access control (no password, login or JWT).
|
|
221
53
|
|
|
222
54
|
```json
|
|
223
55
|
{
|
|
224
56
|
"mcpServers": {
|
|
225
57
|
"archbee": {
|
|
226
|
-
"command": "
|
|
227
|
-
"args": ["
|
|
228
|
-
"env": {
|
|
229
|
-
"API_KEY": "abteam_<team-key>"
|
|
230
|
-
}
|
|
58
|
+
"command": "npx",
|
|
59
|
+
"args": ["-y", "@archbee/mcp"],
|
|
60
|
+
"env": { "API_BASE": "https://docs.example.com" }
|
|
231
61
|
}
|
|
232
62
|
}
|
|
233
63
|
}
|
|
234
64
|
```
|
|
235
65
|
|
|
236
|
-
|
|
66
|
+
`docs.example.com` is an example: use your own site's address. A `SPACE_ID` starting with `PUBLISHED-`, set up from an older `/.well-known/mcp.json`, keeps working in place of `API_BASE`.
|
|
237
67
|
|
|
238
|
-
|
|
68
|
+
### Other Archbee installs
|
|
239
69
|
|
|
240
|
-
|
|
70
|
+
The key configurations and `SPACE_ID` talk to `https://api.archbee.com`. Set `ARCHBEE_API_URL` to the origin of another Archbee API, for example `https://eu.api.archbee.com`. It must be the API address: the app address (`https://app.archbee.com`) worked in 2.x and answers 404 in 3.0.0.
|
|
241
71
|
|
|
242
|
-
|
|
72
|
+
## Tools
|
|
243
73
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
74
|
+
The hosted server lists them, with their descriptions, to your client. With a key you get documents (`search`, `search_title`, `fetch`, `get_all_docs`, `create_doc`, `create_docs`, `update_doc`, `delete_doc`), a file-system view of the docs (`ls`, `cd`, `cat`, `grep`, `find`), spaces and space groups, categories, templates, content snippets, variables and `whoami`. A public docs site offers `search`, `fetch` and `get_all_docs`, which returns the table of contents.
|
|
75
|
+
|
|
76
|
+
## Upgrading from 2.x
|
|
77
|
+
|
|
78
|
+
3.0.0 forwards to the hosted server instead of shipping its own copy of the tools. Your configuration keeps working unchanged, but two tools were renamed. `npx -y @archbee/mcp` without a version picks up 3.0.0 on its own, so update anything that lists tools by name: permission allowlists, `allowedTools`, CLAUDE.md or Cursor rules. To stay on 2.x for now, run `@archbee/mcp@2`.
|
|
79
|
+
|
|
80
|
+
| 2.x | 3.0.0 | Also changed |
|
|
81
|
+
| --- | ----- | ------------ |
|
|
82
|
+
| `get_doc` | `fetch` | The argument is `id`, was `docId` |
|
|
83
|
+
| `search_query` | `search` | With an organization key, no `docSpaceId` searches every space |
|
|
84
|
+
|
|
85
|
+
Without a key, `get_all_docs` returns the table of contents (title, path and id, paged) instead of every document's content, and `search_title` is gone: use `search`, then `fetch` each page you need. The `create_docs` warning about calls that time out while the server is still creating is now in the tool's description.
|
|
86
|
+
|
|
87
|
+
Requires Node.js 18 or newer.
|