模型上下文协议服务器

Descope模型上下文协议(MCP)服务器提供了一个接口,用于与Descope的管理API交互,支持搜索和检索项目相关信息。

  • by descope-sample-apps
  • TypeScript
  • 本地部署
  • 38 星标
  • 更新于
在 GitHub 查看 descope-sample-apps/descope-mcp-server-stdio

使用说明

描述MCP服务器

引言

Descope模型上下文协议(MCP)服务器提供了一个与Descope的管理API交互的接口,可以搜索和检索项目相关信息。

可用工具

  • search-audits:从Descope项目中检索最多10个审核日志条目。
  • search-users:从Descope项目中检索最多10条用户记录。
  • create-user:在Descope项目中创建新用户。
  • invite-user:邀请新用户加入您的Descope项目。

需求

在继续之前,请确保您拥有以下内容:

要确认您的Node.js安装,请运行:

node --version  # Expected output: v18.0.0 or later

安装说明

通过Smithery安装

通过以下方式自动安装Claude Desktop的Descope MCP服务器 史密瑟里:

npx -y @smithery/cli install @descope-sample-apps/descope-mcp-server --client claude

手动安装

  1. 克隆存储库:

    git clone https://github.com/descope-sample-apps/descope-mcp-server.git
    cd descope-mcp-server
    
  2. 安装必要的依赖项:

    npm install
    
  3. 构建项目:

    npm run build
    

配置

1.配置Claude Desktop以识别Descope MCP服务器

要定位 claude_desktop_config.json 文件,打开Claude Desktop应用程序,从左上角菜单栏启用开发人员模式。

启用后,转到设置(也在左上角菜单中),导航到开发人员部分,然后单击编辑配置按钮以访问和编辑 claude_desktop_config.json.

或者,通过终端打开配置文件:

在 macOS 上:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

在Windows上:

code %APPDATA%\Claude\claude_desktop_config.json

2.添加Descope服务器配置:

{
  "mcpServers": {
    "descope": {
      "command": "node",
      "args": ["/path/to/descope-mcp-server/build/index.js"],
      "env": {
        "DESCOPE_PROJECT_ID": "your-descope-project-id-here",
        "DESCOPE_MANAGEMENT_KEY": "your-descope-management-key-here"
      }
    }
  }
}

替换 your-descope-project-id-here 和 your-descope-management-key-here 使用您的实际Descope项目ID和管理密钥 app.descope.com/settings/project 和 app.descope.com/settings/company/管理键.

3.重新启动克劳德桌面

要应用更改,请执行以下操作:

  1. 完全退出Claude Desktop(确保它不仅仅是最小化)。
  2. 重新启动克劳德桌面。
  3. 检查🔌 图标确认Descope服务器已连接。

运行服务器

首先,构建项目:

npm run build

1.在stdio上运行服务器

npm run start:stdio

2.在SSE上运行服务器

npm run start:sse