Agentation
Set up the Agentation annotation toolbar in development only.
Before editing, read the shared dev-overlay rules in ../dev-overlays.md.
Steps
Check
package.jsonforagentation.Search
src/,app/, andpages/for existingAgentationimports or<Agentationusage. If already configured, report that and stop.Install as a dev dependency using the repo's package manager:
bun add -d agentationCreate or update
src/components/DevTools.tsxwith a client-only dynamic import:"use client"; import dynamic from "next/dynamic"; const Agentation = dynamic( () => import("agentation").then((mod) => ({ default: mod.Agentation })), { ssr: false }, ); export function DevTools() { if (process.env.NODE_ENV !== "development") return null; return <Agentation />; }Mount
<DevTools />as a sibling of{children}in the app shell.Run the app in development and confirm the toolbar appears.
Run the production build and confirm Agentation does not ship.
MCP Setup
For real-time annotation syncing with agents, recommend one setup path:
- Universal setup: run
npx add-mcpand chooseagentation-mcp. - Package wizard, when available: run
agentation-mcp init.
After MCP setup, restart the coding agent and run the package's doctor command if available.
Notes
- Works alongside Interface Kit and DialKit in the same
DevTools.tsx. - Agentation's MCP server exposes tools such as
agentation_get_all_pending,agentation_resolve, andagentation_watch_annotations. - For autonomous browser annotation, use
agentation-self-drivingafter the toolbar is installed.