Taprun

by LeonTing1010

294 downloads
Not rated
GitHub

About

Your AI agent scrapes X today, gets broken HTML tomorrow. Taprun compiles the site once into a deterministic program, then `tap doctor` monitors health contracts + structural diffs to catch silent breakage before your data goes stale. 140+ pre-built skills across 68+ sites. Works

Details

Author
LeonTing1010
Downloads
294
Categories
Web Scraping, Automation, Developer Tools, Other

- forge: AI inspects a site once and emits a .tap.js program
- tap run: program executes instantly with zero LLM cost
- tap doctor: health contracts and structural state diffs catch breakage
- heal: AI reads diagnostics and patches the program only when needed
- 140+ community skills in one binary with zero dependencies

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Taprun
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npx -y @taprun/cli (zero-install) or curl -fsSL https://taprun.dev/install.sh | sh (permanent). Connect to an MCP host by adding { "mcpServers": { "tap": { "command": "tap", "args": ["mcp", "start"] } } } to your client config. Run skills with tap <source>/<endpoint>, e.g. tap github/trending or tap hackernews/hot.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "taprun": {
            "tap": {
                "command": "tap",
                "args": [
                    "mcp",
                    "start"
                ]
            }
        }
    }
}

McpServers

{
    "tap": {
        "command": "tap",
        "args": [
            "mcp",
            "start"
        ]
    }
}

The action layer your agent drives in your own logged-in browser — for the exception-heavy, compliance-critical last 20% that clean APIs can't reach. Compiled once, replayed forever at zero LLM tokens.

Homepage|Blog|Verified Claims|📬 Drift Alerts|中文

Your agent's closed-loop action layer for the browser — the login-gated, exception-heavy, compliance-critical last 20% that clean APIs and cloud agents can't reach. Driven in your own Chrome, captured once, replayed forever at zero LLM tokens.

As APIs get walled off and metered, the work that survives lives behind logins, OTP walls, and human-gesture gates — the exceptions, approvals, and compliance steps a cloud agent architecturally can't touch. Taprun is the action layer for exactly that: your agent drives your real, already-logged-in Chrome, closes the loop (act → verify the effect → re-run on drift), and hands you a deterministic replay you own.

Works with Claude Code, CodeBuddy, Cursor, Cline, Windsurf, and any MCP host — install straight from the chat window. Forge a tap from any URL on demand — no catalog needed.

Capture: AI inspects the site → compiles a .flow.json program (one-time cost) Run: The program executes instantly, same result every time ($0, zero AI) Verify: tap verify checks the snapshot equivalence predicate (catches drift) Repair: re-run capture against the same site/name; the next (only when needed) verify rebaselines after human review

1. Attach to your agent — from the chat window

Claude Code / CodeBuddy— paste two lines into the chat, nothing else:

/plugin marketplace add LeonTing1010/taprun /plugin install tap@taprun

That installs the Taprun MCP serverplusthe skills that teach your agent when to use it and the hook that routes walled fetches to Taprun — no terminal, no config file. (CodeBuddy wires plugin MCP servers at startup only, sofully restart it onceafter installing; Claude Code picks them up with/reload-plugins.)

Any other MCP host(Cursor · VS Code · Claude Desktop) — one command writes the config for you:

npx -y @taprun/cli embed cursor # or: vscode | claude-desktop | claude-code | codebuddy | qwen

The binary self-copies to~/.tap/binand your agent's MCP config is written. Re-check anytime withtap embed --verify.

Using a coding agent that isn't in that list?tap embedtargets aredata, not code: drop a row into~/.tap/embed-targets.jsonand the new agent works immediately — no engine release. Each row names one of four installkinds(cc-pluginfor Claude-Code-plugin hosts,cli-mcp-addfor CLIs with a<cli> mcp add,ide-deeplink,desktop-bundle), e.g.[{"id":"kode","kind":"cc-plugin","display":"Kode CLI","tier":1,"cli":"kode"}]. Same doctrine as the rest of Taprun — the engine stays closed and mechanical; you extend it in local data.

Now pick your runtime —the extension is only needed to reuse yourlivelogged-in Chrome:

- Public pages / open APIs / CI — nothing more to install.The MCP server runs overnpx; you're done. Append--no-extensionfor a fully in-chat Playwright runtime with its own isolated profile (no browser gesture, no click).
- Logged-in sites(your bank / internal dashboard / Xiaohongshu / Zhihu) — just tell your agent"set up tap for logged-in sites"right in the chat. Thetap-setupskill drives the whole bridge from the chat: it materializes the stable binary (from the enginenpxalready downloaded — no second download) and registers the native-messaging manifest, then opens the extension page. The singleAdd to Chromeclick is the only step that isn't a chat action — itisthe trust gate that lets Taprun reuse your existing login, and the in-flight call resumes automatically once it lands.
- Claude Desktop: download
tap.mcpband double-click.

brew install LeonTing1010/tap/taprun # Homebrew (macOS / Linux) curl -fsSL https://taprun.dev/install.sh | sh # permanent binary npx -y @taprun/cli --version # zero-install (any Node host)

Manual MCP config, if you'd rather write it yourself:

{ "mcpServers": { "tap": { "command": "npx", "args": ["-y", "@taprun/cli", "mcp", "stdio"] } } }

2. Prove it works (~2 minutes, no login)

Run the first entry of theclaims ledger— the exact verification its nightly CI runs:

mkdir -p ~/.tap/flows/github curl -fsSL https://raw.githubusercontent.com/LeonTing1010/tap-skills/main/claims/2026-07-11-github-trending-has-no-api/plan.json \ -o ~/.tap/flows/github/trending-no-api.flow.json tap github/trending-no-api

"state": "committed"plus today's trending repos at zero tokens = your install worksandthe claim holds.

tap capture https://news.ycombinator.com hn/front --intent "front-page stories with points" tap hn/front # replay forever, $0
You: What's trending on GitHub today? Agent: Here are today's top repos — React compiler hit 734 stars... You: Capture a tap for Douban top 250 movies Agent: Done. Run tap douban/top250 anytime — $0 per run.

Optional: Drive the binary from your own code (TypeScript / Python)

Skip MCP — call thetapbinary from your own loop:

tap capture <url> hackernews/top --intent "front-page top stories" tap hackernews/top --args '{}' # JSON-on-stdout, exit 0 on success tap verify hackernews/top # 3-arm verdict (live / drifted / unreachable)

The CLI emitsToolResult<T>envelopes as JSON — same shape the MCP surface returns — so any language with a subprocess library can drive it. Seetap --helpfor the full verb list.

Have an existing Playwright / Puppeteer / Stagehand script?

Don't rewrite. Convert with one of the open-source adapters — drop your existing source in, get a Taprun-compatible.flow.jsonplan out:

# Existing Playwright script (47M weekly npm downloads — most likely the one you have) npm install @taprun/from-playwright @taprun/spec node -e "import('@taprun/from-playwright').then(m => console.log(m.playwrightToTap(require('fs').readFileSync('tests/login.spec.ts','utf8'), {site:'example', name:'login'})))" # Or scaffold a new starter from scratch npx create-tap-script github/trending https://github.com/trending

The format itself is documented at@taprun/spec— the public protocol surface package: TypeScript types for the v2 Plan (18-op closed union + discriminated read/write Plan union) + JSON Schema 2020-12 with$idresolvable attaprun.dev/spec/plan-v1/schema.json, bidirectionally drift-guarded against the TS types. Third-party tooling (IDE$schemaautocomplete, ajv-equivalent validators in Python/Ruby/Go, governance layers, alternative runtimes, MCP hosts with plan-aware permission scoping) builds against this package without depending on the proprietary Taprun engine. Plan-v1 reference:taprun.dev/spec/plan-v1. Source for all five packages:packages/(see[packages/README.mdfor the workspace overview).

tap reddit/hot # Reddit front page tap bilibili/trending # Bilibili trending tap arxiv/search --keyword "LLM" # arXiv papers
tap xiaohongshu/publish --title "My Note" --images photo.jpg tap zhihu/publish --title "My Article" --content "..."
tap verify github/trending # spot drift; schedule via cron / launchd

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.