@muggleai/works 5.35.0-staging.325 → 5.35.0-staging.327

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,8 @@
8
8
  {
9
9
  "name": "muggleai",
10
10
  "source": "./plugin",
11
- "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
12
- "version": "5.35.0-staging.325"
11
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
12
+ "version": "5.35.0-staging.327"
13
13
  }
14
14
  ]
15
15
  }
package/AGENTS.md ADDED
@@ -0,0 +1,135 @@
1
+ # Muggle Works for AI agents
2
+
3
+ Muggle Works (`@muggleai/works`, CLI `muggle`) is an acceptance test agent for coding agents: it drives a real browser through the user flows a change touches and puts the evidence, with screenshots, on the pull request. It ships an MCP server with 130 tools, a CLI, and a plugin of slash-command skills for Claude Code, Codex and Cursor.
4
+
5
+ ## Install
6
+
7
+ | Host | Command |
8
+ | :--- | :------ |
9
+ | Any (CLI + MCP server) | `npm install -g @muggleai/works` (Node 22+) |
10
+ | Claude Code plugin | `/plugin marketplace add multiplex-ai/muggle-ai-works`, then `/plugin install muggleai@muggle-works` |
11
+ | Codex plugin | `codex plugin marketplace add multiplex-ai/muggle-ai-works`, then `codex plugin add muggle@muggle-works` |
12
+ | Cursor | `npm install -g @muggleai/works`; postinstall writes `~/.cursor/mcp.json` and syncs skills to `~/.cursor/skills/` |
13
+ | Other MCP clients | Register `muggle serve` (stdio), as below |
14
+
15
+ ```json
16
+ { "mcpServers": { "muggle": { "command": "muggle", "args": ["serve"], "env": { "MUGGLE_MCP_PROMPT_SERVICE_TARGET": "production" } } } }
17
+ ```
18
+
19
+ Naming: the Claude Code marketplace entry is `muggleai`, the installed plugin is `muggle`, so skills appear as `/muggle:<skill>` (short aliases such as `/mtest` also work). Codex uses `$muggle:<skill>`.
20
+
21
+ `muggle doctor` checks the install; `muggle setup --force` re-downloads the browser runner.
22
+
23
+ ## Sign-in
24
+
25
+ Local browser runs and every `muggle-remote-*` tool except `muggle-remote-pricing-get` need an account.
26
+
27
+ | Situation | CLI | MCP tools |
28
+ | :-------- | :-- | :-------- |
29
+ | Check | `muggle status` | `muggle-remote-auth-status` |
30
+ | Existing account | `muggle login [--key-expiry 90d]` (device code in the browser) | `muggle-remote-auth-login`, then `muggle-remote-auth-poll` if still pending |
31
+ | No account | `/muggle:muggle-register` | `muggle-remote-auth-register` (email + password, no browser; stores the API key) |
32
+ | Sign out | `muggle logout` | `muggle-remote-auth-logout` |
33
+
34
+ Credentials live in `~/.muggle-ai/` (`oauth-session.json`, `api-key.json`). Long-lived keys: `muggle-remote-auth-api-key-*`.
35
+
36
+ ## Entity model
37
+
38
+ `Project → Use case → Test case → Test script → Run result`. The cloud stores projects, use cases, test cases and scripts (`muggle-remote-*`). The local runner executes in a real browser on this machine (`muggle-local-*`) and reaches `localhost`.
39
+
40
+ ## Flows
41
+
42
+ ### Local test generation and replay
43
+
44
+ For an app on `localhost` or a preview URL.
45
+
46
+ 1. `muggle-remote-project-list` or `muggle-remote-project-create`.
47
+ 2. `muggle-remote-use-case-create-from-prompts` (plain English) or `muggle-remote-use-case-list`.
48
+ 3. `muggle-remote-test-case-generate-from-prompt` or `muggle-remote-test-case-list-by-use-case`, then `muggle-remote-test-case-get`.
49
+ 4. Generate: `muggle-local-execute-test-generation` with the test case and the local URL. Put any limit the run must respect (target, path, data it may change) in the test case description; the runner does not read chat.
50
+ 5. Replay: `muggle-remote-test-script-get`, `muggle-remote-action-script-get` (its `actionScriptId`), then `muggle-local-execute-replay` with the script, action script, test case description and local URL.
51
+ 6. Read the outcome: `muggle-local-run-result-get` (verdict, screenshots, `viewUrl`) or `muggle-local-run-steps-get` (each step beside its frame).
52
+
53
+ `muggle-local-check-status` reports the runner; `muggle-local-cancel-execution` stops a run.
54
+
55
+ ### Cloud workflows
56
+
57
+ For a publicly reachable URL, run in Muggle's cloud. Each `muggle-remote-workflow-start-*` returns immediately; poll the matching `muggle-remote-wf-get-*` or `muggle-remote-workflow-get-*` tool.
58
+
59
+ | Step | Start | Poll |
60
+ | :--- | :---- | :--- |
61
+ | Scan a site for use cases | `muggle-remote-workflow-start-website-scan` | `muggle-remote-workflow-get-website-scan-latest-run` |
62
+ | Process a requirements doc | `muggle-remote-prd-file-upload`, `muggle-remote-workflow-start-prd-file-process` | `muggle-remote-wf-get-prd-process-latest-run` |
63
+ | Detect test cases | `muggle-remote-workflow-start-test-case-detection` | `muggle-remote-wf-get-tc-detect-latest-run` |
64
+ | Generate scripts | `muggle-remote-workflow-start-test-script-generation[-bulk]` | `muggle-remote-wf-get-ts-gen-latest-run` |
65
+ | Replay scripts | `muggle-remote-workflow-start-test-script-replay[-bulk]` | `muggle-remote-wf-get-ts-replay-latest-run`, `muggle-remote-wf-get-ts-replay-bulk-latest-run` |
66
+
67
+ Cancel with `muggle-remote-workflow-cancel-run` or `-cancel-runtime`.
68
+
69
+ ### Pull-request walkthroughs
70
+
71
+ A walkthrough is a PR comment with the pass/fail summary, per-step screenshots and dashboard links.
72
+
73
+ - `/muggle:muggle-pr-visual-walkthrough` posts one from finished results, rendered by `muggle build-pr-section`.
74
+ - `muggle ci-install` adds `.github/workflows/muggle-walkthrough.yml`, which runs `muggle pr-walkthrough-check --check-run` and fails while the walkthrough is missing or reports a failure.
75
+ - `/muggle:muggle-do` and `/muggle:muggle-test` post the walkthrough themselves.
76
+
77
+ ## Skills
78
+
79
+ Claude Code: `/muggle:<name>` or the alias. Codex: `$muggle:<name>`. Source: `plugin/skills/<name>/SKILL.md`.
80
+
81
+ | Skill | Alias | Use when |
82
+ | :---- | :---- | :------- |
83
+ | `muggle` | `/m` | Unsure which command applies; opens the menu |
84
+ | `muggle-do` | `/mdo` | Build a feature or fix end to end and open a PR with browser proof |
85
+ | `muggle-test` | `/mtest` | Validate a diff, branch or PR before it ships; maps the change to affected flows |
86
+ | `muggle-test-feature-local` | `/mtestlocal` | Test one named flow against localhost |
87
+ | `muggle-test-prepare` | `/mtestprep` | Check and start the dev servers a run needs |
88
+ | `muggle-test-import` | `/mimport` | Import Playwright, Cypress, Gherkin, PRDs or test-plan docs as test cases |
89
+ | `muggle-test-regenerate-missing` | `/mregen` | Bulk-regenerate scripts for test cases that have none |
90
+ | `muggle-browser-task` | `/mbt` | Carry out a real action on a website (not a pass/fail test) |
91
+ | `muggle-pr-visual-walkthrough` | `/mpr` | Post existing results to a PR |
92
+ | `muggle-pr-followup` | `/mprfollowup` | Watch a PR and address new review comments, red CI and base drift |
93
+ | `muggle-feedback` | `/mfeedback` | Flag a generated script or step as wrong so it is regenerated |
94
+ | `muggle-run-view` | `/mrun` | Show a local run's steps beside its frames |
95
+ | `muggle-preferences` | `/mprefs` | View, set or reset preferences |
96
+ | `muggle-init` | `/minit` | First-time onboarding |
97
+ | `muggle-ci-install` | `/mci` | Add the walkthrough check to GitHub Actions |
98
+ | `muggle-login` / `muggle-logout` | `/mlogin` / `/mlogout` | Sign in, switch accounts, sign out |
99
+ | `muggle-register` | `/mregister` | Create an account |
100
+ | `muggle-status` | `/mstatus` | Diagnose the install: MCP server, tools, sign-in |
101
+ | `muggle-repair` | `/mrepair` | Fix a broken install |
102
+ | `muggle-upgrade` | `/mupgrade` | Update to the newest version |
103
+ | `muggle-cleanup` | `/mcleanup` | Remove old runner versions and obsolete skills |
104
+
105
+ ## Pricing
106
+
107
+ Never quote a price from memory. Read the live catalog: `muggle pricing [--json]` or the `muggle-remote-pricing-get` tool (no sign-in). `muggle-remote-wallet-package-list` lists the token packages the signed-in user can buy; `muggle-remote-wallet-topup` returns a checkout link for one.
108
+
109
+ ## Results
110
+
111
+ | What | Where |
112
+ | :--- | :---- |
113
+ | Local run | `~/.muggle-ai/sessions/{runId}/`: `action-script.json`, `results.md`, `electron-runtime/screenshot/` |
114
+ | Local run, in the terminal | `muggle run-view [runId]` (`--html`, `--open`) |
115
+ | Dashboard link | `viewUrl` in `muggle-local-run-result-get`; `muggle-remote-local-run-upload` publishes a run that has none |
116
+ | Cloud runs | `muggle-remote-wf-get-*`, `muggle-remote-project-test-runs-summary-get`, `muggle-remote-report-final-generate` (PDF, HTML, Markdown) |
117
+ | `muggle-do` cycle state | `~/.muggle-ai/muggle-do/sessions/` |
118
+
119
+ ## Common errors
120
+
121
+ | Symptom | Fix |
122
+ | :------ | :-- |
123
+ | `unauthorized_client` at login | `MUGGLE_MCP_PROMPT_SERVICE_TARGET` points at a different environment than the account; fix it and restart the MCP client |
124
+ | Remote tool reports no credentials | `muggle-remote-auth-status`, then `muggle-remote-auth-login` or `muggle login` |
125
+ | Browser runner not found | `muggle setup --force`, then `muggle doctor` |
126
+ | Run verdict `insufficient_balance` | A billing stop, not a failed test; check `muggle pricing` and top up |
127
+ | Codex cuts a local run off after 60 s | Set `tool_timeout_sec = 1800` on the `muggle` MCP server, or install the Codex plugin |
128
+ | `codex exec` refuses muggle tools | Approve them in `~/.codex/config.toml` (see README, Codex) |
129
+ | Test touched the wrong page or data | Put the limit in the test case description and regenerate |
130
+
131
+ ## More
132
+
133
+ - [README](README.md): cycle, commands, MCP tool and CLI reference, configuration.
134
+ - [llms.txt](llms.txt): link index for LLMs.
135
+ - MCP resources: `muggle://docs/agents` (this file) and `muggle://docs/llms`, served by `muggle serve`.
package/README.md CHANGED
@@ -1,15 +1,17 @@
1
1
  # Muggle Works
2
2
 
3
- **13 years of Microsoft hyperscale engineering, packaged as a harness for your AI coding agent.**
3
+ **Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.**
4
4
 
5
5
  Coding agents are good at producing a diff. They are bad at knowing whether the diff works, whether it broke the login flow, and what still has to happen before a human can merge it. Muggle Works is the harness around the agent that answers those questions: it freezes requirements, delegates the design and build, runs the unit suite, drives a **real browser** through the affected user flows, opens the pull request with screenshots attached, and then keeps watching that PR — picking up review comments, red CI, and a stale base branch until the change is genuinely mergeable.
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@muggleai/works.svg)](https://www.npmjs.com/package/@muggleai/works)
8
8
  [![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
9
9
  [![Node](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org)
10
- [![MCP tools](https://img.shields.io/badge/MCP%20tools-100%2B-blue.svg)](#mcp-tool-reference)
10
+ [![MCP tools](https://img.shields.io/badge/MCP%20tools-130-blue.svg)](#mcp-tool-reference)
11
11
 
12
- Works in Claude Code, Cursor, Codex, Windsurf, and any MCP client. Powered by [Muggle Test](https://www.muggletest.com).
12
+ Works in Claude Code, Cursor, Codex, Windsurf, and any MCP client. Powered by [Muggle AI](https://www.muggle-ai.com).
13
+
14
+ AI agents: start with [AGENTS.md](AGENTS.md) (install, sign-in, flows, skills, errors) or [llms.txt](llms.txt). `muggle serve` also serves both as MCP resources, `muggle://docs/agents` and `muggle://docs/llms`.
13
15
 
14
16
  ---
15
17
 
@@ -21,7 +23,7 @@ Works in Claude Code, Cursor, Codex, Windsurf, and any MCP client. Powered by [M
21
23
  - **The loop keeps running after you close the laptop.** A watcher polls the PR and re-enters the cycle when a reviewer comments, CI goes red, or the branch falls behind its base. Feedback becomes commits without you relaying it.
22
24
  - **A gate, not a vibe.** No PR is opened until requirements are written, the build typechecks and lints, new logic carries unit tests, the suite passes, and a browser verdict is recorded — or a waiver reason is written down. Silence is not a waiver.
23
25
  - **Plain English in, replayable scripts out.** Describe a flow in a sentence; get a script that persists across sessions and re-runs as a regression test after every change.
24
- - **100+ MCP tools** if you'd rather assemble your own pipeline than use the packaged one.
26
+ - **130 MCP tools** if you'd rather assemble your own pipeline than use the packaged one.
25
27
 
26
28
  ### Built for two kinds of people
27
29
 
@@ -57,10 +59,12 @@ Stage 5.5 refuses to open the PR until build and unit tests meet the Definition
57
59
  **Claude Code** — full plugin: skills, MCP tools, and the browser runner.
58
60
 
59
61
  ```
60
- /plugin marketplace add https://github.com/multiplex-ai/muggle-ai-works
62
+ /plugin marketplace add multiplex-ai/muggle-ai-works
61
63
  /plugin install muggleai@muggle-works
62
64
  ```
63
65
 
66
+ The marketplace is `muggle-works` and its entry is `muggleai`; the installed plugin is named `muggle`, so its skills appear as `/muggle:<skill>`.
67
+
64
68
  **Cursor** — `npm install -g @muggleai/works`. The postinstall writes `~/.cursor/mcp.json` and syncs the `muggle-*` skills into `~/.cursor/skills/`. Restart Cursor.
65
69
 
66
70
  **Codex** — full plugin: skills, MCP tools, and the guardrail hooks.
@@ -283,17 +287,18 @@ so the result carries a viewUrl straight to the dashboard
283
287
 
284
288
  130 tools across authentication, projects, use cases, test cases, test states, scripts, workflows, local execution, reporting, secrets, pricing, billing, and administration. Call them directly from any MCP client to build your own pipeline.
285
289
 
286
- **Authentication** — `muggle-remote-auth-status`, `-login`, `-poll`, `-logout`, plus `-api-key-create`, `-list`, `-get`, `-revoke`.
290
+ **Authentication** — `muggle-remote-auth-status`, `-login`, `-poll`, `-logout`, `-register` (create an account from an email and password, no browser), plus `-api-key-create`, `-list`, `-get`, `-revoke`.
287
291
 
288
- **Projects** — `muggle-remote-project-create`, `-list`, `-get`, `-update`, `-delete`, plus per-project rollups: `-test-results-summary-get`, `-test-runs-summary-get`, `-test-scripts-summary-get`. Pass `primaryResolution`, `compatibleResolutions` and `runStrategy` (`primaryOnly`, the default, `primaryFirst` or `allAtOnce`) to `-create` or `-update` to verify every test case at more than one viewport; `muggle-remote-project-display-resolutions-get` reads a lane's primary, compatible and enabled resolutions and its run strategy.
292
+ **Projects** — `muggle-remote-organization-list` names the organizations an `organizationId` can make a project belong to. `muggle-remote-project-create`, `-list`, `-get`, `-update`, `-delete`, plus per-project rollups: `-test-results-summary-get`, `-test-runs-summary-get`, `-test-scripts-summary-get`. Pass `primaryResolution`, `compatibleResolutions` and `runStrategy` (`primaryOnly`, the default, `primaryFirst` or `allAtOnce`) to `-create` or `-update` to verify every test case at more than one viewport; `muggle-remote-project-display-resolutions-get` reads a lane's primary, compatible and enabled resolutions and its run strategy.
289
293
 
290
294
  | Use cases | Purpose |
291
295
  | :-------- | :------ |
292
296
  | `muggle-remote-use-case-list` / `-get` | Read use cases |
293
- | `muggle-remote-use-case-create` | Persist a fully-specified use case (no LLM) |
297
+ | `muggle-remote-use-case-create` / `-update` | Persist a fully-specified use case (no LLM) |
294
298
  | `muggle-remote-use-case-create-from-prompts` | Create from natural language |
295
299
  | `muggle-remote-use-case-prompt-preview` | Preview before creating |
296
300
  | `muggle-remote-use-case-update-from-prompt` | Regenerate from a new prompt |
301
+ | `muggle-remote-use-case-discovery-memory-get` | Candidates a site scan discovered |
297
302
  | `muggle-remote-use-case-candidates-approve` | Approve discovered candidates |
298
303
  | `muggle-remote-use-case-bulk-preview-submit` | Async batch preview (~50% cheaper) |
299
304
  | `muggle-remote-use-case-delete` | Delete (cascades to test cases + scripts) |
@@ -330,12 +335,15 @@ Bulk-preview submissions return a `jobId` immediately. Poll `muggle-remote-bulk-
330
335
  | `muggle-remote-workflow-start-test-script-generation-bulk` | Generate in bulk |
331
336
  | `muggle-remote-workflow-start-test-script-replay` | Replay one script |
332
337
  | `muggle-remote-workflow-start-test-script-replay-bulk` | Batch replay |
338
+ | `muggle-remote-workflow-start-prd-file-process` | Turn an uploaded requirements doc into use cases |
333
339
  | `muggle-remote-workflow-cancel-run` / `-cancel-runtime` | Cancel in flight |
334
- | `muggle-remote-wf-get-*` | Poll the latest run of each workflow type |
340
+ | `muggle-remote-workflow-get-website-scan-latest-run`, `muggle-remote-wf-get-*` | Poll the latest run of each workflow type |
341
+ | `muggle-remote-workflow-list-website-scan-runtimes`, `muggle-remote-wf-list-*` | List a workflow type's runtimes |
335
342
 
336
343
  | Local execution | Purpose |
337
344
  | :-------------- | :------ |
338
345
  | `muggle-local-check-status` | Browser runner status |
346
+ | `muggle-local-list-sessions` | Stored local run sessions |
339
347
  | `muggle-local-execute-test-generation` | Generate a script by driving the browser |
340
348
  | `muggle-local-execute-replay` | Replay an existing script |
341
349
  | `muggle-local-cancel-execution` | Cancel the active run |
@@ -344,13 +352,16 @@ Bulk-preview submissions return a `jobId` immediately. Poll `muggle-remote-bulk-
344
352
  | `muggle-local-test-script-list` / `-get` | Read locally cached scripts |
345
353
  | `muggle-local-last-host-*` / `-last-project-*` | Remember the host and project between runs |
346
354
  | `muggle-local-preferences-set` | Set harness preferences |
355
+ | `muggle-local-telemetry-skill-emit` / `-event-emit` | Usage telemetry the skills record |
347
356
  | `muggle-remote-local-run-upload` | Publish a local run to the cloud |
348
357
 
349
358
  **Pricing and billing** — `muggle-remote-pricing-get` reads the live plans, token price and token packages without sign-in. `muggle-remote-wallet-package-list` lists the packages the signed-in user can buy, with the `packageId` that `muggle-remote-wallet-topup` and `-wallet-auto-topup-update` take.
350
359
 
351
360
  **Reporting** — `muggle-remote-report-stats-summary-get`, `-cost-query`, `-final-generate` (PDF/HTML/Markdown), `-preferences-upsert`.
352
361
 
353
- **Administration** — `muggle-remote-prd-file-*` (upload and process requirements docs), `muggle-remote-secret-*` (credentials for test environments), `muggle-remote-wallet-*` (top-ups, payment methods, auto-topup), `muggle-remote-recommend-cicd-setup` / `-recommend-schedule`, `muggle-remote-user-feedback-*`.
362
+ **Administration** — `muggle-remote-prd-file-*` (upload, list and delete requirements docs), `muggle-remote-secret-*` (credentials for test environments, with `-secret-group-*` and `-secret-type-list`), `muggle-remote-wallet-*` (top-ups, payment methods, auto-topup), `muggle-remote-recommend-cicd-setup` / `-recommend-schedule`, `muggle-remote-user-feedback-*`.
363
+
364
+ **Resources** — `muggle://docs/agents` ([AGENTS.md](AGENTS.md)) and `muggle://docs/llms` ([llms.txt](llms.txt)), read from the installed package through `resources/list` and `resources/read`.
354
365
 
355
366
  ---
356
367
 
@@ -363,22 +374,23 @@ muggle serve --e2e # Cloud tools only (muggle-remote-*)
363
374
  muggle serve --local # Local tools only (muggle-local-*)
364
375
 
365
376
  # Setup and diagnostics
366
- muggle init # Guided setup; saves preferences, offers the CI check
377
+ muggle init [--json | --apply <file>] # Guided setup; saves preferences, offers the CI check
367
378
  muggle llm-source [--show] # Who supplies the model for local runs: Muggle AI credit, your Anthropic key, a local model, or your Claude Code
379
+ muggle llm-source --use <source> [--base-url <url> --model <name>] # Set it without prompting
368
380
  muggle setup [--force] # Download or update the browser runner
369
- muggle upgrade [--check] # Install the latest runner version
381
+ muggle upgrade [--check | --version <v>] [--force] # Install the latest (or a given) runner version
370
382
  muggle versions # List installed runner versions
371
- muggle cleanup [--dry-run] # Remove old versions and obsolete skills
383
+ muggle cleanup [--dry-run] [--all] [--skills] # Remove old versions and obsolete skills
372
384
  muggle doctor # Diagnose installation problems
373
385
 
374
386
  # Inspecting runs
375
387
  muggle run-view [runId] # A run's steps beside the frames they produced (newest run by default)
376
- muggle run-view --html # Render those frames as a self-contained page
388
+ muggle run-view --html [--out-dir <dir>] # Render those frames as a self-contained page
377
389
  muggle run-view --open # Render it and open it in the browser
378
- muggle checkout-freshness # Fetch the base and check this checkout is built on its latest commit
390
+ muggle checkout-freshness [--base <branch>] [--no-fetch] # Fetch the base and check this checkout is built on its latest commit
379
391
 
380
392
  # Authentication
381
- muggle login [--key-expiry 90d]
393
+ muggle login [--key-name <name>] [--key-expiry 30d|90d|1y|never]
382
394
  muggle logout
383
395
  muggle status
384
396
 
@@ -387,8 +399,23 @@ muggle pricing [--json] # Plans, token price and token packages from the l
387
399
 
388
400
  # Pull requests
389
401
  muggle ci-install [--force] # Add or update the walkthrough check in GitHub Actions
390
- muggle pr-walkthrough-check # Verify a PR's walkthrough comment is settled
391
- muggle build-pr-section # Render a PR evidence block from a report on stdin
402
+ muggle pr-walkthrough-check [--pr <n>] [--check-run] # Verify a PR's walkthrough comment is settled
403
+ muggle build-pr-section [--base <branch>] # Render a PR evidence block from a report on stdin
404
+ muggle e2e-plan [--pr <url>] # Post the test cases a local run is about to execute (JSON on stdin) to the walkthrough
405
+
406
+ # Shared local services, between agents in different checkouts
407
+ muggle stack claim [--wait <seconds>] # Claim the ports this checkout's E2E run needs
408
+ muggle stack check [--port <port>] # Confirm the stack still serves this checkout's claim
409
+ muggle stack release # Give up the lease and place in line
410
+ muggle stack status # Every lease, the line, and tracked services
411
+
412
+ # Session and PR-watcher supervision
413
+ muggle watch install [--uninstall] # Schedule the watch with the OS scheduler
414
+ muggle watch tick # Run one watch pass
415
+ muggle watch status # Last pass: sessions, processes, PR watches, findings
416
+ muggle watch reload-plugins [--dry-run] # Reload plugins across active Claude sessions
417
+ muggle watch register --slot <dir> # Opt a PR-watch slot into out-of-session recovery
418
+ muggle watch unregister --slot <dir> # Withdraw it
392
419
 
393
420
  muggle --version
394
421
  muggle --help
@@ -495,7 +522,7 @@ muggle login
495
522
 
496
523
  With both installed, muggle-ai-teams folds acceptance testing into each workflow step: test instructions written per slice at **Plan**, per-slice browser tests at **Build**, a full regression sweep at **Verify**, and results published and linked in the PR at **Ship**. Frontend slices get browser tests; backend-only slices are covered by unit tests, with the skip reasoned in writing.
497
524
 
498
- Want it hosted, with nothing to configure? [Muggle Test](https://www.muggletest.com).
525
+ Want it hosted, with nothing to configure? [Muggle AI](https://www.muggle-ai.com).
499
526
 
500
527
  ---
501
528
 
@@ -3,12 +3,12 @@ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
3
  import { ListToolsRequestSchema, CallToolRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema } from '@modelcontextprotocol/sdk/types.js';
4
4
  import { v4 } from 'uuid';
5
5
  import { z, ZodError } from 'zod';
6
- import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
7
6
  import * as fs from 'fs';
8
7
  import { readFileSync, existsSync, rmSync, readdirSync, mkdirSync, writeFileSync, renameSync, createWriteStream, statSync, readlinkSync, realpathSync, openSync, closeSync, writeSync, unlinkSync, copyFileSync, appendFileSync, readSync, fstatSync } from 'fs';
9
- import * as path from 'path';
10
- import { join, dirname, resolve, win32, basename } from 'path';
8
+ import * as path2 from 'path';
9
+ import path2__default, { join, dirname, resolve, win32, basename } from 'path';
11
10
  import { fileURLToPath, pathToFileURL } from 'url';
11
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
12
12
  import { Command } from 'commander';
13
13
  import axios from 'axios';
14
14
  import { randomUUID, createHash, X509Certificate, verify } from 'crypto';
@@ -21,6 +21,78 @@ import { readFile } from 'fs/promises';
21
21
  import { createVerifier, TUFError } from 'sigstore';
22
22
  import { setTimeout as setTimeout$1 } from 'timers/promises';
23
23
 
24
+ // src/server/docs-resources/constants.ts
25
+ var WORKS_PACKAGE_NAME = "@muggleai/works";
26
+ var AGENT_DOC_RESOURCES = [
27
+ {
28
+ uri: "muggle://docs/agents" /* Agents */,
29
+ name: "agents",
30
+ title: "Muggle Works agent guide (AGENTS.md)",
31
+ description: "How an AI coding agent installs, signs in to and uses Muggle Works: local and cloud flows, skills, pricing, results, common errors.",
32
+ mimeType: "text/markdown",
33
+ packageRelativePath: "AGENTS.md"
34
+ },
35
+ {
36
+ uri: "muggle://docs/llms" /* Llms */,
37
+ name: "llms",
38
+ title: "Muggle Works llms.txt",
39
+ description: "llmstxt.org index of the Muggle Works docs and key skill files.",
40
+ mimeType: "text/plain",
41
+ packageRelativePath: "llms.txt"
42
+ }
43
+ ];
44
+
45
+ // src/server/docs-resources/docs-resources.ts
46
+ var cachedWorksPackageRoot;
47
+ function resolveWorksPackageRoot(startDirectory) {
48
+ let candidateDirectory = path2__default.resolve(startDirectory);
49
+ for (; ; ) {
50
+ const packageJsonPath = path2__default.join(candidateDirectory, "package.json");
51
+ if (existsSync(packageJsonPath) && readPackageName(packageJsonPath) === WORKS_PACKAGE_NAME) {
52
+ return candidateDirectory;
53
+ }
54
+ const parentDirectory = path2__default.dirname(candidateDirectory);
55
+ if (parentDirectory === candidateDirectory) {
56
+ throw new Error(`No ${WORKS_PACKAGE_NAME} package root found at or above ${startDirectory}`);
57
+ }
58
+ candidateDirectory = parentDirectory;
59
+ }
60
+ }
61
+ function readPackageName(packageJsonPath) {
62
+ try {
63
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
64
+ return typeof packageJson.name === "string" ? packageJson.name : void 0;
65
+ } catch {
66
+ return void 0;
67
+ }
68
+ }
69
+ function getWorksPackageRoot() {
70
+ cachedWorksPackageRoot ??= resolveWorksPackageRoot(path2__default.dirname(fileURLToPath(import.meta.url)));
71
+ return cachedWorksPackageRoot;
72
+ }
73
+ function listAgentDocResources() {
74
+ return AGENT_DOC_RESOURCES.map((docResource) => ({
75
+ uri: docResource.uri,
76
+ name: docResource.name,
77
+ title: docResource.title,
78
+ description: docResource.description,
79
+ mimeType: docResource.mimeType
80
+ }));
81
+ }
82
+ function readAgentDocResource(uri) {
83
+ const docResource = AGENT_DOC_RESOURCES.find((candidate) => candidate.uri === uri);
84
+ if (!docResource) {
85
+ return void 0;
86
+ }
87
+ const docFilePath = path2__default.join(getWorksPackageRoot(), docResource.packageRelativePath);
88
+ return {
89
+ uri: docResource.uri,
90
+ mimeType: docResource.mimeType,
91
+ text: readFileSync(docFilePath, "utf-8")
92
+ };
93
+ }
94
+
95
+ // src/server/mcp-server.ts
24
96
  var registeredTools = [];
25
97
  function registerTools(tools) {
26
98
  registeredTools = [...registeredTools, ...tools];
@@ -255,8 +327,8 @@ function createUnifiedMcpServer(options) {
255
327
  errors: error.issues
256
328
  });
257
329
  const issueMessages = error.issues.slice(0, 3).map((issue) => {
258
- const path7 = issue.path.join(".");
259
- return path7 ? `'${path7}': ${issue.message}` : issue.message;
330
+ const path8 = issue.path.join(".");
331
+ return path8 ? `'${path8}': ${issue.message}` : issue.message;
260
332
  });
261
333
  return {
262
334
  content: [
@@ -290,12 +362,17 @@ function createUnifiedMcpServer(options) {
290
362
  }
291
363
  });
292
364
  server.setRequestHandler(ListResourcesRequestSchema, () => {
293
- logger9.debug("Listing resources");
294
- return { resources: [] };
365
+ const resources = listAgentDocResources();
366
+ logger9.debug("Listing resources", { count: resources.length });
367
+ return { resources };
295
368
  });
296
369
  server.setRequestHandler(ReadResourceRequestSchema, (request) => {
297
370
  const uri = request.params.uri;
298
371
  logger9.debug("Reading resource", { uri });
372
+ const agentDocContents = readAgentDocResource(uri);
373
+ if (agentDocContents) {
374
+ return { contents: [agentDocContents] };
375
+ }
299
376
  return {
300
377
  contents: [
301
378
  {
@@ -1501,12 +1578,12 @@ var WORKFLOW_WRITING_OUTCOMES = /* @__PURE__ */ new Set([
1501
1578
  "replaced" /* Replaced */
1502
1579
  ]);
1503
1580
  var CI_INSTALL_MESSAGES = {
1504
- ["installed" /* Installed */]: (path7) => `Wrote ${path7}
1581
+ ["installed" /* Installed */]: (path8) => `Wrote ${path8}
1505
1582
  Commit it, and every pull request here will owe a settled Muggle AI walkthrough comment.`,
1506
- ["updated" /* Updated */]: (path7) => `Updated ${path7} from an earlier Muggle release to the current workflow. Commit it.`,
1507
- ["already-current" /* AlreadyCurrent */]: (path7) => `${path7} is already the current workflow \u2014 nothing to do.`,
1508
- ["kept-customized" /* KeptCustomized */]: (path7) => `${path7} has been edited since Muggle wrote it \u2014 left untouched. Re-run with --force to replace it.`,
1509
- ["replaced" /* Replaced */]: (path7) => `Replaced ${path7} with the current workflow. Commit it.`,
1583
+ ["updated" /* Updated */]: (path8) => `Updated ${path8} from an earlier Muggle release to the current workflow. Commit it.`,
1584
+ ["already-current" /* AlreadyCurrent */]: (path8) => `${path8} is already the current workflow \u2014 nothing to do.`,
1585
+ ["kept-customized" /* KeptCustomized */]: (path8) => `${path8} has been edited since Muggle wrote it \u2014 left untouched. Re-run with --force to replace it.`,
1586
+ ["replaced" /* Replaced */]: (path8) => `Replaced ${path8} with the current workflow. Commit it.`,
1510
1587
  ["not-a-repository" /* NotARepository */]: () => "Not a git repository \u2014 run this from the repo that should carry the check."
1511
1588
  };
1512
1589
 
@@ -1548,27 +1625,27 @@ var CURSOR_SKILLS_DIR = ".cursor";
1548
1625
  var CURSOR_SKILLS_SUBDIR = "skills";
1549
1626
  var MUGGLE_SKILL_PREFIX = "muggle";
1550
1627
  function loadMuggleAliasSkills() {
1551
- let dir = path.dirname(fileURLToPath(import.meta.url));
1552
- while (dir !== path.dirname(dir)) {
1553
- const manifestPath = path.join(dir, "plugin", "skills", "_aliases.json");
1628
+ let dir = path2.dirname(fileURLToPath(import.meta.url));
1629
+ while (dir !== path2.dirname(dir)) {
1630
+ const manifestPath = path2.join(dir, "plugin", "skills", "_aliases.json");
1554
1631
  if (existsSync(manifestPath)) {
1555
1632
  const parsed = JSON.parse(readFileSync(manifestPath, "utf-8"));
1556
1633
  return new Set(parsed.aliases);
1557
1634
  }
1558
- dir = path.dirname(dir);
1635
+ dir = path2.dirname(dir);
1559
1636
  }
1560
1637
  throw new Error("Could not locate plugin/skills/_aliases.json relative to cleanup module");
1561
1638
  }
1562
1639
  var MUGGLE_ALIAS_SKILLS = loadMuggleAliasSkills();
1563
1640
  var INSTALL_MANIFEST_FILE = "install-manifest.json";
1564
1641
  function getElectronAppBaseDir() {
1565
- return path.dirname(getElectronAppDir());
1642
+ return path2.dirname(getElectronAppDir());
1566
1643
  }
1567
1644
  function getCursorSkillsDir() {
1568
- return path.join(homedir(), CURSOR_SKILLS_DIR, CURSOR_SKILLS_SUBDIR);
1645
+ return path2.join(homedir(), CURSOR_SKILLS_DIR, CURSOR_SKILLS_SUBDIR);
1569
1646
  }
1570
1647
  function getInstallManifestPath() {
1571
- return path.join(getDataDir2(), INSTALL_MANIFEST_FILE);
1648
+ return path2.join(getDataDir2(), INSTALL_MANIFEST_FILE);
1572
1649
  }
1573
1650
  function readInstallManifest() {
1574
1651
  const manifestPath = getInstallManifestPath();
@@ -1606,7 +1683,7 @@ function listObsoleteSkills() {
1606
1683
  if (manifestSkills.has(entry.name)) {
1607
1684
  continue;
1608
1685
  }
1609
- const skillPath = path.join(skillsDir, entry.name);
1686
+ const skillPath = path2.join(skillsDir, entry.name);
1610
1687
  const sizeBytes = getDirectorySize(skillPath);
1611
1688
  obsoleteSkills.push({
1612
1689
  name: entry.name,
@@ -1652,7 +1729,7 @@ function getDirectorySize(dirPath) {
1652
1729
  try {
1653
1730
  const entries = readdirSync(dirPath, { withFileTypes: true });
1654
1731
  for (const entry of entries) {
1655
- const fullPath = path.join(dirPath, entry.name);
1732
+ const fullPath = path2.join(dirPath, entry.name);
1656
1733
  if (entry.isDirectory()) {
1657
1734
  totalSize += getDirectorySize(fullPath);
1658
1735
  } else if (entry.isFile()) {
@@ -1726,7 +1803,7 @@ function resolveCanonicalPath(entryPath) {
1726
1803
  }
1727
1804
  function listInstalledVersions() {
1728
1805
  const baseDir = getElectronAppBaseDir();
1729
- const activeDirectoryName = path.basename(getElectronAppDir());
1806
+ const activeDirectoryName = path2.basename(getElectronAppDir());
1730
1807
  const versions = [];
1731
1808
  if (!existsSync(baseDir)) {
1732
1809
  return versions;
@@ -1738,7 +1815,7 @@ function listInstalledVersions() {
1738
1815
  if (!installDirName) {
1739
1816
  continue;
1740
1817
  }
1741
- const versionPath = path.join(baseDir, entry.name);
1818
+ const versionPath = path2.join(baseDir, entry.name);
1742
1819
  const installKind = resolveInstallKind(entry, versionPath);
1743
1820
  if (!installKind) {
1744
1821
  continue;
@@ -2020,7 +2097,7 @@ function verifyElectronAppInstallation() {
2020
2097
  const version = getElectronAppVersion();
2021
2098
  const versionDir = getElectronAppDir(version);
2022
2099
  const executablePath = resolveElectronAppExecutablePath({ installDir: versionDir, platformName: platform() });
2023
- const metadataPath = path.join(versionDir, ".install-metadata.json");
2100
+ const metadataPath = path2.join(versionDir, ".install-metadata.json");
2024
2101
  const installVerification = {
2025
2102
  valid: false,
2026
2103
  versionDir,
@@ -2762,8 +2839,8 @@ ${title}`, COLORS.bold + COLORS.cyan);
2762
2839
  function cmd(cmd2) {
2763
2840
  return colorize(cmd2, COLORS.green);
2764
2841
  }
2765
- function path3(path7) {
2766
- return colorize(path7, COLORS.yellow);
2842
+ function path4(path8) {
2843
+ return colorize(path8, COLORS.yellow);
2767
2844
  }
2768
2845
  function getHelpGuidance() {
2769
2846
  const lines = [
@@ -2785,7 +2862,7 @@ function getHelpGuidance() {
2785
2862
  "",
2786
2863
  ` ${colorize("Step 1:", COLORS.bold)} Configure your MCP client`,
2787
2864
  "",
2788
- ` For ${colorize("Cursor", COLORS.bold)}, edit ${path3("~/.cursor/mcp.json")}:`,
2865
+ ` For ${colorize("Cursor", COLORS.bold)}, edit ${path4("~/.cursor/mcp.json")}:`,
2789
2866
  "",
2790
2867
  ` ${colorize("{", COLORS.dim)}`,
2791
2868
  ` ${colorize('"mcpServers"', COLORS.yellow)}: {`,
@@ -2802,7 +2879,7 @@ function getHelpGuidance() {
2802
2879
  ` ${cmd("codex plugin add muggle@muggle-works")}`,
2803
2880
  "",
2804
2881
  ` then trust its hooks when Codex asks (or in ${cmd("/hooks")}). To register only the MCP server,`,
2805
- ` add this to ${path3("~/.codex/config.toml")} \u2014 local runs take minutes, so keep the timeout:`,
2882
+ ` add this to ${path4("~/.codex/config.toml")} \u2014 local runs take minutes, so keep the timeout:`,
2806
2883
  "",
2807
2884
  ` ${colorize("[mcp_servers.muggle]", COLORS.yellow)}`,
2808
2885
  ` ${colorize("command", COLORS.yellow)} = ${colorize('"muggle"', COLORS.green)}`,
@@ -2870,7 +2947,7 @@ function getHelpGuidance() {
2870
2947
  ` 2. ${colorize("Log in", COLORS.bold)} with your Muggle AI account`,
2871
2948
  ` 3. ${colorize("The tool call continues", COLORS.bold)} with your credentials`,
2872
2949
  "",
2873
- ` API keys are stored in ${path3("~/.muggle-ai/api-key.json")}`,
2950
+ ` API keys are stored in ${path4("~/.muggle-ai/api-key.json")}`,
2874
2951
  "",
2875
2952
  header("Available MCP Tools"),
2876
2953
  "",
@@ -2884,12 +2961,12 @@ function getHelpGuidance() {
2884
2961
  "",
2885
2962
  header("Data Directory"),
2886
2963
  "",
2887
- ` All data is stored in ${path3("~/.muggle-ai/")}:`,
2964
+ ` All data is stored in ${path4("~/.muggle-ai/")}:`,
2888
2965
  "",
2889
- ` ${path3("api-key.json")} Long-lived API key (auto-generated)`,
2890
- ` ${path3("projects/")} Local test projects`,
2891
- ` ${path3("sessions/")} Test execution sessions (read one with ${cmd("muggle run-view")})`,
2892
- ` ${path3("electron-app/")} Downloaded Electron app binaries`,
2966
+ ` ${path4("api-key.json")} Long-lived API key (auto-generated)`,
2967
+ ` ${path4("projects/")} Local test projects`,
2968
+ ` ${path4("sessions/")} Test execution sessions (read one with ${cmd("muggle run-view")})`,
2969
+ ` ${path4("electron-app/")} Downloaded Electron app binaries`,
2893
2970
  "",
2894
2971
  header("Troubleshooting"),
2895
2972
  "",
@@ -4454,7 +4531,7 @@ var INSTALL_MOVE_RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set(["EPERM", "EACC
4454
4531
 
4455
4532
  // src/cli/studio-install-staging.ts
4456
4533
  function getStudioStagingDir(versionDir) {
4457
- return path.join(getDataDir2(), STUDIO_STAGING_DIR_NAME, path.basename(versionDir));
4534
+ return path2.join(getDataDir2(), STUDIO_STAGING_DIR_NAME, path2.basename(versionDir));
4458
4535
  }
4459
4536
  function getRetiredInstallDir(stagingDir) {
4460
4537
  return `${stagingDir}${RETIRED_INSTALL_SUFFIX}`;
@@ -4491,7 +4568,7 @@ async function moveDirectory(fromDir, toDir) {
4491
4568
  }
4492
4569
  async function replaceStudioInstall(params) {
4493
4570
  const { stagingDir, versionDir } = params;
4494
- mkdirSync(path.dirname(versionDir), { recursive: true });
4571
+ mkdirSync(path2.dirname(versionDir), { recursive: true });
4495
4572
  if (!existsSync(versionDir)) {
4496
4573
  await moveDirectory(stagingDir, versionDir);
4497
4574
  return;
@@ -4623,8 +4700,8 @@ function writeInstallMetadata(params) {
4623
4700
  `, "utf-8");
4624
4701
  }
4625
4702
  function upsertCursorMcpConfig() {
4626
- const cursorMcpConfigPath = path.join(homedir(), ".cursor", "mcp.json");
4627
- const cursorDir = path.join(homedir(), ".cursor");
4703
+ const cursorMcpConfigPath = path2.join(homedir(), ".cursor", "mcp.json");
4704
+ const cursorDir = path2.join(homedir(), ".cursor");
4628
4705
  let config = {};
4629
4706
  if (existsSync(cursorMcpConfigPath)) {
4630
4707
  try {
@@ -4662,12 +4739,12 @@ async function setupCommand(options) {
4662
4739
  const projectPreferencesReconcile = reconcileProjectPreferences(process.cwd());
4663
4740
  if (projectPreferencesReconcile.outcome === "copiedToGlobal" /* CopiedToGlobal */) {
4664
4741
  console.log(
4665
- `Preferences are now user-level. Copied ${projectPreferencesReconcile.projectFilePath} to ${path.join(getDataDir2(), PREFERENCES_FILE_NAME)}.`
4742
+ `Preferences are now user-level. Copied ${projectPreferencesReconcile.projectFilePath} to ${path2.join(getDataDir2(), PREFERENCES_FILE_NAME)}.`
4666
4743
  );
4667
4744
  }
4668
4745
  if (isFirstRun()) {
4669
4746
  writePreferences(DEFAULT_PREFERENCES);
4670
- console.log(`Default preferences written to ${path.join(getDataDir2(), PREFERENCES_FILE_NAME)}`);
4747
+ console.log(`Default preferences written to ${path2.join(getDataDir2(), PREFERENCES_FILE_NAME)}`);
4671
4748
  console.log("You can customize them anytime by editing the file or telling the agent to change a preference.");
4672
4749
  }
4673
4750
  if (!options.force && isElectronAppInstalled()) {
@@ -4685,7 +4762,7 @@ async function setupCommand(options) {
4685
4762
  const stagingDir = getStudioStagingDir(versionDir);
4686
4763
  try {
4687
4764
  prepareStudioStagingDir({ stagingDir, versionDir });
4688
- const tempFile = path.join(stagingDir, binaryName);
4765
+ const tempFile = path2.join(stagingDir, binaryName);
4689
4766
  await downloadWithRetry(downloadUrl, tempFile);
4690
4767
  console.log("Download complete, verifying integrity...");
4691
4768
  const checksums = getElectronAppChecksums();
@@ -4746,7 +4823,7 @@ The archive may be corrupted or in an unexpected format.`
4746
4823
  );
4747
4824
  }
4748
4825
  const executableChecksum = await calculateFileChecksum(executablePath);
4749
- const metadataPath = path.join(stagingDir, INSTALL_METADATA_FILE_NAME);
4826
+ const metadataPath = path2.join(stagingDir, INSTALL_METADATA_FILE_NAME);
4750
4827
  writeInstallMetadata({
4751
4828
  metadataPath,
4752
4829
  version,
@@ -4977,7 +5054,7 @@ function getBinaryName2() {
4977
5054
  }
4978
5055
  }
4979
5056
  function getVersionOverridePath() {
4980
- return path.join(getDataDir2(), VERSION_OVERRIDE_FILE);
5057
+ return path2.join(getDataDir2(), VERSION_OVERRIDE_FILE);
4981
5058
  }
4982
5059
  function getEffectiveElectronAppVersion() {
4983
5060
  const overridePath = getVersionOverridePath();
@@ -5135,7 +5212,7 @@ async function stageVerifiedDownload(params) {
5135
5212
  if (!response.ok) {
5136
5213
  throw new Error(`Download failed: ${response.status} ${response.statusText}`);
5137
5214
  }
5138
- const tempFile = path.join(stagingDir, binaryName);
5215
+ const tempFile = path2.join(stagingDir, binaryName);
5139
5216
  const fileStream = createWriteStream(tempFile);
5140
5217
  if (!response.body) {
5141
5218
  throw new Error("No response body");
@@ -5191,7 +5268,7 @@ The archive may be corrupted or in an unexpected format.`
5191
5268
  );
5192
5269
  }
5193
5270
  const executableChecksum = await calculateFileChecksum(executablePath);
5194
- const metadataPath = path.join(stagingDir, INSTALL_METADATA_FILE_NAME2);
5271
+ const metadataPath = path2.join(stagingDir, INSTALL_METADATA_FILE_NAME2);
5195
5272
  writeInstallMetadata2({
5196
5273
  metadataPath,
5197
5274
  version,
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { runCli } from './chunk-FSKNUNSD.js';
2
+ import { runCli } from './chunk-XQQ2VU45.js';
3
3
  import './chunk-JK62L5EO.js';
4
4
 
5
5
  // src/cli/main.ts
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-FSKNUNSD.js';
1
+ export { src_exports as commands, createUnifiedMcpServer, server_exports as server } from './chunk-XQQ2VU45.js';
2
2
  export { createChildLogger, e2e_exports as e2e, getConfig, getLocalQaTools, getLogger, getQaTools, local_exports as localQa, mcp_exports as mcp, e2e_exports as qa, src_exports as shared } from './chunk-JK62L5EO.js';
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "muggle",
3
- "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
4
- "version": "5.35.0-staging.325",
3
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
4
+ "version": "5.35.0-staging.327",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
8
8
  },
9
- "homepage": "https://www.muggletest.com",
9
+ "homepage": "https://www.muggle-ai.com",
10
10
  "repository": "https://github.com/multiplex-ai/muggle-ai-works",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.325",
7
+ "@muggleai/works@5.35.0-staging.327",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0-staging.325",
4
- "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
3
+ "version": "5.35.0-staging.327",
4
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
8
8
  },
9
- "homepage": "https://www.muggletest.com",
9
+ "homepage": "https://www.muggle-ai.com",
10
10
  "repository": "https://github.com/multiplex-ai/muggle-ai-works",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "Read",
37
37
  "Write"
38
38
  ],
39
- "websiteURL": "https://www.muggletest.com",
39
+ "websiteURL": "https://www.muggle-ai.com",
40
40
  "defaultPrompt": [
41
41
  "Use $muggle:muggle-test to test the user flows my changes affect",
42
42
  "Use $muggle:muggle-do to build this and open a PR with browser proof",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
- "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
- "version": "5.35.0-staging.325",
4
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
+ "version": "5.35.0-staging.327",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
9
9
  },
10
- "homepage": "https://www.muggletest.com",
10
+ "homepage": "https://www.muggle-ai.com",
11
11
  "repository": "https://github.com/multiplex-ai/muggle-ai-works",
12
12
  "license": "Apache-2.0",
13
13
  "keywords": [
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.325",
7
+ "@muggleai/works@5.35.0-staging.327",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -86,7 +86,7 @@ codex plugin remove muggle@muggle-works # Codex
86
86
 
87
87
  ## Links
88
88
 
89
- - [MuggleTest](https://www.muggletest.com)
89
+ - [Muggle AI](https://www.muggle-ai.com)
90
90
  - [GitHub](https://github.com/multiplex-ai/muggle-ai-works)
91
91
  ## License
92
92
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "release": "5.35.0-staging.325",
3
- "buildId": "run-325-1",
4
- "commitSha": "af2b92a326b9abf3b2effe09e398d482e9c9cd1f",
5
- "buildTime": "2026-11-10T21:35:25Z",
2
+ "release": "5.35.0-staging.327",
3
+ "buildId": "run-327-1",
4
+ "commitSha": "3162d721a3d25f687ab53afb59245c9bf9c41746",
5
+ "buildTime": "2026-11-10T23:25:16Z",
6
6
  "serviceName": "muggle-ai-works-mcp"
7
7
  }
package/llms.txt ADDED
@@ -0,0 +1,32 @@
1
+ # Muggle Works
2
+
3
+ > Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.
4
+
5
+ Muggle Works is the npm package `@muggleai/works` (CLI `muggle`) from Muggle AI. It ships an MCP server (`muggle serve`, stdio, 130 tools: `muggle-remote-*` for cloud projects, test cases, scripts and workflows; `muggle-local-*` for real-browser runs on this machine) and a plugin of skills for Claude Code (`muggle`), Codex and Cursor. Install with `npm install -g @muggleai/works`. Prices change: read them with `muggle pricing` or the `muggle-remote-pricing-get` MCP tool, which needs no sign-in.
6
+
7
+ ## Agent guide
8
+
9
+ - [AGENTS.md](https://raw.githubusercontent.com/multiplex-ai/muggle-ai-works/master/AGENTS.md): install, sign-in, local and cloud flows, skills, pricing, results, common errors
10
+ - [Quick start](https://github.com/multiplex-ai/muggle-ai-works#quick-start): install per client, setup, first run
11
+ - [Commands](https://github.com/multiplex-ai/muggle-ai-works#commands): every slash-command skill and its alias
12
+ - [MCP tool reference](https://github.com/multiplex-ai/muggle-ai-works#mcp-tool-reference): the 130 MCP tools by area
13
+ - [CLI reference](https://github.com/multiplex-ai/muggle-ai-works#cli-reference): every `muggle` command
14
+ - [Architecture](https://github.com/multiplex-ai/muggle-ai-works#architecture): entity model, execution flow, data directory
15
+ - [Troubleshooting](https://github.com/multiplex-ai/muggle-ai-works#troubleshooting): login, runner and credential fixes
16
+
17
+ ## Skills
18
+
19
+ - [muggle-test](https://github.com/multiplex-ai/muggle-ai-works/blob/master/plugin/skills/muggle-test/SKILL.md): test the user flows a diff, branch or PR affects, before it ships
20
+ - [muggle-test-feature-local](https://github.com/multiplex-ai/muggle-ai-works/blob/master/plugin/skills/muggle-test-feature-local/SKILL.md): real-browser test of one flow on localhost
21
+ - [muggle-do](https://github.com/multiplex-ai/muggle-ai-works/blob/master/plugin/skills/muggle-do/SKILL.md): request to opened pull request, with browser proof
22
+ - [muggle-pr-visual-walkthrough](https://github.com/multiplex-ai/muggle-ai-works/blob/master/plugin/skills/muggle-pr-visual-walkthrough/SKILL.md): post screenshots and a pass/fail summary to a PR
23
+ - [muggle-test-import](https://github.com/multiplex-ai/muggle-ai-works/blob/master/plugin/skills/muggle-test-import/SKILL.md): import Playwright, Cypress, Gherkin or PRDs as test cases
24
+ - [muggle-browser-task](https://github.com/multiplex-ai/muggle-ai-works/blob/master/plugin/skills/muggle-browser-task/SKILL.md): carry out a real action on a website from plain English
25
+ - [muggle-status](https://github.com/multiplex-ai/muggle-ai-works/blob/master/plugin/skills/muggle-status/SKILL.md): diagnose the install
26
+
27
+ ## Optional
28
+
29
+ - [Configuration](https://github.com/multiplex-ai/muggle-ai-works#configuration): environment target, multi-repo cycles, preferences
30
+ - [Codex](https://github.com/multiplex-ai/muggle-ai-works#codex): what differs under Codex
31
+ - [Pull-request walkthrough check](https://github.com/multiplex-ai/muggle-ai-works#the-pull-request-walkthrough-check): the GitHub Actions check
32
+ - [Muggle AI](https://www.muggle-ai.com): the hosted product
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@muggleai/works",
3
3
  "mcpName": "io.github.multiplex-ai/muggle",
4
- "version": "5.35.0-staging.325",
5
- "description": "13 years of Microsoft hyperscale engineering, packaged as a harness for your AI coding agent.",
4
+ "version": "5.35.0-staging.327",
5
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
@@ -13,6 +13,8 @@
13
13
  "plugin",
14
14
  "bin/muggle.js",
15
15
  ".claude-plugin/marketplace.json",
16
+ "AGENTS.md",
17
+ "llms.txt",
16
18
  "scripts/postinstall.mjs",
17
19
  "scripts/post-install-guide",
18
20
  "scripts/claude-marketplace-sync.mjs",
@@ -121,16 +123,24 @@
121
123
  },
122
124
  "keywords": [
123
125
  "mcp",
126
+ "mcp-server",
124
127
  "model-context-protocol",
125
128
  "muggle-ai",
129
+ "acceptance-testing",
130
+ "acceptance-test-agent",
131
+ "e2e",
126
132
  "e2e-testing",
127
- "testing",
128
- "automation",
129
- "localhost",
133
+ "browser-automation",
134
+ "real-browser",
135
+ "pull-request",
136
+ "coding-agent",
137
+ "ai-agent",
130
138
  "ai-coding",
131
- "user-experience",
132
- "cursor",
133
139
  "claude-code",
140
+ "claude-code-plugin",
141
+ "codex",
142
+ "cursor",
143
+ "localhost",
134
144
  "vibe-coding"
135
145
  ],
136
146
  "author": "Muggle AI",
@@ -140,5 +150,5 @@
140
150
  "type": "git",
141
151
  "url": "git+https://github.com/multiplex-ai/muggle-ai-works.git"
142
152
  },
143
- "homepage": "https://www.muggle-ai.com/muggleTestV0/docs/mcp/mcp-overview"
153
+ "homepage": "https://github.com/multiplex-ai/muggle-ai-works#readme"
144
154
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "muggle",
3
- "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
4
- "version": "5.35.0-staging.325",
3
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
4
+ "version": "5.35.0-staging.327",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
8
8
  },
9
- "homepage": "https://www.muggletest.com",
9
+ "homepage": "https://www.muggle-ai.com",
10
10
  "repository": "https://github.com/multiplex-ai/muggle-ai-works",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.325",
7
+ "@muggleai/works@5.35.0-staging.327",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.35.0-staging.325",
4
- "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
3
+ "version": "5.35.0-staging.327",
4
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
8
8
  },
9
- "homepage": "https://www.muggletest.com",
9
+ "homepage": "https://www.muggle-ai.com",
10
10
  "repository": "https://github.com/multiplex-ai/muggle-ai-works",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "Read",
37
37
  "Write"
38
38
  ],
39
- "websiteURL": "https://www.muggletest.com",
39
+ "websiteURL": "https://www.muggle-ai.com",
40
40
  "defaultPrompt": [
41
41
  "Use $muggle:muggle-test to test the user flows my changes affect",
42
42
  "Use $muggle:muggle-do to build this and open a PR with browser proof",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
- "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
- "version": "5.35.0-staging.325",
4
+ "description": "Acceptance test agent for coding agents: real-browser tests, with screenshots on the PR.",
5
+ "version": "5.35.0-staging.327",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
9
9
  },
10
- "homepage": "https://www.muggletest.com",
10
+ "homepage": "https://www.muggle-ai.com",
11
11
  "repository": "https://github.com/multiplex-ai/muggle-ai-works",
12
12
  "license": "Apache-2.0",
13
13
  "keywords": [
package/plugin/.mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.35.0-staging.325",
7
+ "@muggleai/works@5.35.0-staging.327",
8
8
  "serve"
9
9
  ]
10
10
  }
package/plugin/README.md CHANGED
@@ -86,7 +86,7 @@ codex plugin remove muggle@muggle-works # Codex
86
86
 
87
87
  ## Links
88
88
 
89
- - [MuggleTest](https://www.muggletest.com)
89
+ - [Muggle AI](https://www.muggle-ai.com)
90
90
  - [GitHub](https://github.com/multiplex-ai/muggle-ai-works)
91
91
  ## License
92
92