
Mcp Ticket Demo
io.github.markusvankempen由 GitHub 账号 markusvankempen 发布v1.9.0更新于 Oct 27, 2026
MCP server demo — tickets, schema discovery, auth, and PII gating. stdio + HTTP.
发布方自己的服务:demo.st
概览
一个用于学习和演示 MCP 的参考工单服务器,含 19 个工具、资源、提示词、鉴权模式、PII 脱敏与限流。
- 可以做什么
- 发现服务器能力与查询 schema,再用统一的查询工具读取工单、客户、资产、计时器、设置和事件
- 创建、评论和关闭工单,未持有 pii 权限时客户电话等字段会被脱敏
- 读取可寻址资源:单张工单、开放工单列表和 schema 结构,并使用五个面向用户的提示词做引导式演练
- 运维服务器本身:修改设置、管理用户与 API 密钥、导入设置、启停计时器、推送日志行和发布系统信息
- 以本地 stdio 进程或 HTTP 服务运行,提供健康检查、测试、管理、日志和工具清单页面
- 适用场景
- 适合想了解 MCP 服务器如何运作、用真实服务器测试 IDE 或智能体集成、做现场演示,或作为自建服务器的参考实现。它是演示项目,不是生产工单系统。
- 运行要求
- 需要 Node.js,可通过 npx 或克隆仓库运行;默认 stdio,也可用 HTTP 模式并指定端口和主机。可选配置包括 AUTH_MODE、用于 stdio 凭据的 MCP_API_KEY、额外登录的 MCP_USERS、RATE_LIMIT,以及管理页面的 ADMIN_USER/ADMIN_PASSWORD。无需外部账号或服务。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Ticket Demo,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[MCP as a Platform — MCP Dev Summit Toronto 2026]
MCP Ticket Demo — A Full-Stack MCP Reference Server
[npm] [npm downloads] [VS Code] [Open VSX] [License] [Node.js] [MCP] [IBM Cloud] [Linux Foundation]
A production-shaped MCP server you can run in under five minutes. Ships with 19 tools, 3 resources, 5 prompts, three auth modes, API key management, per-tool gates, rate limiting, a live observability dashboard, and a VS Code / Bob / Cursor / Windsurf control-plane extension.
Use it to learn MCP, test IDE integrations, run live demos, or as a reference implementation when building your own server.
Companion to MCP as a Platform: What I Learned Building a Portfolio of MCP Servers · MCP Dev Summit Toronto · 5 October 2026 · Talk slides →
Personal open-source project.
What makes this useful beyond a hello-world
Most MCP examples stop at "here is a tool that returns a string." This one goes further:
Quickstart — five minutes
Then open in a browser:
From a terminal
The same mcp-ticket-demo command is also a client for a running server, local or deployed. With no arguments it is still the MCP server, so the IDE configs below keep working.
--json prints one document for scripts, and exit codes are 0 done · 1 refused · 2 usage · 3 unreachable. Commands that delete or reconfigure ask first. Every command, option and example is in server/README.md, and a copy-paste page is at /clients/cli.html on a running desk. demo apply changes real settings, so use it on a server you own.
[/health — liveness check with version, tool count, and cwd]
[/test — read-only smoke test: seed tickets, schemas, and run_query]
Laptop login: demo / demo. On a public bind (HOST=0.0.0.0, container, Code Engine) set ADMIN_PASSWORD — the default is disabled. Write smoke is /test?write=1 after admin sign-in.
Add to your IDE (one line)
VS Code / GitHub Copilot — .vscode/mcp.json:
Bob / Cursor / Windsurf — .bob/mcp.json / .cursor/mcp.json / .windsurf/mcp.json:
Or install the extension and click Register server with all IDEs — it writes all four configs at once: VS Code Marketplace · Open VSX
[Extension diagnostics panel — all steps passing, server confirmed healthy]
Tools
The server has 19 tools. Six are the ticket desk, below. Eight operate the server itself: update_settings (every setting is one patch: auth mode, rate limit, call trace, desk sign-in, transports, events, gates, locks and scopes), set_mqtt, users, API keys, import_settings and sample traffic. Most of those need the admin scope even while auth is off; server/README.md lists the scope of each. Three are timers, start_timer, stop_timer and push_timer, with no get_timer (push_timer also streams the timer as events; see Events): you read a timer through the schema, run_query with schema=timers (server/README.md). push_log sends a log line as an event, and watch_system publishes the machine as system.info, including a container's cgroup limit. Plain lists are not tools of their own: run_query reads settings (the saved settings, importable as they are), system (the machine), events (the events already sent), and, with an admin credential, users, api_keys, trace, errors and counters. The page at /clients/dashboard.html draws them. Each of these tools is declared once and everything else is generated from that definition.
The ticket desk (6)
[Chat tab — AI calls MCP tools to create and query tickets live]
3 Resources
Resources are addressable and pinnable — clients can subscribe and refresh. Tools are for agent loops.
Call resources/list to browse — you do not need to know a URI ahead of time. A denied read is a JSON-RPC error (not a fake ticket document you can pin).
5 Prompts
User-facing prompts — the user picks these, the model executes them.
Auth model
Credentials: Authorization: Bearer <api key> over HTTP · MCP_API_KEY env var over stdio.
Issue keys, set modes, toggle per-tool gates, and lock individual tools on /admin.
A change broadcasts notifications/tools/list_changed to connected SSE and Streamable HTTP sessions (Cursor/Bob after initialize). One-shot POST /mcp (curl) has no session — it sees the new list on the next call.
Repo layout
Docs
Environment variables
Honest limits
- Tickets live in memory — a new container starts from seed data.
- Admin auth is a session cookie, not SSO. Cookie is
HttpOnly(+Secureon HTTPS). /healthbeing green does not mean the ticket went to the right person.- Public
/testdoes not create or close tickets. Use/test?write=1after admin sign-in. - Remote config, the extension's Remote config tab and the command line change real settings (auth mode, users, keys, rate limit) on whatever server you point them at. Demo setup is for a server you own.
Author: Markus van Kempen · [email protected] · markusvankempen.github.io · MCP Dev Summit Toronto talk · Talk slides · npm · VS Code Marketplace · Open VSX
来源:README.md,提交 80edabd
工具
0版本历史
2- v1.9.0最新Sep 24, 2026
- v1.0.4Sep 18, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
其他 Demo 集成

demo.st
st.demo官方发布者
demo.st 的远程 MCP 服务器,让助手预留子域名、发布打包的静态站点,并管理该站点的小型文档存储。

Proofmark Demo Server
由 GitHub 账号 SamuelDharshi 发布
一个小型本地文件系统 MCP 服务器,以 npm 包形式分发,用于演示 Proofmark 证明机制。

PlanPro demo (unofficial, AetherStack)
由 GitHub 账号 piksliviksi 发布
非官方演示型 MCP 端点,基于合成数据提供 PlanPro 风格的工作计划、KPI 与风险信息,并通过 OAuth 登录。

WebMCP Demo Store
由 GitHub 账号 kamatanuj 发布
一个以 MCP 工具形式提供的演示网店,让助手无需抓取 HTML 即可搜索商品目录、管理购物车并下单。

Everyday Software Voice Demo
由 GitHub 账号 PpiNeaPpLe 发布
一个远程 MCP 服务器,根据公开的企业网站生成预填链接,用于在浏览器中试用 AI 接待员演示。