cosense-mcp-server MCP Server

cosense-mcp-server MCP Server

镜像

简介

cosense-mcp-server 是为 cosense 设计的 MCP 服务器,它允许 Claude 桌面版与 cosense 项目交互。

安装与设置

  1. 克隆并构建服务器

    git clone https://github.com/funwarioisii/cosense-mcp-server.git
    cd cosense-mcp-server
    npm install
    npm run build
    
  2. 配置 Claude 桌面版

    根据操作系统创建或编辑配置文件:

    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %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 仅在使用私有项目时需要设置

开发

  • 安装依赖: npm install
  • 构建服务器: npm run build
  • 开发模式(自动重建): npm run watch

调试

使用 MCP Inspector 进行调试:

npm run inspector

这将提供一个浏览器可访问的调试工具 URL。

支持功能

  • 获取页面内容

源自 GitHub 仓库