Logotipo de mcp-server-rt

mcp-server-rt

Organización
bestpractical

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…

Editorbestpractical
Repositoriomcp-server-rt
IdiomaTypeScript
Forks
3
Estrellas
9
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaGPL-2.0
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    mcp-server-rt ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    9 estrellas y 3 forks en el repositorio enlazado.

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-queue prompt 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

bash
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):

json
{
  "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:

json
{
  "mcpServers": {
    "rt": {
      "type": "stdio",
      "command": "npx",
      "args": ["mcp-server-rt"],
      "env": {
        "RT_URL": "https://rt.example.com",
        "RT_TOKEN": "your-auth-token"
      }
    }
  }
}

Other MCP-compatible clients

Any client that supports MCP stdio servers should work. Consult your client's documentation for how to register a stdio MCP server with environment variables. The server entry point is mcp-server-rt (or node /path/to/dist/index.js for a local build).


Tools

Tickets, queues, and users

ToolDescription
search_ticketsSearch tickets using RT's TicketSQL query language
get_ticketGet details for a specific ticket by ID
get_ticket_historyGet transaction history (comments, replies, status changes)
get_transactionGet full details of a single transaction, including decoded message content
get_queueGet details about a queue by ID or name
list_queuesList all available queues
get_queue_fieldsGet custom field definitions and lifecycle name for a queue
lookup_userSearch for RT users by name or email
get_current_userGet the RT user associated with the configured auth token
get_ticketsql_grammarFetch the full TicketSQL grammar reference (for complex queries)
create_ticketCreate a new ticket
update_ticketUpdate ticket fields (status, owner, priority, dates, watchers, links, custom fields)
add_commentAdd an internal comment (not visible to the requestor), optionally setting custom fields
add_replySend a reply to the requestor, optionally setting custom fields
get_ticket_attachmentsList all attachments on a ticket
get_attachmentRetrieve a single attachment by ID
save_attachmentSave an attachment to a local file

Queue administration

Building and configuring queues. The lifecycle and rights tools need RT 6.0.3 or later.

ToolDescription
create_queueCreate a new queue
update_queueUpdate an existing queue's settings
manage_queue_watchersSet the members of a queue role (Cc, AdminCc, or a custom role)
list_groupsList user-defined groups with names and descriptions
get_groupGet details about a group by ID or name
create_groupCreate a new user-defined group
list_group_membersList a group's members (RT returns IDs and types only)
add_group_membersAdd users to a group, by user ID
remove_group_memberRemove a user from a group
create_custom_fieldCreate a custom field
search_custom_fieldsSearch existing custom fields before creating a duplicate
apply_custom_fieldApply a custom field to a queue
add_custom_field_valueAdd a selectable value to a custom field
list_custom_field_applicationsList the objects a custom field is applied to
remove_custom_field_applicationStop applying a custom field to an object
list_lifecyclesList lifecycles with their statuses and transitions
get_lifecycleGet one lifecycle's full definition
create_lifecycleCreate a lifecycle, optionally cloning an existing one
update_lifecycleReplace a lifecycle's configuration
update_lifecycle_mapsMap this lifecycle's statuses onto other lifecycles
validate_lifecycleCheck a lifecycle definition without saving it
delete_lifecycleDelete a lifecycle no queue or catalog uses
get_available_rightsList the rights that can be granted on an object
list_rightsList the rights currently granted on an object
grant_rightsGrant rights to a user, group, or role
revoke_rightRevoke a single right

Prompts

PromptDescription
create-queueInteractive consultant that discovers a team's workflow, recommends a queue configuration, confirms the plan, then builds it — queue, lifecycle, groups, rights, custom fields, and watchers

Usage Examples

Example 1: Finding and triaging unowned tickets

User: "Show me active tickets in the Support queue with no owner."

Claude calls: search_tickets with query Queue = 'Support' AND Status = '__Active__' AND Owner = 'Nobody'. No fields parameter is needed — the server sends a default set that identifies each ticket, with queue and owner as names rather than ID stubs.

Result: A table of unowned active tickets with subject, requestor, and when each was last updated, ready to assign or act on.


Example 2: Reading recent correspondence on a ticket

User: "Show me the most recent reply on ticket 1234."

Claude calls: get_ticket_history to get the list of transactions, identifies the most recent Correspond entry, then calls get_transaction to fetch and decode the full message content.

Result: The decoded text of the reply, including who sent it and when.


Example 3: Creating a fully configured ticket

User: "Create a ticket in the Projects queue titled 'Update onboarding docs', assign it to alice, set the due date to next Friday, and link it to ticket 500."

Claude calls: create_ticket with Queue, Subject, Owner, Due, and RefersTo all set in a single API call.

Result: New ticket created with all fields set. Claude confirms the ticket number and a summary of what was set.


Example 4: Updating ticket status with a reply

User: "Resolve ticket 789 and let the requestor know we've pushed a fix in version 6.0.3."

Claude calls: add_reply with the message content and Status: 'resolved' to close the ticket and notify the requestor in one step.

Result: Ticket resolved, requestor notified. Claude confirms both actions completed.


Example 5: Querying with custom fields

User: "Find all open tickets in the General queue where the Category field is set to 'Bug'."

Claude calls: get_queue_fields to confirm the exact custom field name, then search_tickets with Queue = 'General' AND Status = '__Active__' AND CF.{Category} = 'Bug'.

Result: A list of matching bug tickets with subject, owner, and creation date.


How It Works

This server implements the Model Context Protocol over stdio. The AI client translates natural language requests into TicketSQL queries or RT API calls, invokes the appropriate tool, and presents the results. The server itself is a thin proxy — it passes queries directly to RT's REST 2.0 API and returns the JSON response.

For complex searches, the AI can call get_ticketsql_grammar to consult the full TicketSQL syntax reference before constructing a query.

Configuration Reference

Environment VariableDescription
RT_URLBase URL of your RT instance (e.g. https://rt.example.com)
RT_TOKENRT authentication token

Development

bash
npm install
npm run build     # compile TypeScript to dist/
npm test          # run tests
npm run dev       # watch mode

Run locally against your RT instance:

bash
RT_URL=https://rt.example.com RT_TOKEN=your-token node dist/index.js

Compatibility

  • RT 6.0+ (REST 2.0 API)
  • Node.js 18+

Privacy

This server does not collect, store, or transmit any data to Best Practical or any third party. All communication is directly between your AI client and your own RT instance using the URL and credentials you provide. No usage data, ticket content, or credentials are sent anywhere other than your configured RT server.

See the Best Practical Privacy Policy for general information about our privacy practices.

Support

For questions and discussion, visit the Best Practical Community Forum.

To report a bug, create a ticket on our public RT instance. Note that this is a public RT instance, so the information you share will be visible to others.

Is RT mission critical for you? Commercial support for RT and this connector is available from Best Practical. Contact us at sales@bestpractical.com.

License

GPL-2.0

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "bestpractical-mcp-server-rt": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-rt"
      ]
    }
  }
}

Usa el MCP de mcp-server-rt con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado mcp-server-rt, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade mcp-server-rt como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de mcp-server-rt.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "bestpractical-mcp-server-rt": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-rt"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de mcp-server-rt y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de mcp-server-rt.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar mcp-server-rt para ayudarme con esta tarea?
mcp-server-rt
Claro. Lo he leído.
Esto he encontrado usando mcp-server-rt.

Preguntas frecuentes

¿Para qué sirve el servidor MCP mcp-server-rt?

mcp-server-rt es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP mcp-server-rt con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar mcp-server-rt con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de mcp-server-rt con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con mcp-server-rt conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP mcp-server-rt a TypingMind?

mcp-server-rt funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP mcp-server-rt en TypingMind?

mcp-server-rt ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP mcp-server-rt?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si mcp-server-rt requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇