DocsMint

io.github.HiAi-gg由 GitHub 帳號 HiAi-gg 發布v2.1.3更新於 Nov 8, 2026

Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.

已驗證Streamable HTTP可網頁執行檔案與儲存知識與記憶

概覽

AI 產生的概覽

DocsMint 為助理提供可長期保存的專案知識:混合檢索、GraphRAG 探索,以及在權限範圍內建立、編輯與整理工作區文件。

可以做什麼
  • 依資料夾、標籤或文字瀏覽與混合檢索文件,並讀取內容、Markdown 匯出或版本歷史
  • 建立與修改文件、資料夾、分類與標籤,並為文件加上或移除標籤
  • 建立快照、還原版本、移至回收筒、檢視回收筒、還原已刪除文件,並依明確要求永久清除
  • 圍繞單一文件探索知識圖譜,並檢視或重新整理索引狀態
  • 對最多 25 個明確指定的文件 ID 批次執行同一項操作
  • 使用內建提示詞與資源取得工作區整理、研究與檢索指引
適用情境
適合讓助理在長期維護的文件庫上工作,而非臨時檔案:跨專案文件研究、起草與更新頁面,或在權限受限的前提下重整資料夾、分類與標籤。
執行需求
可選託管的 Cloud 端點,需 OAuth 瀏覽器授權或以 Authorization 承載權杖形式提供的 API 金鑰,並需帳號及包含託管 MCP 的方案;或自架方式,需已運作的 DocsMint REST API、透過 npx 或 bunx 執行的 npm 套件,以及 HIAI_DOCS_URL 與 HIAI_DOCS_API_KEY。未綁定工作區的金鑰可能還需 X-Docsmint-Workspace 標頭。
安裝前請注意
此伺服器可建立、更新、移至回收筒、還原並不可逆地清除文件、資料夾、分類與標籤,批次操作依序執行且可能部分成功。盡量使用綁定工作區或分類範圍的金鑰,而非全域金鑰。OAuth 權杖一小時後過期且不發放更新權杖,需要重新授權。憑證只能在瀏覽器介面管理,無法透過 MCP 操作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 DocsMint,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.HiAi-gg%2Fdocsmint/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "docsmint": {
      "type": "http",
      "url": "https://docsmint.com/mcp"
    }
  }
}

README

DocsMint MCP server

Give your AI agents persistent project knowledge. Search, read, create, and organize documents with hybrid retrieval, reranking, GraphRAG, and scoped access.

DocsMint Cloud is recommended: connect to https://docsmint.com/mcp over Streamable HTTP. No server deployment is required. For an advanced self-hosted setup, run your own DocsMint API and connect the docsmint-mcp stdio bridge with your own API key. The bridge ships in @hiai-gg/docsmint alongside the TypeScript SDK and CLI.

Option A — DocsMint Cloud (recommended)

Start at Connect DocsMint Cloud. No self-hosted server or local MCP process is required.

  1. Sign up or log in to your existing DocsMint account.
  2. Choose your workspace and confirm your plan includes hosted MCP.
  3. For OAuth-capable clients, authorize in the browser and consent to your workspace and explicit scopes. For API-key clients, create an MCP/API credential in the authenticated UI; prefer workspace-bound or category-scoped access.
  4. Select your MCP client and follow its connection instructions.
  5. Verify the connection with initialize and a permitted tool call.

OAuth-capable clients use the same hosted URL. An unauthenticated request returns 401 with a WWW-Authenticate link to /.well-known/oauth-protected-resource/mcp. That resource metadata points to /.well-known/oauth-authorization-server. The current hosted authorization and client-connection methods are described in the DocsMint Cloud setup guide.

Current authorization metadata advertises the code response type, only the authorization_code grant, no token-endpoint client authentication, and PKCE with S256. The token endpoint exchanges an authorization code and does not issue or accept refresh tokens.

Authorization uses your existing DocsMint account and browser consent with the authorization-code grant and required PKCE S256. Consent binds access to the selected workspace, optional category, and requested mcp:read, mcp:edit, and mcp:write scopes. Opaque bearer tokens are bound to the hosted MCP resource, expire after one hour, and can be revoked in the browser UI. No refresh tokens are issued; authorize again after expiry. This is a DocsMint Cloud feature, not an OAuth server installed by the stdio npm bridge.

API-key clients connect to https://docsmint.com/mcp using Authorization: Bearer <key>. Credential creation, changes, and revocation are browser-session-owned: MCP/API credentials cannot create or elevate credentials.

bash
export HIAI_DOCS_API_KEY="your-global-or-category-key"
codex mcp add docsmint \  --url https://docsmint.com/mcp \  --bearer-token-env-var HIAI_DOCS_API_KEY

Generic HTTP clients should connect to https://docsmint.com/mcp with Authorization: Bearer <key>. Bound workspace keys need no extra header; unbound keys can supply the documented X-Docsmint-Workspace slug.

Option B — Self-hosted stdio bridge (advanced)

The published MCP binary connects to an already running DocsMint API. Installing the package does not deploy DocsMint itself.

Run DocsMint first, create an API key in its authenticated browser UI, set HIAI_DOCS_URL to your deployment API URL and HIAI_DOCS_API_KEY to that key, then start the stdio bridge. Do not use an /api/health URL as an MCP endpoint. The bridge authenticates to your own DocsMint API with that Bearer API key; it does not install or expose the DocsMint Cloud OAuth authorization server.

Run with Bun

bash
bunx --package @hiai-gg/docsmint docsmint-mcp

Run with NPX

bash
npx --yes --package @hiai-gg/docsmint docsmint-mcp

Run from a local checkout

bash
git clone https://github.com/HiAi-gg/docsmint.gitcd docsmintbun install --frozen-lockfilebun run packages/mcp-server/src/index.ts

All three methods run the same stdio server from @hiai-gg/docsmint.

Client configuration

json
{  "mcpServers": {    "docsmint": {      "command": "npx",      "args": ["--yes", "--package", "@hiai-gg/docsmint", "docsmint-mcp"],      "env": {        "HIAI_DOCS_URL": "http://localhost:50700",        "HIAI_DOCS_API_KEY": "your-global-or-category-key"      }    }  }}

HIAI_DOCS_URL defaults to http://localhost:50700. The optional API key is sent as a Bearer token. Prefer a category key for a category-bound agent and a global key for trusted owner-wide automation. Category read, edit, and write scopes are explicit rather than hierarchical; configure the combination required by the tools you expose.

Glama Server listing

For the Glama MCP Server directory, submit this open-source stdio bridge from the DocsMint repository. Start it with the NPX command above (Bun must be installed to execute the published binary). Provide HIAI_DOCS_URL as the URL of an already running, reachable DocsMint API and HIAI_DOCS_API_KEY as a secret API key with the permissions your tools need. Both values are required for a usable hosted Glama process: the default localhost URL refers to Glama's own environment, not your API. The process can advertise tools, prompts, and resources without API access, but document operations need a reachable API and a valid key. Glama's hosted Connector uses DocsMint Cloud at https://docsmint.com/mcp and is a separate listing.

MCP Features

Tools

DocsMint exposes 22 MCP tools. The former 31 operations are still available; grouped tools require an explicit mode, view, kind, or action so an agent cannot confuse browsing with search, restoring a version with restoring trash, or a reversible delete with permanent purge. No second or legacy tool catalog is advertised. Use a matching version of the self-hosted bridge or Cloud endpoint when migrating an MCP client that invokes the old tool names.

Choose the tool by resource and intent. save_* creates or updates one document, folder, category, or tag; delete_* removes one resource under its documented rules. For one document, prefer the matching single-document tool. Use batch_documents when multiple explicitly selected documents need the same placement, tag, trash, restore, or indexing action. It accepts one ID for automation compatibility, but runs sequentially and can return partial success. It does not discover IDs, perform arbitrary updates, restore versions, or purge. Read-only browsing, graph exploration, version history, trash inspection, and index status remain distinct intents and do not add parallel CRUD sets. create_snapshot uses create because snapshots are new, immutable history entries; it cannot update an existing snapshot like a save_* resource.

  • find_documents: Browse by folder/tag UUID with mode=list, or hybrid-search by text/tag names with mode=search.
  • read_document: Read content and metadata with view=detail, export Markdown with view=markdown, or list revisions and snapshots with view=versions.
  • save_document: Create a document with action=create or patch an existing one with action=update. Omitted patch fields remain unchanged; null placement clears it. The API enforces the effective category and schedules indexing.
  • delete_document: Move a document to trash without purging its content or versions.
  • list_workspace_structure: List folders, categories, or tags with kind=folders|categories|tags; folders optionally accept parentId.
  • save_folder: Create with action=create or rename, move, or reorder with action=update; metadata changes queue reindexing.
  • delete_folder: Remove a folder while preserving its documents under the API's detachment rules.
  • save_category: Create with action=create or rename/reorder with action=update; requires full workspace write access.
  • delete_category: Remove a category and detach its documents; requires full workspace write access.
  • save_tag: Create with action=create or rename/recolor with action=update; requires full workspace write access.
  • delete_tag: Delete a tag and its assignments without deleting documents.
  • set_document_tag: Assign with action=add or unassign with action=remove; requires edit access to the document.
  • create_snapshot: Save a named version of the current document content.
  • restore_document_version: Restore content from a revision or snapshot selected through read_document(view=versions); pass that document's UUID as documentId.
  • explore_graph: Traverse one document with mode=neighbors or rank relations from seed IDs with mode=search.
  • get_document_index_status: Inspect indexing state without starting work.
  • refresh_document_index: Queue an explicit asynchronous retry after checking status.
  • list_trash: List soft-deleted documents visible in the active scope.
  • restore_trashed_document: Recover a soft-deleted document; this does not restore an older version.
  • permanently_delete_document: Irreversibly purge a document already in trash on explicit user request.
  • batch_documents: Apply one action to 1–25 explicit document IDs: move, set category, add/remove one tag, trash, restore, or refresh indexing. Prefer it for multiple IDs; use the corresponding single-document tool for one ID. Results identify success or failure for each ID; partial success is possible. It never permanently purges documents.
  • get_workspace_item: Read one visible folder, category, or tag by UUID. Categories and tags are selected from the complete permission-filtered lists; an inaccessible ID is reported as not found.

Grouped tools return { "operation": "<selected variant>", "result": ... } in both text and structured MCP content. Other tools preserve their prior result shapes. The 31-to-20 migration from version 0.10.0 is:

Previous toolsCurrent tool and selector
search_documents, list_documentsfind_documents with `mode=search
get_document, export_document, get_version_historyread_document with `view=detail
create_document, update_documentsave_document with `action=create
list_folders, list_categories, list_tagslist_workspace_structure with `kind=folders
create_folder, update_foldersave_folder with `action=create
create_category, update_categorysave_category with `action=create
create_tag, update_tagsave_tag with `action=create
add_tag_to_document, remove_tag_from_documentset_document_tag with `action=add
get_related_documents, search_knowledge_graphexplore_graph with `mode=neighbors
delete_document, delete_folder, delete_category, delete_tag, create_snapshot, restore_document_version, get_document_index_status, refresh_document_index, list_trash, restore_trashed_document, permanently_delete_documentSame names and behavior

Lifecycle permissions

OperationRequired permissionEffect
Delete documentwrite in its effective categorySoft-delete to trash; content and version history remain stored.
Delete folderwrite in its effective categoryRemove folder; direct child folders and documents are detached, not deleted.
Delete categoryFull workspace writeDetach category membership; preserve content and queue reindexing. Category keys cannot do this.
Restore versionedit on the documentBack up current content, restore selected version content, queue indexing. Does not change title or placement.
Create, update, or delete tagFull workspace writeManage the workspace tag catalog; category keys cannot do this.
Assign or remove document tagedit on the documentChange one document's tag membership and queue metadata reindexing.
Update folderwrite in its effective categoryRename or move a folder within the API's scope rules; queue metadata reindexing.
Update categoryFull workspace writeRename or reorder a category; category keys cannot do this.
List trashread in the active scopeShow soft-deleted documents visible to the key.
Restore trashed documentwrite in its effective categoryReturn a soft-deleted document to the active library.
Permanently delete documentwrite in its effective categoryIrreversibly purge a document already in trash, including version history.
Batch document actionSame permission as the selected single-document action, checked for each IDSequential and non-atomic; one denied item does not authorize or cancel another. Authentication and rate-limit failures stop the remaining calls.

Use UUIDs returned by the listing/history tools. A snapshot is a version with a label: pass its version ID to restore_document_version. Use restore_trashed_document to recover a trashed document. Lifecycle tools advertise destructive annotations; authorization is enforced by the REST API, not by those advisory client hints. Failed requests return MCP isError with the REST status; they never acknowledge a successful deletion.

Prompts

  • organize_workspace: Plan safe document organization using DocsMint categories and folders.
  • research_workspace: Research a question with hybrid search, GraphRAG, and rerank citing document IDs.

Resources

  • docsmint://guide/editor: Editor usage guide.
  • docsmint://guide/search: Search, GraphRAG, and rerank guide.
  • docsmint://workspace/catalog: Live scoped workspace catalog.

Skills

Tools and REST routes

The grouped selectors map to the same documented REST operations; the stdio bridge has no database or auth-server implementation of its own. See the machine-readable REST contract and the operation mapping above for endpoint details.

Prompts and resources

The server exposes organize_workspace and research_workspace prompts. MCP clients can also attach the editor rules, retrieval rules, and the live scoped workspace catalog through these resources:

  • docsmint://guide/editor
  • docsmint://guide/search
  • docsmint://workspace/catalog

The repository ships the reusable docsmint-document-manager skill. It documents the same workspace/category permissions, multilingual retrieval flow, editor rules, and indexing lifecycle used by the API and UI.

Workspace keys can manage the complete document domain allowed by their live workspace role. Category keys are restricted to their bound category, its folders and documents, and their explicit read, edit, and write permissions. Category keys cannot create categories or escape their category through document, folder, graph, tag, or index operations.

The server does not manage or reveal keys; those endpoints require a Better Auth browser session. MCP errors preserve the backend HTTP status and message without exposing credentials.

Development

bash
cd packages/mcp-serverbun run testbun run typecheckbun run dev

來源:packages/mcp-server/README.md,提交 672bdbf

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

14
  1. v2.1.1Nov 3, 2026
  2. v2.0.4Oct 26, 2026
  3. v2.0.3Oct 26, 2026
  4. v1.0.3Oct 23, 2026
  5. v1.0.2Sep 29, 2026
  6. v1.0.1Sep 28, 2026
  7. v0.10.0Sep 27, 2026
  8. v0.9.2Sep 26, 2026
  9. v0.9.0Sep 25, 2026
  10. v0.8.8Sep 23, 2026
  11. v0.8.7Sep 17, 2026
  12. v0.8.6Sep 16, 2026
  13. v0.8.5Sep 16, 2026
  14. v0.8.4Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分