法医
Claude Code插件,用于获取文档并将其转换为markdown。与集成 冲撞 用于即时访问200多个文档集,或直接获取任何URL。
特性
- Dash集成 -按名称搜索已安装的Dash文档集(react、typescript、python等)
- 直接获取URL -从任何URL抓取文档并转换为干净的markdown
- 断面提取 -只拉取您需要的部分(例如“参数”、“用法”)
- 令牌限制 -控制响应大小以实现快速查找
安装
作为Claude Code插件(推荐)
# Add the marketplace
/plugin marketplace add Robdel12/doc-fetcher-mcp
# Install the plugin
/plugin install doc-fetcher@doc-fetcher或者通过CLI:
claude plugin marketplace add Robdel12/doc-fetcher-mcp
claude plugin install doc-fetcher@doc-fetcher需求
- 克劳德代码1.0.33+
- Node.js 18+
- 冲撞 (可选,用于文档集搜索)
- 启用API服务器:Dash>设置>集成>启用API服务器
用法
安装后,Claude可以自动获取文档。只要问:
“在React文档中查找useEffect挂钩”
“从useState文档中获取参数部分”
“取回https://docs.anthropic.com/en/docs/claude-code/overview"
刀具参数
| 参数 | 类型 | 说明 |
|---|---|---|
query | string | 达世币文档集搜索查询 |
docset | string | 要搜索的Docset-平台名称(react、typescript、node)或达世币标识符 |
url | string | 直接获取URL(绕过达世币) |
section | string | 按标题仅提取特定部分 |
maxTokens | number | 要返回的最大令牌数(默认值:20000) |
例子
// Search React docs
{ "query": "useEffect", "docset": "react" }
// Search all docsets
{ "query": "async await" }
// Get a specific section
{ "query": "useEffect", "docset": "react", "section": "Parameters" }
// Fetch any URL
{ "url": "https://docs.anthropic.com/en/docs/claude-code/overview" }
// Limit response size
{ "query": "useState", "docset": "react", "maxTokens": 2000 }运作原理
- 达世币搜索:查询本地Dash API以查找匹配的文档
- 获取:从达世币的本地服务器或任何URL检索HTML内容
- 提取:可选择只拉取所需的部分
- 返回:带标题、截断状态和替代结果的Markdown内容
发展
# Clone and install
git clone https://github.com/Robdel12/doc-fetcher-mcp.git
cd doc-fetcher-mcp
npm install
# Test locally with Claude Code
claude --plugin-dir .
# Test the MCP server directly
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_doc_content","arguments":{"query":"useState","docset":"react"}}}' | node src/index.js许可证
麻省理工学院
