内容
Zendesk MCP 服务器
一个使用 node-zendesk 库的模型上下文协议(MCP)服务器。
## 授权
本服务器要求所有端点都需要授权,除了健康检查端点。你可以通过在服务器 URL 中添加身份验证令牌来进行身份验证,即 `https://服务器网址.com/mcp?auth_token={你的身份验证令牌}`。
## 配置
在 `src/config.js` 中创建以下信息:
```json
export const zendeskConfig = {
username: '你的用户名',
token: '你的 Zendesk 令牌',
subdomain: '你的子域名'
};
```
## 端点
- `/health` - 健康检查(不需要授权)
- `/mcp` - MCP 服务器端点(需要授权)
- `/sse` - 服务器发送事件端点(需要授权)
## 添加到 Claude
```json
{
"mcpServers": {
"Alex 的 Zendesk 服务器": {
"command": "npx",
"args": [
"mcp-remote",
"https://服务器网址.com/mcp?auth_token={你的身份验证令牌} "
]
}
}
}
```
## 可用工具
1. **get_ticket_fields_by_id** - 返回指定票据 ID 的所有票据字段
2. **get_unsolved_ticket_ids_by_agent_name** - 返回分配给代理的未解决票据
3. **get_ticket_comments** - 获取特定票据的所有评论
4. **get_ticket_priority** - 根据 SLA、年龄、响应时间和状态计算票据优先级