easy-ui-mcp AGENTS.md

easy-ui-mcp AGENTS.md is an instructions file for Codex, OpenCode from thunderkds/easy-ui-mcp. It costs 3,962 tokens per session, scanned B, original, MIT.

Developer instructions for easy-ui-mcp, a Dockerized server that provides browser automation over HTTP/SSE. An AI coding assistant calls its Playwright tools step by step, while the server records each test and creates an HTML report with screenshots.

In plain words
What is it for?
Running browser-based UI tests, connecting Claude Code or another agent, understanding the server architecture, and adding or changing its automation tools.
Why use it?
They explain how the project works and how to extend or connect it without requiring the server itself to make decisions. Session boundaries keep each browser test's actions together in one report.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/thunderkds/easy-ui-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/thunderkds/easy-ui-mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for easy-ui-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/thunderkds/easy-ui-mcp/agents-md.svg)](https://agentmods.dev/instructions/thunderkds/easy-ui-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/thunderkds/easy-ui-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/thunderkds/easy-ui-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,962 This file is loaded in full into every session.
When invoked 3,962 The same file — it is already loaded in full.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03962 $0.03962
Opus 5 $0.01981 $0.01981
Sonnet 5 $0.00792 $0.00792
Haiku 4.5 $0.00396 $0.00396

Measured 3d ago against content hash 1d6d4cd59014, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

easy-ui-mcp AGENTS.md scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

5. **Verify the container can actually reach the other repo's dev server** — this is a separate check from step 4 above, and the one most likely to silently fail. Start the target app's dev server (e.g. `npm run dev` in

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:8765/health
AGENTS.md · 326 lines

How it starts

The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — Extending easy-ui-mcp

This document explains how a future agent (human developer or AI coding assistant) can connect to and extend this project.


Quick Start: What This Project Does

easy-ui-mcp is a Dockerized MCP server that exposes browser automation tools over HTTP/SSE. You run it locally:

docker-compose up -d

Then connect an MCP client (like Claude Code) to automate web UI testing without writing test scripts. The server logs every action and generates a pass/fail HTML report with embedded screenshots.


Architecture: Primitive Tools + Session Bracketing

This project uses a Option A architecture (see BRAINSTORMING_LOG.md):

  • No server-side LLM calls — the container has no API keys or LLM reasoning. Instead, Claude Code (or another agent) calls primitive Playwright tools step-by-step and decides what to do next.
  • Session bracketing — every test run is wrapped in ui_start_session(target) and ui_end_session(). All tool calls between these two are logged into a single report (JSON + HTML).
  • Primitive tools only — the server exposes 11 tools:
    • ui_start_session(target) — Open a fresh browser context, label this test run
    • ui_end_session() — Close the context, write reports (JSON + HTML with screenshots)
    • ui_step(label) — Start a caller-labelled report step; subsequent actions stay in it until the next ui_step
    • ui_navigate(url) — Go to a URL
    • ui_click(selector) — Click a CSS-selectable element
    • ui_fill(selector, value) — Fill an input field
    • ui_assert(condition) — Evaluate a JavaScript expression; a false result fails the session
    • ui_check(condition) — Evaluate a condition and record it without failing the session (a condition that cannot run is still a hard failure)
    • ui_wait_for(condition, timeoutMs) — Poll a condition until it holds; recorded as one action, and timing out fails the session
    • ui_get_page_state() — Return URL, title, and visible elements (DOM state)
    • ui_take_screenshot() — Capture viewport as PNG

Read the full file on GitHub · 326 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 326 lines · 3,962 tokens per session scan B 1d6d4cd59014

Subscribe to this mod's changes

easy-ui-mcp AGENTS.md is an instructions file published in the GitHub repository thunderkds/easy-ui-mcp (0 stars, last pushed 8d ago), licensed MIT. It adds 3,962 tokens to every session, about $0.0198 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories