描述MCP服务器
](https://smithery.ai/server/@descope-sample-apps/descope-mcp-server)
引言
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手动安装
- 克隆存储库:
git clone https://github.com/descope-sample-apps/descope-mcp-server.git
cd descope-mcp-server- 安装必要的依赖项:
npm install- 构建项目:
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.json2.添加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.重新启动克劳德桌面
要应用更改,请执行以下操作:
- 完全退出Claude Desktop(确保它不仅仅是最小化)。
- 重新启动克劳德桌面。
- 检查🔌 图标确认Descope服务器已连接。
运行服务器
首先,构建项目:
npm run build1.在stdio上运行服务器
npm run start:stdio2.在SSE上运行服务器
npm run start:sse