跳到正文
FunCoding

shaft-mcp

官方 MCP Registry 已收录

SHAFT browser automation, capture, and offline deterministic failure diagnosis

Star
424
分类
浏览器
版本
v10.4.20261127
许可证
MIT
最近提交
2026年12月1日
SHAFT logo

Write the test. SHAFT does the rest.

One Java engine for web, mobile, API, CLI, database, and desktop.
Drivers, waits, and evidence are handled. Every run ends in an Allure report.

Read the User Guide   Star SHAFT on GitHub

Maven Central Build Codecov

GitHub stars

Usage (GA4 Engine property + GitHub API, as of 2026-10-29): 4,885,097 tests run and 53,062 active users in 30 days (2026-09-29 to 2026-10-28); 154,202 active users in 12 months (2025-10-29 to 2026-10-28); 36 countries (12-month window). The stars badge above is live.

SHAFT in action: a 3-line test, mvn test passing, and the green Allure report it produces.

Upgrade to SHAFT_ENGINE · ▶ Watch the 26-second clip with sound and captions · 100-second overview

Why SHAFT

  • No plumbing. Managed Selenium and Appium drivers, synchronized actions, and smart waits.
  • One fluent API. Web, mobile, REST/GraphQL, database, CLI, and desktop in the same test.
  • Evidence by default. Steps, screenshots, and logs land in an Allure report on every run.
  • Scale by configuration. Local, Grid, BrowserStack, or LambdaTest; TestNG, JUnit, or Cucumber.
  • Open and trusted. MIT licensed, on Maven Central, with public coverage.

How it works

Test intent and configuration enter SHAFT's orchestration layer, fan out across the execution surfaces you need, and come back as unified evidence.

flowchart LR
    accTitle: SHAFT execution and evidence workflow
    accDescr: Test intent and configuration enter SHAFT orchestration, run across Web, Mobile, API, and Native execution surfaces, and produce unified evidence.
    I[Test intent] --> S[SHAFT orchestration]
    C[Configuration] --> S
    S --> W[Web]
    S --> M[Mobile]
    S --> A[API]
    S --> N[Native, CLI, and Database]
    W --> E[Unified evidence]
    M --> E
    A --> E
    N --> E

Quickstart

Generate your first project and run mvn test. Already on Maven? Add io.github.shafthq:shaft-engine (version from the Maven Central badge):

<dependency>
    <groupId>io.github.shafthq</groupId>
    <artifactId>shaft-engine</artifactId>
    <version>${shaft.version}</version>
</dependency>

Then write the test:

SHAFT.GUI.WebDriver driver = new SHAFT.GUI.WebDriver();
driver.browser().navigateToURL("https://shafthq.github.io/")
      .and().element().assertThat(By.cssSelector("h1")).isVisible();
driver.quit();

Run mvn test. The Allure report opens with every step, screenshot, and log.

Where to next

If SHAFT saves your team time, star the repo. It helps other testers find it.

Star SHAFT on GitHub


Open an issue · Code of Conduct · Security · Sponsor

BrowserStack, LambdaTest, Applitools, and JetBrains have provided tooling or open-source program support. This is support for the project, not a claim of financial sponsorship, customer status, or endorsement.

同类 MCP Server

browser-use

Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.

BRbrowser-use/browser-use122k近 7 天新增 560 个 star

精选

Chrome DevTools MCP

检查页面、分析性能,查看网络请求和控制台。

CHChromeDevTools/chrome-devtools-mcp60k近 7 天新增 932 个 star

PostHog MCP Server

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

POPostHog/posthog41k近 7 天新增 202 个 star

官方

playwright-mcp

Playwright Tools for MCP

MImicrosoft/playwright-mcp40k近 7 天新增 290 个 star

Skyvern

AI-powered browser automation — navigate, click, fill forms, and extract data from any website.

SKSkyvern-AI/skyvern24k近 7 天新增 74 个 star

SeleniumBase

📊 Python APIs for Web Automation, Testing, and Scraping. CDP Mode launches a stealth browser that bypasses bot-detection/CAPTCHAs. Has a stealth mode for Playwright. Includes an MCP server for AI agents.

SEseleniumbase/SeleniumBase13k近 7 天新增 19 个 star