mcp: add fetchable agent-setup page (AGENT_SETUP.md)#104
Conversation
One-page, agent-facing install instructions in the style of developers.cloudflare.com/agent-setup/prompt.md: a user tells their agent to fetch the raw URL and follow it. Covers prerequisites, per-client registration (Claude Code, Codex, Cursor, Claude Desktop, VS Code, generic stdio), a verification step with expected output, env configuration, and troubleshooting for the known failure modes. Linked from mcp/README.md and the root README agent section.
… hardening - Claude Desktop: require absolute uvx path (GUI apps miss the shell PATH, bare 'uvx' fails with spawn ENOENT) - Troubleshooting: map errors to their real causes; 'Could not find a Chromium executable' vs 'did not expose a CDP endpoint' (missing system libs in containers; document install-deps), and add the Linux arm64 bundled-download limit with the RUSTWRIGHT_MCP_EXECUTABLE escape hatch - Windows: -ExecutionPolicy ByPass on the uv installer, note that multi-line commands are POSIX-shell, add winget/brew alternatives - uv PATH: tell agents to source ~/.local/bin/env when uvx is not found right after install - Codex: startup_timeout_sec=120 (cold uvx git build exceeds the 10s default) - ALLOW_EVAL: correct accepted values (1/true/yes) and add leave-unset guidance for autonomous readers - Preamble: verify the fetched URL points at Skyvern-AI/rustwright before running anything - Raw URLs use /HEAD/ instead of /main/ (survives default-branch rename) - Local-browser prerequisite and config table no longer claim completeness (stays correct when remote CDP attach lands) - Completion report is descriptive, not a hardcoded 'headless' template
|
Pushed a self-review pass (a3f6126) after a thorough audit of the page. Fixes, most important first:
|
…etup # Conflicts: # mcp/README.md
…ndows paths - Ship RUSTWRIGHT_MCP_ALLOW_EVAL=0 in every registration config and correct the configuration table: page-world evaluation is on by default when unset (the previous wording implied the opposite); verify browser_evaluate is absent in Step 3 and report eval status to the user - Codex CLI: register via 'codex mcp add' (verified flags), note config.toml is global scope, keep startup_timeout_sec block - Troubleshooting: split Chromium launch failures into process-exited (missing libraries -> install-deps) and launch-timeout (slow machine) cases to match the actual error strings; align stale-ref wording with the server message - Step 3: restart handoff with a paste-ready verification prompt for clients that load MCP servers only on restart - Claude Desktop: Windows equivalents for locating uvx and JSON backslash escaping; note that install sources are unpinned with a pin syntax for reproducible installs - README: move the agent-setup pointer from the CLI section into the MCP server section (merge artifact) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…nd system-change guardrails Adopted from a second review round (security + factual lenses): - Quote only the invariant part of the process-exited launch error so agents can match it verbatim (the emitted string embeds a real exit status) - ALLOW_EVAL row: name the browser_evaluate tool rather than page-world evaluation broadly (the server still runs its own internal page scripts), note values are case-insensitive - Ask the user before the uv installer script or install-deps (apt-get/sudo) - Merge the rustwright entry into existing client configs instead of replacing files; Cursor gets the same project-scope-first guidance as the other clients - Pin note no longer claims full reproducibility (deps still resolve at install time); README claim softened to installs + walks through verification Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Reviewed this in depth (two independent review rounds — a correctness/security pass and a factual-accuracy pass verifying every claim against the code) and pushed fixes on top rather than round-tripping comments. Great page overall — almost every command, error string, and platform claim checked out exactly against the source, and it is clear it was actually exercised. What the two follow-up commits change: Round 1 (
Round 2 (
One open product question deliberately not changed here: the configs inherit the server's default |
suchintan
left a comment
There was a problem hiding this comment.
Two full review rounds (details in the thread comment); fixes pushed and re-verified. Approving.
|
Synced to rustwright-cloud: https://github.com/Skyvern-AI/rustwright-cloud/pull/113 |
Adds a one-page, agent-facing setup document in the style of Cloudflare's agent-setup prompt: a user tells their coding agent
and the agent installs, registers, and verifies the Rustwright MCP server itself.
Contents
RUSTWRIGHT_MCP_CHANNEL=chrome, or the bundled Chromium)--variadic-flag gotcha called out), Codex CLI (config.toml), Cursor, Claude Desktop, VS Code agent mode, and a generic stdio fallbackVerified
claude mcp addregistration, thepython -m rustwrightCLI exposure through uvx, and the example.com verification snapshot content