A floating toolbar for annotating web pages and collecting structured feedback for AI coding agents. Svelte 5 port of benjitaylor/agentation.
Click any element on a page to annotate it. Agentation captures precise structural data — CSS selectors, positions, component hierarchy, computed styles — and generates structured output that AI agents can understand and act on.
__svelte_metanpm install agentation
<script>
import { Agentation } from 'agentation';
</script>
<Agentation />
Toggle with Cmd+Shift+A.
packages/agentation/ — Main Svelte 5 component library
mcp/ — MCP server (Node.js, framework-agnostic)
example/ — SvelteKit demo app
pnpm install
pnpm build # build the library
pnpm dev # run the example app at localhost:5173
The MCP server enables AI agents to receive and respond to annotations:
cd mcp
pnpm build
npx agentation-mcp init # register with Claude Code
npx agentation-mcp server # start on port 4747
| Prop | Type | Default | Description |
|---|---|---|---|
serverUrl |
string |
'http://localhost:4747' |
MCP server URL |
theme |
'light' | 'dark' |
'light' |
Color theme |
detailLevel |
'compact' | 'standard' | 'detailed' | 'forensic' |
'standard' |
Output detail level |
blockInteractions |
boolean |
true |
Block page clicks when annotating |
markerColor |
string |
'#0088FF' |
Annotation marker color |
visible |
boolean |
true |
Show toolbar initially |
Svelte 5 port of agentation by @benjitaylor.