Bookstack Mcp 标志

Bookstack Mcp

社区
dujonwalker
bookstack-mcp

通过 bookstack-mcp MCP 服务器操作 BookStack wiki 时,均使用此技能:搜索或阅读书籍、章节、页面、书架、附件、评论和图片;导出内容;创建或更新页面、标签和图库图片;或从回收站恢复内容。配置 bookstack-mcp(只读或写入模式、API 令牌、图片主机允许列表或客户端设置)时也使用此技能。

概览

发布者dujonwalker
代码仓库project-nova
技能名称bookstack-mcp
星标数
271
复刻数
33
附带文件
4
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 dujonwalker 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Bookstack Mcp AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/bookstack-mcp
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dujonwalker/project-nova.git /tmp/project-nova
mkdir -p .claude/skills
cp -r /tmp/project-nova/mcp-skills/bookstack-mcp .claude/skills/bookstack-mcp
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Bookstack Mcp,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Bookstack Mcp。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Bookstack Mcp 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

BookStack MCP (bookstack-mcp)

Use the bookstack-mcp MCP tools as the primary interface for reading, searching, exporting, and maintaining a BookStack wiki.

Core Workflows

  • Search & discover: Start with search_content (supports BookStack qualifiers like {type:page}, {created_by:jane-doe}, {updated_by:me}) or search_pages (scoped by book_id), plus get_recent_changes, get_books, get_chapters, get_shelves, and get_pages. Search results are previews—always fetch full content with get_page.
  • Read large pages: Call get_page (limit defaults to 50000, max 200000 chars). If content_next_offset is non-null, call get_page again with offset: content_next_offset and the same format until null. Always read all chunks before editing a large page.
  • Edit pages safely:
    • Markdown pages: Read with format: "markdown", update with markdown.
    • HTML/WYSIWYG pages: Read with format: "raw", update with html.
    • Tags: tags replaces the entire tag list. Omit tags to preserve existing tags, send tags: [] to clear all, or read current tags first and send the full desired list.
    • Move/reorder: On create_page, omit chapter_id for a top-level book page (chapter_id: 0 can 404). On update_page, pass chapter_id: 0 with book_id to move an existing page to a book's top level; moving into a chapter requires both chapter_id and book_id. Lower priority sorts first.
  • Images, attachments & exports:
    • create_image uploads gallery images (PNG/JPEG/GIF/WebP/SVG, up to 50 MiB) via url or file_path (local stdio only) and returns content.html / content.markdown snippets. It does not insert the image into the page—follow up with update_page.
    • create_attachment creates link attachments (name, uploaded_to, link), not binary file uploads.
    • export_page / export_book / export_chapter: html, markdown, and plaintext return content directly; pdf and zip return BookStack web download URLs.
  • Comments & recovery: get_comments / create_comment / update_comment / delete_comment require BookStack v25.11+. For deletions, get deletion_id from get_recycle_bin, then call restore_deleted or permanently_delete (irreversible).

Read references/tools-reference.md for all 43 tools (21 read + 22 write), MCP resource templates, and prompts.

Gotchas

  • Read-only by default: Only 21 read tools are registered unless BOOKSTACK_ENABLE_WRITE=true (or OAuth write-role + write-token pair) is configured. Tool visibility does not override BookStack role permissions.
  • Never save rendered html back to a page: get_page with format: "html" returns the rendered reader view (stripping editor attributes and expanding includes), and saving html on a Markdown page clears its stored Markdown source.
  • Author search requires slugs, not IDs: {created_by:...}, {updated_by:...}, and {owned_by:...} reject numeric user IDs; use me or a user slug (resolve via find_users if you have admin access).
  • Export Content permission for Markdown: BookStack stores no Markdown source for WYSIWYG pages, so bookstack-mcp falls back to BookStack's export endpoint, which requires the Export Content role permission.
  • deletion_id != entity ID: restore_deleted and permanently_delete take the deletion_id from get_recycle_bin, not the original page/book/chapter ID.
  • changelog version behavior: changelog (1–180 chars) on create_page/update_page is recorded on BookStack v26.09+ and silently ignored on older versions.

Setup & Configuration

If bookstack-mcp is not yet connected or needs write mode, image allowlists (BOOKSTACK_IMAGE_ALLOWED_HOSTS), or client config, read references/setup-and-config.md.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Bookstack Mcp AI 技能有什么作用?

通过 bookstack-mcp MCP 服务器操作 BookStack wiki 时,均使用此技能:搜索或阅读书籍、章节、页面、书架、附件、评论和图片;导出内容;创建或更新页面、标签和图库图片;或从回收站恢复内容。配置 bookstack-mcp(只读或写入模式、API 令牌、图片主机允许列表或客户端设置)时也使用此技能。

为什么在 TypingMind 中使用 Bookstack Mcp?

因为您只需安装一次,就能搭配任何模型使用。Bookstack Mcp 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Bookstack Mcp?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/bookstack-mcp。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Bookstack Mcp?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Bookstack Mcp 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Bookstack Mcp 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Bookstack Mcp AI 技能免费吗?

是的。dujonwalker 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇