Ticket Queue 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., "@Ticket Queue MCP Serverwhat's the current support ticket queue summary?"
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.
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: DeskCrew MCP Server
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).
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.
Build and manage AI-native customer support agents from Claude or any MCP client.
AI-native helpdesk hosted in Germany: tickets, replies, KPIs and knowledge base over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze IT support tickets, categorize urgency, suggest responses, and retrieve statistics via MCP tools.-
- AlicenseAqualityAmaintenanceEnables 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 gradedqualityCmaintenanceEnables an AI to perform customer support workflows by looking up customers, retrieving orders, and creating support tickets through MCP tools.1 npmX11 no permit persons clause
- AlicenseNot gradedqualityCmaintenanceEnables 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