anriss
Enables UI feedback loop by clicking elements, leaving comments, and letting AI coding agents (via MCP) resolve annotations interactively.
README
<p align="center"><img src="docs/logo.svg" width="88" alt="Anriss logo"></p>
Anriss
Click elements on your running web app, leave a comment, and let your AI coding agent fix it. A tiny self-hosted feedback loop for UI work — no React, no browser extension, no SaaS.
Anriss — from German anreißen: marking out a workpiece before machining. And Riss is the plan itself (Grundriss, Aufriss). Mark it. Plan it. Fix it.
you (browser) anriss your AI agent
────────────── ───────────── ─────────────
click elements ──POST──▶ Rust + SQLite ◀──MCP── Claude Code /
+ one comment W3C annotations Codex / opencode
fixes code,
marks resolved
- One script tag to integrate — works with any frontend (plain HTML, Stimulus/Turbo, Vue, React, server-rendered, anything)
- Multi-select: click several elements, leave one comment for all of them
- Agent-native: built-in MCP endpoint; any MCP-capable coding agent can list open annotations and resolve them
- Standards-based: annotations are stored as W3C Web Annotation Data Model JSON (CSS selector + XPath + HTML snippet per target)
- Self-contained: single Rust binary with the widget embedded; SQLite file as the only state
⚠️ Development tool. CORS is wide open by design and there is no authentication. Run it on localhost or inside your dev network only.
Quick start
It's a single process — just run the binary:
cargo install --path . # once; installs `anriss` into ~/.cargo/bin
anriss # serves on :4855, SQLite in ./data/annotations.db
Or straight from the checkout:
cargo run --release
Open http://localhost:4855/ — the built-in demo page runs the widget, so you can try the whole loop before touching your own app.
Building from a fresh clone only needs Rust; the widget bundle
(dist/anriss.js) is committed. Rebuild it after widget changes with
npm install && npm run build.
A Dockerfile is included if you prefer a container:
docker build -t anriss . && docker run -p 4855:4855 -v "$PWD/data:/data" anriss
Add the widget to your app (dev only!)
<script src="http://localhost:4855/anriss.js" defer></script>
Gate it however your stack gates dev-only markup, e.g. Symfony/Twig:
{% if app.debug %}<script src="http://localhost:4855/anriss.js" defer></script>{% endif %}
Annotate
- Click the Annotate pill (bottom-left) or press Alt+Shift+A
- Click one or more elements — click again to deselect
- Press Enter or click Comment, write what should change, save
Connect your agent (MCP)
Claude Code — .mcp.json in your project:
{
"mcpServers": {
"annotations": { "type": "http", "url": "http://localhost:4855/mcp" }
}
}
Codex — ~/.codex/config.toml:
[mcp_servers.annotations]
url = "http://localhost:4855/mcp"
opencode — opencode.json:
{
"mcp": {
"annotations": { "type": "remote", "url": "http://localhost:4855/mcp" }
}
}
Then just ask: "Work through the open UI annotations." The agent calls
list_open_annotations, locates each element via the stored selectors and
HTML snippets, fixes the code, and calls resolve_annotation.
Lifecycle & live updates
open ──agent resolves (MCP/REST)──▶ done ──you tick ✓ in the widget──▶ archived
- The widget polls the server every 3 s (paused while the tab is hidden), so agent resolutions appear live in the pill's list panel — resolution note included — without a reload. A red dot on the pill means the server is unreachable.
- Resolve never deletes. Archiving is deliberately human-only (no MCP tool for it): you review the fix, then tick it away.
- The panel's Copy JSON button copies all open annotations — the manual fallback when you want to paste them into any agent directly.
REST API
| Method | Path | Description |
|---|---|---|
GET |
/anriss.js |
The drop-in widget |
POST |
/api/annotations |
Create an annotation (the widget calls this) |
GET |
/api/annotations?status=open|done |
List annotations |
POST |
/api/annotations/{id}/resolve |
Mark resolved: {"resolution": "..."} |
GET |
/healthz |
Health check |
Annotations are W3C Web Annotations with ext:* extension fields for
status/resolution. Comments may reference their targets as [#n] — n is the
1-based index into the annotation's target[] array (the widget's numbered
chips/badges use the same numbering). Each target carries a CssSelector, an XPathSelector
and a truncated HTML snippet, so agents (and future UI pins) can re-anchor
even after the DOM changed.
Configuration
| Env var | Default | |
|---|---|---|
ANRISS_PORT |
4855 |
HTTP port |
ANRISS_DB |
./data/annotations.db |
SQLite path |
Widget: <script ... data-hotkey="ctrl+shift+e"> overrides the hotkey.
Development
npm run build # compile Tailwind subset + inline into dist/anriss.js
cargo test # server tests
cargo clippy
Queries are compile-time checked (sqlx). After changing SQL or migrations:
DATABASE_URL=sqlite://.sqlx-dev.db cargo sqlx migrate run && cargo sqlx prepare
(the .sqlx/ offline cache is committed, so plain cargo build needs no DB).
dist/anriss.js is committed so the crate builds without Node.
The widget UI lives in a Shadow DOM and its Tailwind classes are compiled
with important — host-page styles can't break it, and it can't leak out.
Marketing page
docs/index.html is both the landing page and the local demo/test bed:
- Served by the binary at
/(embedded at compile time) — there the widget is live and annotations work end to end. - Publishable via GitHub Pages: repo Settings → Pages → Build and
deployment → Source "Deploy from a branch" → branch
main, folder/docs. On Pages the widget script simply 404s (no server) — the page itself works.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.