Descope 模型上下文协议(MCP)服务器提供了一个与 Descope 管理 API 交互的接口,支持搜索和检索项目相关信息。
search-audits:从您的 Descope 项目中检索最多 10 条审计日志条目。search-users:从您的 Descope 项目中检索最多 10 条用户记录。create-user:在您的 Descope 项目中创建新用户。invite-user:邀请新用户加入您的 Descope 项目。在继续之前,请确保您拥有以下内容:
要确认您的 Node.js 安装,请运行:
node --version # 预期输出:v18.0.0 或更高版本
要通过 Smithery 自动安装 Descope MCP Server 到 Claude Desktop:
npx -y @smithery/cli install @descope-sample-apps/descope-mcp-server --client claude
克隆仓库:
git clone https://github.com/descope-sample-apps/descope-mcp-server.git
cd descope-mcp-server
安装必要的依赖项:
npm install
构建项目:
npm run build
要找到 claude_desktop_config.json 文件,请打开 Claude Desktop 应用并从左上角菜单栏启用开发者模式。
启用后,转到设置(同样在左上角菜单),导航到开发者部分,并点击编辑配置按钮以访问和编辑 claude_desktop_config.json。
或者,通过终端打开配置文件:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
code %APPDATA%\Claude\claude_desktop_config.json
{
"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/managementkeys 中找到。
要应用更改:
首先,构建项目:
npm run build
npm run start:stdio
npm run start:sse