mirror of
https://github.com/vercel-labs/agent-browser.git
synced 2026-11-22 10:57:09 +08:00
* feat(mcp): run one MCP tool with `mcp call` Runs a single tools/call without a stdio session and prints the result as JSON with the agent-browser version, so runtimes that cannot keep a process open between tool calls can use the MCP tool surface. * feat(sandbox): ship the MCP tool catalog as mcp-tools.json Generated from the CLI's tool definitions with their profiles. A Rust test fails while the committed file is out of date; pnpm mcp-tools:sync rewrites it. * feat(eve): build the extension's tools from the MCP tool catalog Each tool takes its name, description and input schema from @agent-browser/sandbox/mcp-tools.json and runs one `agent-browser mcp call` per call, so nothing outlives the tool call. The 21 hand-written tools are replaced by 42 catalog tools; screenshot inlining and the snapshot CDP retry are kept. * feat(eve): keep non-core tools deferred and hide extraArgs from the model The listed tool surface goes back to its previous size: 28 core tools listed, 14 found through eve__search, and no repeated extraArgs schema. * fix(eve): keep close to this session and update the tool names in instructions close no longer exposes `all`, which closed every session in the sandbox, and the instructions no longer point the model at the removed navigate and wait_for tools. A test checks every tool the instructions name exists. * fix(mcp): reject global flags carried in tool arguments The CLI reads global flags anywhere in argv, so a tool value such as a selector could set --allowed-domains and override the server or caller allowlist. Error output from mcp call now carries _meta.agentBrowserVersion. * fix(eve): replace a stale agent-browser and show the version hint first The install probe now reads the CLI version and reinstalls on a minor mismatch instead of keeping any existing binary. The version check runs before an invalid-call error, so a mismatched CLI gets the install hint. * docs(eve): use the catalog tool names * test(docs): accept the eve tool rename in the route fixtures * fix(eve): check the version once after installing A custom installSpec or binary on another minor now fails with a config error instead of reinstalling on every call, and a reinstall is probed once before the tool runs.