loading…
Search for a command to run...
loading…
An interactive programming quiz server that provides assessment tools across ten tech categories with three difficulty levels. It enables users to launch quiz i
An interactive programming quiz server that provides assessment tools across ten tech categories with three difficulty levels. It enables users to launch quiz interfaces, receive graded feedback with explanations, and request hints through MCP-compatible tools.
An interactive programming quiz server built with the Model Context Protocol (MCP) and MCP Apps SDK. Features 10 quiz questions across multiple categories (Web Fundamentals, JavaScript, Git, Networking, Algorithms, TypeScript, CSS, Databases, Security, Systems) with three difficulty levels.
# Install dependencies
npm install
# Build the UI (bundles mcp-app.html into dist/)
npm run build
# Start the server
npm run serve
The server starts at http://localhost:3001/mcp.
npm run dev
This runs both the Vite UI watcher and the server with auto-reload concurrently.
| Script | Description |
|---|---|
npm run build |
Build the bundled UI (dist/mcp-app.html) |
npm run serve |
Start the MCP server (tsx) |
npm run dev |
Watch mode — rebuilds UI & restarts server on changes |
npm start |
Production start (node --import tsx main.ts) |
# Initialize
curl -X POST http://localhost:3001/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}'
# List tools
curl -X POST http://localhost:3001/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":2}'
├── main.ts # Entry point — HTTP & stdio transport setup
├── server.ts # MCP server — tools, resources, quiz logic
├── mcp-app.html # UI entry point (built by Vite into dist/)
├── src/
│ ├── mcp-app.tsx # React quiz UI component
│ ├── mcp-app.module.css
│ └── global.css
├── vite.config.ts # Vite config (single-file bundle)
├── tsconfig.json # TypeScript config (UI + server)
└── package.json
| Variable | Default | Description |
|---|---|---|
PORT |
3001 |
HTTP server port |
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"quiz-mcp-server": {
"command": "npx",
"args": []
}
}
}