npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

quizgate-mcp

v1.0.0

Published

MCP server that gives AI agents a beautiful quiz UI to ask clarifying questions inside VS Code

Readme

QuizGate

Stop your AI agent from guessing. Make it ask.

QuizGate is an MCP server that gives AI agents a beautiful quiz UI to ask you clarifying questions directly inside VS Code — instead of hallucinating assumptions.

  AI Agent                     You (in VS Code)
  ┌───────────┐               ┌──────────────────┐
  │ "Should I │  MCP ask_user │ ┌──────────────┐  │
  │  use SQL  │ ────────────► │ │  Quiz Panel  │  │
  │  or NoSQL │               │ │  ○ PostgreSQL │  │
  │  ...?"    │ ◄──────────── │ │  ● SQLite    │  │
  │           │  { answer }   │ │  ○ MySQL     │  │
  └───────────┘               │ └──────────────┘  │
                              └──────────────────┘

Quick Start

1. Install the VS Code Extension

Search "QuizGate" in the VS Code Extensions marketplace, or install from VSIX:

code --install-extension quizgate-0.2.0.vsix

2. Add QuizGate to your AI Agent's MCP config

Gemini CLI (~/.gemini/settings.json):

{
  "mcpServers": {
    "quizgate": {
      "command": "npx",
      "args": ["-y", "quizgate-mcp"]
    }
  }
}

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "quizgate": {
      "command": "npx",
      "args": ["-y", "quizgate-mcp"]
    }
  }
}

Or use a local install (faster startup, no download on each run):

npm install -g quizgate-mcp

Then point your config to:

{
  "mcpServers": {
    "quizgate": {
      "command": "quizgate-mcp"
    }
  }
}

3. Done

Your AI agent now has the ask_user tool. When it faces ambiguity, it'll summon a quiz panel in your IDE instead of guessing.


How It Works

  1. AI Agent encounters an architectural decision or ambiguity
  2. Calls ask_user via MCP with a structured question payload
  3. MCP Server (this package) forwards the payload to the VS Code extension via localhost HTTP
  4. VS Code Extension renders a beautiful quiz panel with options
  5. You answer, and the structured response flows back to the agent
  6. Agent proceeds with your actual preference — no hallucination

The ask_user Tool

The MCP server exposes a single tool:

ask_user({
  title: "Database Architecture",
  description: "Need clarification before proceeding...",
  questions: [
    {
      id: "q1",
      question: "Which database engine?",
      context: "PostgreSQL has better JSONB support...",
      options: [
        { label: "PostgreSQL", description: "Production-grade" },
        { label: "SQLite", description: "Zero setup, local dev" }
      ],
            required: true
    }
  ]
})

Safety Features

| Feature | What It Does | | ------------------------ | ---------------------------------------------------------------------------------- | | Circuit Breaker | If you dismiss the quiz 3 times in 5 minutes, the tool auto-disables for 5 minutes | | Three-Tier Errors | Transport / Protocol / Application error classification for the agent | | Configurable Timeout | Quiz auto-closes after configurable seconds (default: 120) | | Nonce-based CSP | Content Security Policy prevents XSS in the webview |


Configuration

Set these in VS Code settings:

| Setting | Default | Description | | ------------------ | ------- | --------------------------------------------------------- | | quizgate.port | 6010 | HTTP bridge port. Auto-scans 10 ports upward if occupied. | | quizgate.timeout | 120 | Seconds before quiz auto-closes (5–600). |


Requirements

  • Node.js 18+
  • VS Code 1.85+ with the QuizGate extension installed
  • An MCP-compatible AI agent (Gemini CLI, Claude Desktop, etc.)

License

MIT