Skip to main content
Glama

MCP QA Demo

This project demonstrates the difference between:

  • general automation: execute a browser flow with Playwright + Cucumber

  • MCP-assisted automation: run the same flow and then invoke an MCP tool for analysis

1. Setup on another machine

Prerequisites

  • Node.js 18+ installed

  • npm installed

  • Internet access for downloading Playwright browsers

Install dependencies

git clone <your-repo-url>
cd mcp-qa-demo
npm install
npx playwright install

VS Code MCP setup

  1. Open the workspace in VS Code.

  2. Make sure the folder contains .vscode/mcp.json.

  3. Restart VS Code or reload the window.

  4. Open Copilot Chat and use the MCP server from the workspace.

Related MCP server: Playwright MCP Server

2. Run the general flow

npm run test:general

3. Run the MCP flow

npm run test:mcp

4. Run both flows back to back

npm run demo:both

5. Start the MCP server directly

npm run mcp:server

6. How to use it

  1. Start the MCP server:

npm run mcp:server
  1. In Claude or another MCP-compatible chat client, send a prompt such as:

Open Google and search for automation demo
  1. The MCP tool exposed by this server will launch a real browser, perform the interaction, and generate the feature/step/page artifacts.

  2. The generated files will be written under the generated folder.

7. TypeScript prompt runner

You can also try a prompt-driven browser flow directly in TypeScript:

node -r ts-node/register/transpile-only src/demo.ts "open google and search for automation demo"

8. Quick demo summary

  • Traditional automation: write scripts manually and execute them.

  • MCP automation: describe the task in chat, let the tool observe the browser, and generate the automation assets.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    F
    maintenance
    Enables creation of reusable browser automation skills through demonstration by recording user actions in a browser while narrating, then converting those workflows into executable skills that can be invoked through natural language.
    1
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables browser automation using Playwright, allowing LLMs to interact with web pages, take screenshots, generate test code, scrape web pages, and execute JavaScript in a real browser environment.
    15,344 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables browser automation using Playwright for web scraping, testing, and automation tasks through natural language commands.
    590 npm
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables plain-English browser automation via an MCP server, allowing agents to run objectives or test suites in a real browser without selectors or scripts.
    88 npm
    2
    Apache 2.0