Descope MCP Server

Descope MCP Server

未知

简介

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

smithery 徽章

前提条件

安装方式

方式1: 通过 Smithery 安装 (推荐)

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

方式2: 手动安装

git clone https://github.com/descope-sample-apps/descope-mcp-server.git
cd descope-mcp-server
npm install
npm run build

配置 Claude Desktop

  1. 启用开发者模式并找到配置文件:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %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"
      }
    }
  }
}
  1. 重启 Claude Desktop (完全退出并重启)

  2. 检查 🔌 图标确认服务器已连接

可用工具

  • search-audits: 检索最多 10 条审计日志
  • search-users: 检索最多 10 条用户记录
  • create-user: 创建新用户
  • invite-user: 邀请新用户加入项目

手动运行服务器

构建项目后选择运行模式:

# 在 stdio 上运行服务器
npm run start:stdio

# 或在 SSE 上运行服务器
npm run start:sse

配置完成后,您可以在 Claude 中使用 Descope 工具来管理和查询您的身份验证系统。