mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server Create a ticket titled 'Login bug' with body 'SSO fails' for Alice"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server — a TypeScript Model Context Protocol server
An MCP server that gives AI assistants a safe, standard way to use an internal service. It exposes a ticket domain as tools (with Zod-validated inputs) and a resource, served over stdio — plus a demo MCP client that drives it.
ℹ️ An original reference implementation. No proprietary code or data.
What it is
The Model Context Protocol lets AI assistants call tools and read resources through one standard interface. This server puts that boundary in front of an internal "tickets" service: the assistant can list/search/create tickets and change their status, but every argument is validated by a Zod schema before it touches the domain.
flowchart LR
AI[AI assistant / MCP client] -- stdio --> S[MCP server]
S --> V[Zod input validation]
V --> T[Ticket service]
S -. resource: tickets://all .-> TRelated MCP server: support-triage-agent
Tools
Tool | Input (Zod-validated) | Does |
| — | list all tickets |
|
| fetch one (errors if missing) |
|
| create a ticket |
|
| full-text search title/body |
|
| transition status |
Plus a tickets://all resource exposing the collection as JSON.
Run it
npm install
npm start # serve over stdio (for an MCP client / AI assistant)
npx tsx src/client.ts # demo client: launches the server, lists tools, calls onePoint a real assistant at it by configuring an MCP server that runs
npx tsx src/index.ts (stdio transport).
Tests
npm run typecheck # tsc --noEmit
npm test # vitestCover the ticket store (CRUD + search + status), the tool handlers (including the not-found error), and the Zod schemas (accepts valid, rejects bad status / empty fields). The domain and tool logic are framework-free, so they test without spinning up a transport.
Design decisions
Tools are thin wrappers over plain functions — the service logic is unit-tested directly; the MCP layer only validates and serializes.
Zod at the boundary — an assistant's arguments are untrusted input; schemas reject malformed calls before they reach internal code.
stdio transport — the standard local-tool transport; the same server also fits Streamable HTTP without touching the tool definitions.
An original reference implementation. No proprietary code or data is included.
Available Tools
5 toolscreate_ticketC
Create a new ticket
Inputs: body (required), title (required), assignee.
get_ticketC
Get a ticket by id
Inputs: id (required).
list_ticketsC
List all tickets
Inputs: no named parameters.
search_ticketsB
Search tickets by text in title or body
Inputs: query (required).
set_ticket_statusC
Change a ticket's status
Inputs: id (required), status (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct operation on the ticket resource: enumeration (list), retrieval (get), creation (create), text lookup (search), and status mutation (set_status). The only mild overlap is list_tickets vs search_tickets, but the descriptions make the distinction clear (browse all vs filter by text).
All five tools use a consistent snake_case verb_noun pattern (list_tickets, get_ticket, create_ticket, search_tickets, set_ticket_status). The singular/plural noun correctly reflects cardinality, and no naming style deviates.
Five tools is well-scoped for a focused ticket server, covering the core read/write/search operations without redundancy. Every tool earns its place with no filler.
The surface covers create, read (list/get), search, and status transitions, but lacks a general update_ticket for editing title/body and any delete/archive operation. These are notable gaps that will leave agents unable to correct or remove tickets, forcing workarounds.
Maintenance
Related MCP Connectors
Work your Help tickets with your AI: read them, reply or leave notes, and set up forms and sites.
Manage Ticketdesk AI support tickets: create, reply, add notes, assign, tag, prioritize and close.
File, find and update AoTwin tickets from your AI assistant, and hand one to AoTwin when you ask.
Helpdesk tickets from your AI: find, reply, take, hold, complete — within your own role. OAuth.
Related MCP Servers
AlicenseAqualityCmaintenanceEnables managing support tickets from Claude, Cursor, and other AI tools, including listing, creating, updating, and replying to tickets.645 npmMIT- FlicenseNot gradedqualityCmaintenanceEnables ticket management and AI triage through Mistral-compatible models, with tools for creating, listing, retrieving, triaging, and updating support tickets.-
- AlicenseAqualityBmaintenanceEnables AI clients to read, search, comment on, create, update, assign, and move tickets and sprints in a mini-Jira platform via a personal access token. It runs locally over stdio and respects token permissions and project scope.12552 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search notes and manage tickets through tools that enforce per-agent JWT identity, least-privilege scopes, and deny-by-default policy, with every allowed or denied call written to a tamper-evident, redacted audit log. Runs over stdio for local clients or streamable HTTP with bearer auth for shared deployments.MIT