Rove

v0.1.0
io.github.rove0752-byte/rove Checked 2 days ago Published 1 month ago

Read public web pages and run goal-based browsing tasks with Rove's sandboxed browser agent.

packages/mcp is a Model Context Protocol server that lets MCP clients such as Claude Desktop, Claude Code and Cursor call Rove as a tool. It is a thin client over the Rove HTTP API (/v1/extract, /v1/agent/run, /v1/agent/runs/:id/stream) and does not run a browser itself. Diagnostics go to stderr; stdout carries only MCP protocol messages. rove_extract Read one public page in Rove's sandboxed browser (JavaScript disabled).

Summary extracted from the README.

Rove MCP server (@rovezi/mcp)

packages/mcp is a Model Context Protocol server that lets MCP clients such as Claude Desktop, Claude Code and Cursor call Rove as a tool. It is a thin client over the Rove HTTP API (/v1/extract, /v1/agent/run, /v1/agent/runs/:id/stream) and does not run a browser itself.

Status: developer preview. Install with npx -y @rovezi/mcp. Use a per-user API key (rove_live_…, see API keys); each key has its own monthly run allowance and can be revoked. Never hand out the shared operator key.

Transport and configuration

  • Transport: stdio (run by the MCP client as a subprocess). Streamable HTTP (/mcp on the eve deployment) is planned for a follow-up.
  • ROVE_API_KEY (required): the server exits at startup with a clear error if it is missing, unless ROVE_ALLOW_ANONYMOUS=1 is set (anonymous trial limits then apply). The key is sent as Authorization: Bearer <key>. It is never logged, and it is removed from any error text before that text reaches the model.
  • ROVE_BASE_URL (optional): defaults to https://www.rovezi.com. Use the final address: the server does not follow redirects (they would drop the API key) and reports a redirect error instead. For local development, use the port eve dev prints, e.g. http://localhost:3000.

Diagnostics go to stderr; stdout carries only MCP protocol messages.

Tools

rove_extract

Read one public page in Rove's sandboxed browser (JavaScript disabled).

Input Type Notes
url string (URL, ≤ 2048) required, http or https only
includeScreenshot boolean, default false adds the PNG as an MCP image block

Returns a text block (# title + page text) and structuredContent with the API's extract result (url, title, text, links, timestamp, screenshotSha256, …). The screenshot bytes are left out of the structured output. Annotated readOnlyHint: true.

rove_run_task

Run Rove's goal-based browsing agent from a starting URL.

Input Type Notes
url string (URL, ≤ 2048) required, start page, http or https only
task string (3–3000) required, the goal
outputFormat string (≤ 2000) optional, e.g. "JSON with name, price"; the API defaults to JSON
wait boolean, default true false returns right away with the runId
timeoutSec integer 1–120, default 90 how long to wait on the run stream

structuredContent:

{ "runId": "…", "sessionId": "…", "status": "completed" | "partial" | "waiting" | "failed" | "running",
  "answer": { /* parsed JSON when possible, otherwise the text */ },
  "pages": [{ "url": "…", "title": "…" }],
  "error": { "code": "…", "message": "…" } }   // only when failed
  • completed: the final message.completed answer (fenced JSON is parsed).
  • waiting: the agent paused (for example it needs more input) rather than finished; answer holds its last message.
  • running: the timeout passed or wait=false. Keep the runId and call rove_get_run later.
  • failed: returned with isError: true.

Each run uses one unit of the caller's quota.

rove_get_run

Look up a run started earlier (GET /v1/agent/runs/:id). Only runs started with the same per-user API key are visible.

Input Type Notes
runId string ([A-Za-z0-9_-]{8,80}) required, from rove_run_task

Returns status, answer (parsed JSON when possible, otherwise the text, up to 16,000 characters; null until finished), createdAt, finishedAt and error when failed (isError: true).

Errors

API and network failures become tool results with isError: true and structuredContent.error = { code, message }. When the API sends a code (for example host_not_allowed), it is used as is. Otherwise HTTP statuses map to: 401 unauthorized, 402 quota_exceeded, 404 not_found, 422 invalid_request, 429 rate_limited (only one extraction runs at a time), 503 unavailable. A failed connection gives network_error; a non-stream request with no response within 60 s gives timeout; a redirect from the API gives redirect.

Client setup

Install from npm (Node 22.6+). You need a per-user Rove API key (rove_live_…).

Claude Desktop (claude_desktop_config.json, see examples/claude-desktop.json):

{
  "mcpServers": {
    "rove": {
      "command": "npx",
      "args": ["-y", "@rovezi/mcp"],
      "env": { "ROVE_API_KEY": "YOUR_ROVE_API_KEY" }
    }
  }
}

Cursor (.cursor/mcp.json in a project or ~/.cursor/mcp.json globally, see examples/cursor-mcp.json): the same mcpServers block as above.

Claude Code:

claude mcp add rove -e ROVE_API_KEY=YOUR_ROVE_API_KEY -- npx -y @rovezi/mcp

Check it with the MCP Inspector:

ROVE_API_KEY=… npx @modelcontextprotocol/inspector npx -y @rovezi/mcp

From source

git clone <rove repo> rove && cd rove
npm ci
npm run build -w @rovezi/mcp     # writes packages/mcp/dist/index.js

Then use node /absolute/path/to/rove/packages/mcp/dist/index.js as the command.

Publishing (maintainers)

  1. cd packages/mcp && npm test && npm pack --dry-run (the prepack script builds dist/).
  2. npm publish --access public (needs an npm account that owns the @rovezi scope).
  3. Registry listing: mcp-publisher login github then mcp-publisher publish from packages/mcp (uses server.json; mcpName in package.json must match).

License

MIT, see LICENSE.

Development

  • Source: packages/mcp/src (client.ts HTTP + NDJSON, server.ts tools, index.ts stdio entry).
  • Tests: packages/mcp/tests, mocked fetch with an in-memory MCP client. They run as part of the root npm test.
  • Typecheck: the root npm run typecheck also checks packages/mcp.
  • The package is excluded from the eve/Vercel deployment by .vercelignore (only its package.json is kept, so the root lockfile still installs).