opencli-mcp

v0.0.31
opencli-mcp Checked 3 days ago Published 1 month ago

Chrome-backed MCP browser service with optional site adapters.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

doctor Doctor

Runtime status: browser connection, extension features and protocol warning (if versions differ), site/command counts, sessions. A protocol warning does not block browser commands.

session_finalize Finalize session tabs

End-of-task cleanup. Agent-created tabs not listed in keep are closed; deliverable tabs leave the group and stay open; handoff tabs stay in the group for a later turn. Claimed user tabs are only released.

ParameterTypeDescription
keeparray

site_run Run a site command

Run one site command. args must match the args list from sites_search. Invalid args return invalid_args with details.expected. Valid commands execute directly, including writes.

ParameterTypeDescription
command *string
site *string
argsobject

docs_get Read a doc

No name: compact REPL quickstart and available topics. Pass name for a topic; use member with api-reference for one class or method, e.g. Tab.act or Tab.network.

ParameterTypeDescription
memberstring
namestring

js Browser JavaScript REPL

Primary browser workspace. Persistent Node REPL: variables, functions, classes and top-level await; use let for reusable bindings. Pre-bound browser, sites, tools, recon. Start: let tab = await browser.tabs.new("https://example.com"); await tab.observe(). observe returns a compact action map, not HTML; follow nextCursor with tab.observe({cursor}) for remaining captured pages, or scope with {target:{selector:"#main"}}. Read document text with tab.read(). Reuse tab across calls; await tab.act({action:"click", target:{ref:"..."}}) with an observed ref, then observe. Batch determined steps and ret…

ParameterTypeDescription
code *string
maxCharsintegerresult text budget; retain large data in a variable and return only relevant parts
timeoutMsinteger

js_reset Reset JavaScript session

Stop JavaScript, clear bindings and close explicit subscriptions; browser tabs stay open. pendingCalls reports already dispatched API operations that may still complete. Wait until doctor shows javascript.pendingCalls:0 before more js; inspect the page before retrying actions.