Ticket Queue MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Ticket Queue MCP Server & Client
A production-style Model Context Protocol (MCP) solution built for the "Build a Production MCP Server & Client" lab: a server that exposes an internal support ticket queue as MCP tools, resources, and prompts, and a client that discovers and invokes them, over Streamable HTTP with OAuth 2.1 authorization.
What's here
server/ MCP server (FastMCP): tools, resources, prompts, OAuth AS+RS, error handling
data_store.py In-memory mock ticket DB + KB articles (stands in for a real ticketing system)
auth.py OAuth 2.1 Authorization Server configuration (scopes, DCR)
app.py The FastMCP server itself -- entry point
client/ MCP client
oauth_flow.py Scripted OAuth 2.1 + PKCE flow (headless-friendly demo client)
client_demo.py Connects, discovers, and invokes everything -- entry point
docs/
ARCHITECTURE.md Diagram + component/transport write-up
CAPABILITIES.md Full reference for every tool/resource/prompt
SECURITY.md Security design summary (Requirement #7)
demo/
run_demo.sh Starts the server, runs the client, captures output
demo_log.txt A captured successful run (discovery -> invocation -> elicitation -> errors)Related MCP server: TicketDesk MCP
Quickstart
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
bash demo/run_demo.shThis starts the server on http://127.0.0.1:8000, runs the client through
the full OAuth handshake, discovery, and invocation flow, and writes the
transcript to demo/demo_log.txt.
To run the pieces separately:
# terminal 1
python3 -m server.app
# terminal 2
python3 -m client.client_demoWhat the demo actually shows
client/client_demo.py runs, in order:
Two OAuth 2.1 + PKCE token acquisitions -- one client requesting only
tickets:read, one requestingtickets:read tickets:write.Full discovery:
tools/list,resources/list,resources/templates/list,prompts/list.A tool call (
search_tickets,get_ticket), a resource read (a KB article, the queue summary), and a prompt fetch (triage_ticket).A write action (
add_comment).The high-impact
close_ticketaction, once with the elicitation confirmed and once declined, showing both outcomes.The read-only client attempting a write tool, demonstrating least-privilege scope enforcement.
Both required error-handling failure modes: an invalid ticket ID, and a simulated unreachable backing data source, both surfaced as clean, non-leaky messages.
See demo/demo_log.txt for the full captured transcript, and
docs/SECURITY.md for the reasoning behind each of these design choices.
Requirements coverage
Lab requirement | Where |
1. >=3 tools | 5 tools in |
2. >=2 resources | 3 resources in |
3. >=1 reusable prompt | 2 prompts in |
4. Client discovers & invokes |
|
5. Transport choice + justification |
|
6. Client-side safety feature | Elicitation on |
7. Security design summary |
|
8. Realistic error handling |
|
Built with
Model Context Protocol / FastMCP (Python).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Helpdesk tickets from your AI: find, reply, take, hold, complete — within your own role. OAuth.
Customer support for MCP servers: work your tickets from Claude or any MCP client. Service key auth.
Work your Help tickets with your AI: read them, reply or leave notes, and set up forms and sites.
Build and manage AI-native customer support agents from Claude or any MCP client.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to perform helpdesk tasks over MCP, including ticket management, knowledge base search, and reply drafting, with optional pay-per-action USDC settlement and human approval workflows.232MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and retrieve support tickets, add notes, close tickets, and access SLA policies through MCP tools, resources, and prompts over Streamable HTTP.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and operate a help desk and service desk through MCP over HTTP, including tickets, requester communications, internal notes, attachments, stage and SLA history, time entries, clients, requesters, desks, knowledge base, contracts, and billing/satisfaction reports.MIT
- FlicenseNot gradedqualityAmaintenanceEnables retrieval and management of tickets and comments, ticket analysis and response drafting, and access to Help Center articles as a knowledge base via MCP.-