M

MCP Ticket Demo

by markusvankempen · io.github.markusvankempen/mcp-ticket-demo

Enables running and learning from a production-shaped MCP server that exposes ticket-desk operations, server administration, timers, events, and schema-driven queries across stdio, SSE, and Streamable HTTP with configurable auth, rate limiting, and observability.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-markusvankempen-mcp-ticket-demo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-ticket-demo"
      ],
      "env": {
        "MCP_API_KEY": "<YOUR_VALUE>",
        "AUTH_MODE": "off",
        "MCP_USERS": "<YOUR_VALUE>",
        "RATE_LIMIT": "60",
        "HOST": "127.0.0.1",
        "PORT": "8080",
        "API_KEY": "<VALUE>",
        "MCP_URL": "http://127.0.0.1:8787/mcp",
        "MCP_MODE": "stdio",
        "TENANT_ID": "<VALUE>",
        "ADMIN_USER": "demo",
        "CORS_ORIGINS": "<VALUE>",
        "MCP_PASSWORD": "<VALUE>",
        "MCP_USERNAME": "<VALUE>",
        "ADMIN_PASSWORD": "demo",
        "API_KEY_SCOPES": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-markusvankempen-mcp-ticket-demo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-ticket-demo"
      ],
      "env": {
        "MCP_API_KEY": "<YOUR_VALUE>",
        "AUTH_MODE": "off",
        "MCP_USERS": "<YOUR_VALUE>",
        "RATE_LIMIT": "60",
        "HOST": "127.0.0.1",
        "PORT": "8080",
        "API_KEY": "<VALUE>",
        "MCP_URL": "http://127.0.0.1:8787/mcp",
        "MCP_MODE": "stdio",
        "TENANT_ID": "<VALUE>",
        "ADMIN_USER": "demo",
        "CORS_ORIGINS": "<VALUE>",
        "MCP_PASSWORD": "<VALUE>",
        "MCP_USERNAME": "<VALUE>",
        "ADMIN_PASSWORD": "demo",
        "API_KEY_SCOPES": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-markusvankempen-mcp-ticket-demo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-ticket-demo"
      ],
      "env": {
        "MCP_API_KEY": "<YOUR_VALUE>",
        "AUTH_MODE": "off",
        "MCP_USERS": "<YOUR_VALUE>",
        "RATE_LIMIT": "60",
        "HOST": "127.0.0.1",
        "PORT": "8080",
        "API_KEY": "<VALUE>",
        "MCP_URL": "http://127.0.0.1:8787/mcp",
        "MCP_MODE": "stdio",
        "TENANT_ID": "<VALUE>",
        "ADMIN_USER": "demo",
        "CORS_ORIGINS": "<VALUE>",
        "MCP_PASSWORD": "<VALUE>",
        "MCP_USERNAME": "<VALUE>",
        "ADMIN_PASSWORD": "demo",
        "API_KEY_SCOPES": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-markusvankempen-mcp-ticket-demo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-ticket-demo"
      ],
      "env": {
        "MCP_API_KEY": "<YOUR_VALUE>",
        "AUTH_MODE": "off",
        "MCP_USERS": "<YOUR_VALUE>",
        "RATE_LIMIT": "60",
        "HOST": "127.0.0.1",
        "PORT": "8080",
        "API_KEY": "<VALUE>",
        "MCP_URL": "http://127.0.0.1:8787/mcp",
        "MCP_MODE": "stdio",
        "TENANT_ID": "<VALUE>",
        "ADMIN_USER": "demo",
        "CORS_ORIGINS": "<VALUE>",
        "MCP_PASSWORD": "<VALUE>",
        "MCP_USERNAME": "<VALUE>",
        "ADMIN_PASSWORD": "demo",
        "API_KEY_SCOPES": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-markusvankempen-mcp-ticket-demo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-ticket-demo"
      ],
      "env": {
        "MCP_API_KEY": "<YOUR_VALUE>",
        "AUTH_MODE": "off",
        "MCP_USERS": "<YOUR_VALUE>",
        "RATE_LIMIT": "60",
        "HOST": "127.0.0.1",
        "PORT": "8080",
        "API_KEY": "<VALUE>",
        "MCP_URL": "http://127.0.0.1:8787/mcp",
        "MCP_MODE": "stdio",
        "TENANT_ID": "<VALUE>",
        "ADMIN_USER": "demo",
        "CORS_ORIGINS": "<VALUE>",
        "MCP_PASSWORD": "<VALUE>",
        "MCP_USERNAME": "<VALUE>",
        "ADMIN_PASSWORD": "demo",
        "API_KEY_SCOPES": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-markusvankempen-mcp-ticket-demo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-ticket-demo"
      ],
      "env": {
        "MCP_API_KEY": "<YOUR_VALUE>",
        "AUTH_MODE": "off",
        "MCP_USERS": "<YOUR_VALUE>",
        "RATE_LIMIT": "60",
        "HOST": "127.0.0.1",
        "PORT": "8080",
        "API_KEY": "<VALUE>",
        "MCP_URL": "http://127.0.0.1:8787/mcp",
        "MCP_MODE": "stdio",
        "TENANT_ID": "<VALUE>",
        "ADMIN_USER": "demo",
        "CORS_ORIGINS": "<VALUE>",
        "MCP_PASSWORD": "<VALUE>",
        "MCP_USERNAME": "<VALUE>",
        "ADMIN_PASSWORD": "demo",
        "API_KEY_SCOPES": "<VALUE>",
        "RATE_LIMIT_WINDOW_MS": "60000"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MCP_API_KEY secret No stdio credential. The command line client sends it as a bearer key.
AUTH_MODE No `off` · `write` · `all`. Default: off
MCP_USERS secret No Extra logins, e.g. "alice:secret:read,write".
RATE_LIMIT No Calls per window per caller. Default: 60
HOST No Bind address. `0.0.0.0` inside container (set automatically). Default: 127.0.0.1
PORT No HTTP only. `npm run http` uses 8787. Default: 8080
API_KEY No Register one API key at boot.
MCP_URL No Command line client only: the server to talk to. Default: http://127.0.0.1:8787/mcp
MCP_MODE No Transport mode: `stdio` or `http`. Default: stdio
TENANT_ID No If set, writes need the `x-tenant-id` header.
ADMIN_USER No `/admin` login user. Default disabled on a public bind until `ADMIN_PASSWORD` is set. Default: demo
CORS_ORIGINS No Extra `Origin` values allowed on `/mcp`. Localhost and same-host are always allowed.
MCP_PASSWORD No stdio basic auth password. The command line client sends them as HTTP Basic.
MCP_USERNAME No stdio basic auth username. The command line client sends them as HTTP Basic.
ADMIN_PASSWORD No `/admin` login password. Required on a public bind (`HOST=0.0.0.0`, container, Code Engine) — the default is disabled there. Default: demo
API_KEY_SCOPES No Scopes for the API key registered at boot.
RATE_LIMIT_WINDOW_MS No Rate limit window in milliseconds. Default: 60000

Similar servers