bookstack-mcp 5.6.1 → 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.
Files changed (3) hide show
  1. package/README.md +18 -0
  2. package/dist/index.js +13 -3
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -79,6 +79,24 @@ use these tools to order pages and chapters within a book.
79
79
  (1–180 characters), saved as the revision summary in the page's history. It
80
80
  needs BookStack v26.09 or newer; older versions silently ignore it.
81
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
+
82
100
  `get_page` accepts `format: "raw"` to return the page's stored editor HTML
83
101
  (BookStack's `raw_html`). The `html` format is the rendered view readers see:
84
102
  page includes are resolved and the content filter has run, so attributes such as
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("Tags for the book")
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.6.1",
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": {
@@ -43,10 +43,10 @@
43
43
  "node": ">=18"
44
44
  },
45
45
  "dependencies": {
46
- "@modelcontextprotocol/sdk": "^1.25.3",
47
- "axios": "^1.6.0",
46
+ "@modelcontextprotocol/sdk": "^1.32.2",
47
+ "axios": "^1.21.0",
48
48
  "ioredis": "^5.11.1",
49
- "jose": "^6.2.3",
49
+ "jose": "^6.2.14",
50
50
  "zod": "^4.6.5"
51
51
  },
52
52
  "devDependencies": {