Authorization notice. Vitre is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Credentials. If the agent reads cookies or drives a logged-in session, it can access session data such as HttpOnly cookies, so limit what the page can expose.
Who it is forAn AI or platform engineer who wants an agent to operate a page in the app without writing Kotlin for each task.
The problemAn agent that has never seen a page needs a safe, readable way to act on it and see what each action returned.
The outcomeAn agent session where each page action appears as an MCP tools/call with the JSON response, and the page stays under control of the app.
What you need first
- Kotlin 2.3.10 Multiplatform project (Android minSdk 24, iOS 15.0+, or desktop with JetBrains Runtime and JCEF 21)
- Maven Central access, which is the only setup needed for the published artifacts
- Compose Multiplatform if you want the optional vitre-compose UI layer
Steps
- Add vitre-mcp and vitre-core to your commonMain dependencies from Maven Central.
- Start the in-process MCP transport that vitre-mcp provides in your app.
- Connect your MCP-capable model client to that transport.
- Ask the agent for a task on the page, then review each tools/call result it returns.
Prompt for your agent
Using the vitre-mcp module in <project-path>, connect an MCP client to the in-process Vitre server and ask it to <task-on-page>. Expected output: a sequence of tools/call requests and JSON results, ending in a final answer. Verify that each step's JSON result matches the actual page state shown in the WebView.
Caveat. The README says the Koog tools are a separate delivery, and this MCP path is an in-process transport, so wire up your own model client rather than expecting a hosted service.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ggoggam/vitre and "Let an LLM agent drive an embedded page through MCP tools"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer