bookstack-mcp 5.6.0 → 5.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 +32 -1
- package/TERMS.md +42 -0
- package/dist/index.js +13 -3
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -18,7 +18,8 @@ npx bookstack-mcp
|
|
|
18
18
|
|
|
19
19
|
Read the [privacy policy](./PRIVACY.md) for data flows, credentials, optional
|
|
20
20
|
OAuth/Redis state, and logging. Your MCP client and deployment operator may have
|
|
21
|
-
additional policies.
|
|
21
|
+
additional policies. The [terms of use](./TERMS.md) explain the scope of the
|
|
22
|
+
software under its [MIT license](./LICENSE).
|
|
22
23
|
|
|
23
24
|
Field notes: [Why my BookStack MCP server starts read-only](https://hackyourworld.com/bookstack-mcp-server-read-only-by-default/) covers the shared-token rate-limit failure, process-wide cache, response-size measurements, and permission boundaries that shaped the current design.
|
|
24
25
|
|
|
@@ -78,6 +79,24 @@ use these tools to order pages and chapters within a book.
|
|
|
78
79
|
(1–180 characters), saved as the revision summary in the page's history. It
|
|
79
80
|
needs BookStack v26.09 or newer; older versions silently ignore it.
|
|
80
81
|
|
|
82
|
+
`create_page`, `update_page`, `create_book`, and `update_book` accept `tags`
|
|
83
|
+
as an array of `{ "name": "Environment", "value": "Production" }` objects.
|
|
84
|
+
Use `"value": ""` for a tag with no value. Chapter and shelf create/update
|
|
85
|
+
tools also support tags.
|
|
86
|
+
|
|
87
|
+
On updates, `tags` replaces the entire tag list: omit it to leave tags unchanged,
|
|
88
|
+
or pass `[]` to remove all tags. To add, edit, or remove individual tags, first
|
|
89
|
+
read the entity with `get_page` or `get_book`, then send the revised list,
|
|
90
|
+
including every tag you want to keep. For example:
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{"id": 42, "tags": [{"name": "Environment", "value": "Production"}, {"name": "Reviewed", "value": ""}]}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Pass this to `update_page` or `update_book`. A tag-only update needs no page
|
|
97
|
+
content and preserves the editor source. Tag writes require
|
|
98
|
+
`BOOKSTACK_ENABLE_WRITE=true` and the corresponding BookStack edit permission.
|
|
99
|
+
|
|
81
100
|
`get_page` accepts `format: "raw"` to return the page's stored editor HTML
|
|
82
101
|
(BookStack's `raw_html`). The `html` format is the rendered view readers see:
|
|
83
102
|
page includes are resolved and the content filter has run, so attributes such as
|
|
@@ -96,6 +115,18 @@ When you edit a page, match the format to the page's `editor` field:
|
|
|
96
115
|
|
|
97
116
|
## Client Configuration
|
|
98
117
|
|
|
118
|
+
### Codex plugin
|
|
119
|
+
|
|
120
|
+
This repository includes a native Codex manifest at
|
|
121
|
+
`.codex-plugin/plugin.json`, which references the stdio server in `.mcp.json`.
|
|
122
|
+
Set `BOOKSTACK_BASE_URL`, `BOOKSTACK_TOKEN_ID`, and `BOOKSTACK_TOKEN_SECRET` in
|
|
123
|
+
the environment that launches Codex before enabling the plugin. Write operations
|
|
124
|
+
remain disabled unless `BOOKSTACK_ENABLE_WRITE=true` is set.
|
|
125
|
+
|
|
126
|
+
The manifest supplies the project website, privacy policy, and terms of use for
|
|
127
|
+
plugin directories, including HOL. The HOL Guard CI workflow scans this manifest
|
|
128
|
+
alongside the Claude and Gemini manifests; it does not submit or publish listings.
|
|
129
|
+
|
|
99
130
|
### Claude Desktop
|
|
100
131
|
|
|
101
132
|
The easiest install is the prebuilt MCPB bundle attached to each [GitHub release](https://github.com/ttpears/bookstack-mcp/releases/latest):
|
package/TERMS.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Terms of use for bookstack-mcp
|
|
2
|
+
|
|
3
|
+
Last reviewed: 2026-10-10.
|
|
4
|
+
|
|
5
|
+
`bookstack-mcp` is open-source software you run locally or deploy yourself. Its
|
|
6
|
+
use, copying, modification, and distribution are governed by the
|
|
7
|
+
[MIT license](./LICENSE), including its copyright notice, warranty disclaimer,
|
|
8
|
+
and limitation of liability. This document explains that software's scope; it
|
|
9
|
+
does not add restrictions to the MIT license.
|
|
10
|
+
|
|
11
|
+
## Software and hosted services
|
|
12
|
+
|
|
13
|
+
The repository distributes an MCP server, not a hosted BookStack service. The
|
|
14
|
+
project does not provide an account, subscription, service-level agreement, or
|
|
15
|
+
guarantee of support or availability. A separately operated deployment may have
|
|
16
|
+
its own terms, provided by its operator.
|
|
17
|
+
|
|
18
|
+
BookStack instances, MCP clients, AI providers, Microsoft Entra ID, Redis hosts,
|
|
19
|
+
and package registries are separate services. Their applicable terms and
|
|
20
|
+
policies govern your use of those services; this project does not make
|
|
21
|
+
commitments on their behalf.
|
|
22
|
+
|
|
23
|
+
## Access and content
|
|
24
|
+
|
|
25
|
+
You choose the BookStack instance, credentials, connected clients, and deployment
|
|
26
|
+
configuration. Use credentials and content you are authorized to access, and
|
|
27
|
+
review AI-generated changes before relying on them. Write operations are disabled
|
|
28
|
+
by default; enabling them permits tools to create, modify, and delete content
|
|
29
|
+
within the configured BookStack user's permissions. Maintain backups appropriate
|
|
30
|
+
to your deployment.
|
|
31
|
+
|
|
32
|
+
The project does not claim ownership of your wiki content. Data handling is
|
|
33
|
+
described in [PRIVACY.md](./PRIVACY.md), and deployment security guidance and
|
|
34
|
+
vulnerability reporting are described in [SECURITY.md](./SECURITY.md).
|
|
35
|
+
|
|
36
|
+
## Questions and versions
|
|
37
|
+
|
|
38
|
+
For questions about the software, use the
|
|
39
|
+
[project issue tracker](https://github.com/ttpears/bookstack-mcp/issues) without
|
|
40
|
+
including credentials or private content. Contact the relevant operator for
|
|
41
|
+
questions about a hosted deployment. This document is versioned with the
|
|
42
|
+
repository; consult the documents shipped with the revision you run.
|
package/dist/index.js
CHANGED
|
@@ -563,7 +563,7 @@ function registerTools(server, client, config) {
|
|
|
563
563
|
tags: z.array(z.object({
|
|
564
564
|
name: z.string(),
|
|
565
565
|
value: z.string()
|
|
566
|
-
}).strict()).optional().describe("
|
|
566
|
+
}).strict()).optional().describe("Replace all book tags. Omit to preserve tags; [] removes all. Read get_book first and include any tags to keep. Use an empty value for a name-only tag.")
|
|
567
567
|
}
|
|
568
568
|
}, async (args) => {
|
|
569
569
|
const book = await client.updateBook(args.id, {
|
|
@@ -608,6 +608,10 @@ function registerTools(server, client, config) {
|
|
|
608
608
|
chapter_id: z.coerce.number().optional().describe("Optional: Chapter ID if page should be in a chapter"),
|
|
609
609
|
html: z.string().optional().describe("Optional: HTML content"),
|
|
610
610
|
markdown: z.string().optional().describe("Optional: Markdown content"),
|
|
611
|
+
tags: z.array(z.object({
|
|
612
|
+
name: z.string(),
|
|
613
|
+
value: z.string()
|
|
614
|
+
}).strict()).optional().describe("Tags for the new page; use an empty value for a name-only tag"),
|
|
611
615
|
changelog: z.string().min(1).max(180).optional().describe("Optional: Revision changelog message shown in the page history (BookStack v26.09+; older servers ignore it)")
|
|
612
616
|
}
|
|
613
617
|
}, async (args) => {
|
|
@@ -617,7 +621,8 @@ function registerTools(server, client, config) {
|
|
|
617
621
|
chapter_id: args.chapter_id,
|
|
618
622
|
html: args.html,
|
|
619
623
|
markdown: args.markdown,
|
|
620
|
-
changelog: args.changelog
|
|
624
|
+
changelog: args.changelog,
|
|
625
|
+
tags: args.tags
|
|
621
626
|
});
|
|
622
627
|
return {
|
|
623
628
|
content: [{ type: "text", text: JSON.stringify(page) }]
|
|
@@ -633,6 +638,10 @@ function registerTools(server, client, config) {
|
|
|
633
638
|
book_id: z.coerce.number().min(1).optional().describe("Optional: Move page to this book"),
|
|
634
639
|
chapter_id: z.coerce.number().optional().describe("Optional: Move page into this chapter (must belong to the target book; pass 0 to move out of any chapter)"),
|
|
635
640
|
priority: z.coerce.number().int().min(0).optional().describe("Optional: Sort order (non-negative integer, lower sorts first)"),
|
|
641
|
+
tags: z.array(z.object({
|
|
642
|
+
name: z.string(),
|
|
643
|
+
value: z.string()
|
|
644
|
+
}).strict()).optional().describe("Replace all page tags. Omit to preserve tags; [] removes all. Read get_page first and include any tags to keep. Use an empty value for a name-only tag. Can be updated without sending page content."),
|
|
636
645
|
changelog: z.string().min(1).max(180).optional().describe("Optional: Revision changelog message shown in the page history (BookStack v26.09+; older servers ignore it)")
|
|
637
646
|
}
|
|
638
647
|
}, async (args) => {
|
|
@@ -643,7 +652,8 @@ function registerTools(server, client, config) {
|
|
|
643
652
|
book_id: args.book_id,
|
|
644
653
|
chapter_id: args.chapter_id,
|
|
645
654
|
priority: args.priority,
|
|
646
|
-
changelog: args.changelog
|
|
655
|
+
changelog: args.changelog,
|
|
656
|
+
tags: args.tags
|
|
647
657
|
});
|
|
648
658
|
return {
|
|
649
659
|
content: [{ type: "text", text: JSON.stringify(page) }]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bookstack-mcp",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "MCP server for BookStack wiki — search, read, create, and manage documentation via AI assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
-
"PRIVACY.md"
|
|
11
|
+
"PRIVACY.md",
|
|
12
|
+
"TERMS.md"
|
|
12
13
|
],
|
|
13
14
|
"scripts": {
|
|
14
15
|
"build": "tsc && shx chmod +x dist/*.js",
|
|
@@ -42,10 +43,10 @@
|
|
|
42
43
|
"node": ">=18"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
46
|
-
"axios": "^1.
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
47
|
+
"axios": "^1.21.0",
|
|
47
48
|
"ioredis": "^5.11.1",
|
|
48
|
-
"jose": "^6.2.
|
|
49
|
+
"jose": "^6.2.14",
|
|
49
50
|
"zod": "^4.6.5"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|