
302 file parser mcp
302 文件解析器 Mcp
概述
302AI 文件解析器 MCP 服务器
开发
安装依赖项:
bash
npm install
构建服务器:
bash
npm run build
使用自动重建进行开发:
bash
npm run watch
安装
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
json
{
"mcpServers": {
"302ai-file-parser-mcp": {
"command": "npx",
"args": ["-y", "@302ai/file-parser-mcp"],
"env": {
"302AI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
在此处找到您的 302AI_API_KEY 这里
调试
由于 MCP 服务器通过 stdio 进行通信,调试可能会有挑战。我们建议使用 MCP Inspector,它作为包脚本提供:
bash
npm run inspector
Inspector 将提供一个 URL,以便在浏览器中访问调试工具。