portal-mcp

v0.0.4
@darwinium/portal-mcp Checked 4 days ago Published 1 month ago

Darwinium Portal MCP — local stdio MCP server bridging Claude Desktop / Claude Code to the active *.darwinium.com tab via a Chrome MV3 extension.

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

get_page_commands

Lists page commands available on the active Darwinium portal tab. Returns an array of { name, description, args, _pageId }. Call this FIRST in any session to discover what the active tab can do. The list is dynamic — it changes per page; always call this before invoking run_page_command.

run_page_command

Invokes a named page command on the active Darwinium portal tab with the given arguments. If `expected_page_id` is supplied, the binary checks the live page id first and returns a navigation-error on mismatch so the caller can retry against the new page. Use the exact `name` returned by get_page_commands.

ParameterTypeDescription
name *stringThe page-command name as returned by get_page_commands.
argsobjectArguments to pass to the command (object; shape per the command's args schema).
expected_page_idstringOptional: reject if the live page id no longer matches this value.

get_context

Returns combined static Darwinium instructions + current page Viper context for the active tab. Capped server-side at 50KB; if the payload would exceed the cap, lower-priority fields are dropped and a `_truncated` flag is set on the response.