{"id":30824292,"url":"https://github.com/netzulo/mcp-gentest","last_synced_at":"2025-09-06T11:54:59.218Z","repository":{"id":308024328,"uuid":"1031299307","full_name":"netzulo/mcp-gentest","owner":"netzulo","description":"Just a MVP to test a lit about potencial of MCPs","archived":false,"fork":false,"pushed_at":"2025-08-03T17:05:52.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T18:24:46.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netzulo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-03T12:58:09.000Z","updated_at":"2025-08-03T17:05:55.000Z","dependencies_parsed_at":"2025-08-03T18:38:09.349Z","dependency_job_id":null,"html_url":"https://github.com/netzulo/mcp-gentest","commit_stats":null,"previous_names":["netzulo/mcp-gentest"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/netzulo/mcp-gentest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netzulo%2Fmcp-gentest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netzulo%2Fmcp-gentest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netzulo%2Fmcp-gentest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netzulo%2Fmcp-gentest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netzulo","download_url":"https://codeload.github.com/netzulo/mcp-gentest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netzulo%2Fmcp-gentest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273900209,"owners_count":25187739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-06T11:54:58.076Z","updated_at":"2025-09-06T11:54:59.210Z","avatar_url":"https://github.com/netzulo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧪 MCP GenTest\n\n[![CI](https://github.com/your-username/mcp-gentest/actions/workflows/ci.yml/badge.svg)](https://github.com/your-username/mcp-gentest/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n![Node.js](https://img.shields.io/badge/node-%3E=18.x-brightgreen)\n\nMCP GenTest is an LLM-powered tool that automatically generates Cucumber `.feature` files and `.steps.ts` test definitions from your React component code.\n\nIdeal for QA teams who want to bridge UI components and automated functional tests with minimal manual effort.\n\n---\n\n## ✨ Features\n\n- Scans your React project and extracts UI component logic\n- Generates Cucumber `.feature` scenarios (success, edge, validation)\n- Produces TypeScript step definitions using Selenium WebDriver\n- Optional CLI test runner with full TypeScript support\n\n---\n\n## 🚀 Installation\n\n```bash\ngit clone https://github.com/your-username/mcp-gentest.git\ncd mcp-gentest\nyarn install\ncp .env.example .env\n# Add your OpenAI API key to the .env file\n```\n\n---\n\n## 🔧 Usage\n\n### 1. Analyze project and generate features\n\n```bash\nyarn features --project ./path/to/react-project\n```\n\nOptional flags:\n- `--include src/`: scan only files inside that folder\n- `--limit 5`: analyze only the first 5 relevant files\n- `--overwrite`: replace existing `.feature` files\n\n### 2. Generate step definitions\n\n```bash\nyarn steps\n```\n\nThis will create `.steps.ts` files inside `cucumber/step_definitions`.\n\n### 3. Run tests\n\n```bash\nyarn test:run\n```\n\nRuns `cucumber-js` against the generated files using the transpiled JS output in `dist/`.\n\n---\n\n## 📂 Project Structure\n\n```\ncucumber/\n  features/\n    Button.feature\n    Header.feature\n  step_definitions/\n    Button.steps.ts\n    Header.steps.ts\n```\n\n---\n\n## 📜 Available Scripts\n\n```json\n{\n  \"analyze\": \"tsc \u0026\u0026 node dist/analyzer/index.js\",\n  \"features\": \"tsc \u0026\u0026 node dist/prompt/index.js\",\n  \"steps\": \"tsc \u0026\u0026 node dist/steps/index.js\",\n  \"test:run\": \"yarn build \u0026\u0026 cucumber-js dist/cucumber/features --require dist/cucumber/step_definitions/**/*.js\",\n  \"build\": \"tsc\"\n}\n```\n\n---\n\n## 🌍 Environment Variables\n\nCreate a `.env` file with your OpenAI API key:\n\n```env\nOPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n---\n\n## 📦 Requirements\n\n- Node.js \u003e= 18\n- Yarn \u003e= 1.22\n- OpenAI API key (uses GPT-4o)\n- React project with `.tsx` components\n\n---\n\n## 🛣️ Roadmap\n\n- [x] Feature + step generator from component code\n- [x] Unified CLI runner\n- [x] Transpilation from TypeScript to CommonJS for Cucumber\n- [ ] Support for Playwright/Testing Library\n- [ ] GitHub Action for CI integration\n\n---\n\n## 🧪 Demo\n\n```bash\nyarn analyze:example\nyarn features:example\nyarn steps:example\nyarn test:run\n# or\nyarn clean \u0026\u0026 yarn \u0026\u0026 yarn runner:example\n```\n\nCheck the asciinema recording for a demo of the tool in action.\n\n[![asciicast](https://asciinema.org/a/731435.svg)](https://asciinema.org/a/731435)\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetzulo%2Fmcp-gentest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetzulo%2Fmcp-gentest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetzulo%2Fmcp-gentest/lists"}