docbin
Give an agent a place to put large output. Build logs and reports get a stable versioned URL.
我该使用它吗
质量与安全性
发现(2)
- HIGH
- MEDIUM在 create_doc 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"docbin": {
"url": "https://mcp.docbin.app/mcp"
}
}
}远程端点
https://mcp.docbin.app/mcpstreamable-http它能做什么
工具清单
工具(3)
🟡create_doc(name, content, content_type, language, visibility, ...)
Create a document and return its public URL. Re-using an existing name adds a new immutable version. Omit the name to get a random one. For content larger than ~10KB or any file already on disk, do NOT inline it here - run `docbin push <file> [--name <doc>]` in your shell instead (set DOCBIN_TOKEN to an API key from https://docbin.app/settings/keys). Inlining large content streams it through the model token-by-token and will time out.
输入模式
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Document name. A random slug is generated if omitted."
},
"content": {
"type": "string",
"description": "The HTML, Markdown, MDX, or code body of the document."
},
"content_type": {
"type": "string",
"enum": [
"html",
"md",
"mdx",
"code"
],
"description": "Defaults to html. 'mdx' renders Markdown with JSX components; 'code' renders a single syntax-highlighted block."
},
"language": {
"type": "string",
"description": "Syntax-highlight language hint, used when content_type is 'code' (e.g. 'rust')."
},
"visibility": {
"type": "string",
"enum": [
"private",
"unlisted",
"public"
],
"description": "Defaults to public. private = owner only; unlisted = anyone with the link; public = listed, searchable, and crawlable."
},
"files": {
"type": "array",
"description": "Optional: a multi-file group. When provided, supersedes content/content_type. The entry file is auto-selected (index/readme/main, else first). CROSS-FILE LINKS: to link from one file in the group to another, use a bare relative link to the sibling's filename, exactly as given in this `files` array - e.g. <a href=\"page2.html\">. The viewer intercepts it and switches the active file (updating the left-pane selection and the URL). Do NOT use absolute URLs, slugs, ./ prefixes, or #file- hashes for cross-file links. In-page anchor links within a file (e.g. #section) work as normal.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"content": {
"type": "string"
},
"language": {
"type": "string"
}
},
"required": [
"name",
"content"
]
}
}
}
}输出模式
{
"type": "object",
"properties": {
"handle": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "number"
},
"contentType": {
"type": "string"
},
"language": {
"type": [
"string",
"null"
]
},
"visibility": {
"type": "string"
},
"snippet": {
"type": "string"
},
"appUrl": {
"type": "string"
},
"rawUrl": {
"type": "string"
},
"deleted": {
"type": "boolean"
}
},
"required": [
"handle",
"name",
"version",
"appUrl",
"rawUrl"
]
}🟢get_doc(name, handle, version)
Fetch the raw stored content of a document. Defaults to your own handle and the latest version.
输入模式
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Document name."
},
"handle": {
"type": "string",
"description": "Owner handle. Defaults to the authenticated user."
},
"version": {
"type": "number",
"description": "Version number. Defaults to the latest."
}
},
"required": [
"name"
]
}输出模式
{
"type": "object",
"properties": {
"handle": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "number"
},
"contentType": {
"type": "string"
},
"language": {
"type": [
"string",
"null"
]
},
"visibility": {
"type": "string"
},
"snippet": {
"type": "string"
},
"appUrl": {
"type": "string"
},
"rawUrl": {
"type": "string"
},
"deleted": {
"type": "boolean"
}
},
"required": [
"handle",
"name",
"version",
"appUrl",
"rawUrl"
]
}🟢search_docs(q)
Search your documents by name. Returns matches with their URLs and latest versions.
输入模式
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Search query matched against doc names."
}
},
"required": [
"q"
]
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"docs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"handle": {
"type": "string"
},
"name": {
"type": "string"
},
"latestVersion": {
"type": "number"
},
"appUrl": {
"type": "string"
}
},
"required": [
"handle",
"name",
"appUrl"
]
}
}
},
"required": [
"docs"
]
}推荐提示词
search_docssearch_docsget_docget_docsearch_docscreate_doc社区
证据