MCP Servers

A collection of Model Context Protocol servers, templates, tools and more.

S
Swiftcart Playwright MCP Api

Playwright HTTP API tests for SwiftCart (Supabase). TypeScript complements Java swiftcart-api-automation. MCP-assisted discovery; no UI tests.

Created 5/25/2026
Updated about 18 hours ago
Repository documentation and setup instructions

SwiftCart Playwright API Testing (MCP-assisted)

API-focused Playwright automation for the SwiftCart demo backend, with an MCP-assisted workflow (Cursor, Playwright MCP, Context7 MCP) for discovery and documentation.

No UI tests or POMs in this repo — only HTTP API specs under tests/api/.


Related repos

| Repo | Role | |------|------| | swiftcart-api-automation | Java REST Assured API suite (same Supabase API) | | swiftcart-playwright-mcp | UI E2E + MCP case study | | swiftcart-automation | Main Playwright UI framework |


Positioning

| Tool | Role | |------|------| | Playwright MCP | Optional: inspect storefront network traffic; validate flows before API assertions | | Context7 MCP | Up-to-date Playwright request API docs in Cursor | | Playwright CLI | Run API tests (npm run test:api) | | GitHub Actions | CI runs API specs |


API under test

Base URL (verified):

https://djxdhlwkccbdjucfggrn.supabase.co/functions/v1/api

Override:

export API_BASE_URL="https://your-project.supabase.co/functions/v1/api"

Storefront (UI only, not the API host): https://swiftcart-sanaev-dev.lovable.app


Test coverage

| Spec | Endpoints | |------|-----------| | tests/api/products.api.spec.ts | GET /products, GET /products/{id} (+ 404 cases) |

Full scenarios, status codes, and fields: docs/api-testplan.md.


Project structure

Swiftart-Playwright-MCP-API/
├── tests/api/              # API specs (*.api.spec.ts)
├── utils/apiConfig.ts      # API_BASE_URL
├── docs/
│   ├── api-testplan.md     # API test plan
│   ├── api-testing.md      # API workflow guide
│   ├── mcp-workflow.md     # Optional MCP discovery notes
│   └── context7-usage.md   # Context7 for Playwright request API
├── playwright.config.ts
└── package.json

Commands

npm install
npm run test:api
npm run report

MCP workflow

See docs/api-testing.md, docs/mcp-workflow.md, and docs/context7-usage.md. Configure MCP in Cursor user/project settings (do not commit secrets).


CI

GitHub Actions (.github/workflows/playwright.yml) runs npm run test:api on push/PR.


Documentation


Author

Muhammad Sanaev — QA Automation Engineer
GitHub · LinkedIn

Quick Setup
Installation guide for this server

Install Package (if required)

npx @modelcontextprotocol/server-swiftcart-playwright-mcp-api

Cursor configuration (mcp.json)

{ "mcpServers": { "sputerx95-swiftcart-playwright-mcp-api": { "command": "npx", "args": [ "sputerx95-swiftcart-playwright-mcp-api" ] } } }