
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.
概览
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 请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 DocsMint,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
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.
- Sign up or log in to your existing DocsMint account.
- Choose your workspace and confirm your plan includes hosted MCP.
- 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.
- Select your MCP client and follow its connection instructions.
- 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.
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
Run with NPX
Run from a local checkout
All three methods run the same stdio server from @hiai-gg/docsmint.
Client configuration
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 withmode=list, or hybrid-search by text/tag names withmode=search.read_document: Read content and metadata withview=detail, export Markdown withview=markdown, or list revisions and snapshots withview=versions.save_document: Create a document withaction=createor patch an existing one withaction=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 withkind=folders|categories|tags; folders optionally acceptparentId.save_folder: Create withaction=createor rename, move, or reorder withaction=update; metadata changes queue reindexing.delete_folder: Remove a folder while preserving its documents under the API's detachment rules.save_category: Create withaction=createor rename/reorder withaction=update; requires full workspace write access.delete_category: Remove a category and detach its documents; requires full workspace write access.save_tag: Create withaction=createor rename/recolor withaction=update; requires full workspace write access.delete_tag: Delete a tag and its assignments without deleting documents.set_document_tag: Assign withaction=addor unassign withaction=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 throughread_document(view=versions); pass that document's UUID asdocumentId.explore_graph: Traverse one document withmode=neighborsor rank relations from seed IDs withmode=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:
Lifecycle permissions
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
docsmint-document-manager: create, organize, edit, and research DocsMint documents through DocsMint's MCP tools.
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/editordocsmint://guide/searchdocsmint://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
来源:packages/mcp-server/README.md,提交 672bdbf
工具
0版本历史
14- v2.1.1Nov 3, 2026
- v2.0.4Oct 26, 2026
- v2.0.3Oct 26, 2026
- v1.0.3Oct 23, 2026
- v1.0.2Sep 29, 2026
- v1.0.1Sep 28, 2026
- v0.10.0Sep 27, 2026
- v0.9.2Sep 26, 2026
- v0.9.0Sep 25, 2026
- v0.8.8Sep 23, 2026
- v0.8.7Sep 17, 2026
- v0.8.6Sep 16, 2026
- v0.8.5Sep 16, 2026
- v0.8.4Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分