Cosense-MCP-Server 服务器为 cosense 提供支持,它是从 https://github.com/funwarioisii/cosense-mcp-server 叉出的项目。该服务器主要用于获取页面,为相关应用提供必要的页面数据。
npm install
npm run build
npm run watch
git clone https://github.com/funwarioisii/cosense-mcp-server.git
cd cosense-mcp-server
npm run install
npm run build
若要将该服务器与 Claude Desktop 一起使用,需要添加服务器配置:
~/Library/Application\ Support/Claude/claude_desktop_config.json 文件中添加配置。%APPDATA%/Claude/claude_desktop_config.json 文件中添加配置。配置内容如下:
{
"mcpServers": {
"cosense-mcp-server": {
"command": "node",
"args": ["/path/to/cosense-mcp-server/build/index.js"],
"env": {
"COSENSE_PROJECT_NAME": "your_project_name",
"COSENSE_SID": "your_sid"
}
}
}
}
注意:COSENSE_SID 是可选的。如果您希望将此服务器用于私人项目,请设置 COSENSE_SID。
由于 MCP 服务器通过 stdio 进行通信,调试可能具有挑战性。我们推荐使用 MCP Inspector,它作为包脚本可用,运行以下命令即可启动:
npm run inspector
Inspector 将提供访问调试工具的 URL,在您的浏览器中打开该 URL 即可进行调试。