
MCP(模式上下文协议)服务器,将AI助手连接到活的RT(请求跟踪器)实例.
概览
MCP(模式上下文协议)服务器,将AI助手连接到活的RT(请求跟踪器)实例. 搜票,取景历史,创建并更新出票——均出自自然语言对话. - 使用 RT 完整的 TicketSQL 查询语言 - 包括完整的交易历史 - 设置初始内容和所有出票元数据:状态,所有者,请求者,到期日,自定义字段,自定义角色,以及链接 - 回复,评论,更新出票,并有相同的完整字段支持 - 列表队列,检查自定义,按名称或电子邮件查询用户 - AI可以在构建复杂查询之前查阅完整的 RT 6.0.3 语法指南 - 构建和配置队列:生命周期,用户定义的团体及其成员,自定义字段,权利,和队列监视器 - 创建-排队提示,让您采访工作流程,建议配置,确认计划,然后构建计划 - RT 6.0 或以后启用 REST 2.0 API(默认包含).
概述(AI 翻译)
MCP(模式上下文协议)服务器,将AI助手连接到活的RT(请求跟踪器)实例. 搜票,取景历史,创建并更新出票——均出自自然语言对话.
□ 特性
- ** 使用RT的全票SQL查询语言查询票**
- ** 读取票单细节**,包括全部交易历史
- ** 创造票** 设定初始内容和所有票面元数据:状况、所有者、请求者、到期日、自定义字段、自定义角色和链接
- ** 更新票** 答复、评论和刷新票,并给予同样的全额外地支助
- 用户发现** — 列表队列、检查自定义字段定义、按名称或电子邮件查询用户
- TicketSQL语法参考——AI在构建复杂查询之前,可以参考完整的RT 6.0.3语法指南.
- 管理**——构建和配置队列:生命周期、用户定义的群体及其 成员、自定义字段、权利和队列监视器
- ** 引导队列创建** —
create-queue提示您采访工作流程, 建议配置,确认计划,然后构建计划
□ 要求
- RT 6.0或以后与REST 2.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
mcp-server-rt
An MCP (Model Context Protocol) server that connects AI assistants to a live RT (Request Tracker) instance. Search tickets, view history, create and update tickets — all from a natural language conversation.
Features
- Search tickets using RT’s full TicketSQL query language
- Read ticket details including full transaction history
- Create tickets setting initial content and all ticket metadata: status, owner, requestors, due dates, custom fields, custom roles, and links
- Update tickets reply, comment, and update tickets, with the same full field support
- Queue and user discovery — list queues, inspect custom field definitions, look up users by name or email
- TicketSQL grammar reference — the AI can consult the full RT 6.0.3 syntax guide before constructing complex queries
- Queue administration — build and configure queues: lifecycles, user-defined groups and their members, custom fields, rights, and queue watchers
- Guided queue creation — a
create-queueprompt that interviews you about the workflow, recommends a configuration, confirms the plan, then builds it
Requirements
- RT 6.0 or later with REST 2.0 API enabled (included by default). The lifecycle and rights tools need RT 6.0.3 or later, which is when RT added those REST 2.0 endpoints.
- Node.js 18 or later
- An RT authentication token
Installation
npm install -g mcp-server-rt
Or use without installing via npx mcp-server-rt.
Creating an RT Auth Token
In RT: Logged in as → Settings → Auth Tokens → Create
Give the token a name (e.g. “Claude”) and copy the generated token string.
The token is associated with the user account, so all operations in RT from Claude using that token will be logged as performed by that user. So everything you do via Claude still gets logged in RT as you, including emails sent on comments and replies.
Users need to be granted the right ManageAuthTokens to see the Auth Tokens menu.
AI Client Setup
MCP is an open standard — this server works with any MCP-compatible AI client. Configuration varies by client.
Claude Desktop ✓ (tested)
Install the .mcpb extension package from the releases page. In the Claude app, go to Customize → Connectors, find RT, and enter your RT URL and auth token.
Alternatively, add manually to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"rt": {
"type": "stdio",
"command": "npx",
"args": ["mcp-server-rt"],
"env": {
"RT_URL": "https://rt.example.com",
"RT_TOKEN": "your-auth-token"
}
}
}
}
Claude Code ✓ (tested)
Add to .mcp.json in your project root:
{
"mcpServers": {
"rt": {
安装
npx mcp-server-rt配置
{
"mcpServers": {
"rt": {
"type": "stdio",
"command": "npx",
"args": ["mcp-server-rt"],
"env": {
"RT_URL": "https://rt.example.com",
"RT_TOKEN": "your-auth-token"
}
}
}
}