Documentation
¶
Overview ¶
Package mcp implements a Model Context Protocol server (stdio transport, newline-delimited JSON-RPC 2.0) that exposes the Sweef engine as agent tools. This is what an AI client (Claude Desktop, Claude Code, Cursor, custom LLM loops) talks to: `sweef mcp` runs the engine in-process, so there is no browser process and no IPC hop between the protocol and the page.
Tool outputs are shaped for LLM context windows (see format.go): plain text instead of JSON where the JSON adds nothing, compact log lines, truncation with a continuation offset, and after an action the snapshot lines that changed since the agent's last snapshot of the page.
Index ¶
Constants ¶
const ( PROTOCOL_VERSION = "2025-06-18" SERVER_NAME = "sweef-browser" SERVER_VERSION = "0.2.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.