Add Agentation visual feedback toolbar to a Next.js project. Use when the user explicitly asks for Agentation, visual feedback annotations, browser annotation toolbar, or agentation MCP setup.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Agentation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tommylower-agentation)
---
name: agentation
description: Add Agentation visual feedback toolbar to a Next.js project. Use when the user explicitly asks for Agentation, visual feedback annotations, browser annotation toolbar, or agentation MCP setup.
author: Dennis Jin & Benji Taylor (https://www.npmjs.com/package/agentation)
---
# Agentation
Set up the Agentation annotation toolbar in development only. Verified against **agentation 3.1.2** and **agentation-mcp 1.3.2** (2026-11-27). Needs React 18+ and a desktop browser.
Before editing, read the shared dev-overlay rules in `../dev-overlays.md`.
## Steps
1. Check `package.json` for `agentation`.
2. Search `src/`, `app/`, and `pages/` for existing `Agentation` imports or `<Agentation` usage. If already configured, report that and stop.
3. Install as a dev dependency using the repo's package manager:
```bash
bun add -d agentation
```
4. Create or update `src/components/DevTools.tsx` with a client-only dynamic import:
```tsx
"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 />;
}
```
5. Mount `<DevTools />` as a sibling of `{children}` in the app shell.
6. Run the app in development and confirm the toolbar appears.
7. Run the production build and confirm Agentation does not ship.
## MCP Setup
`<Agentation />` on its own only saves feedback locally for copying. To sync annotations to an agent, connect both ends to the same server and port:
1. Register the MCP server with the coding agent. Universal path: `npx add-mcp "npx -y agentation-mcp server"`. Or register `npx -y agentation-mcp server` as a stdio MCP server in the agent's own config. `agentation-mcp init` is a setup wizard that registers through `claude mcp add`.
2. Restart the agent. Its MCP process also starts the HTTP server on port 4747 (`--port` changes it). Node.js 20 or newer is required; 24 LTS is recommended.
3. Point the toolbar at that server in `DevTools.tsx`:
```tsx
return <Agentation endpoint="http://localhost:4747" />;
```
4. Run `npx agentation-mcp doctor`. It checks the services, not browser delivery.
5. Prove the link: add one test annotation in the app, then have the agent call `agentation_get_all_pending` and confirm the exact comment and page. If it is missing, check the `endpoint` prop and that both ends use the same server.
## Notes
- Works alongside Interface Kit and DialKit in the same `DevTools.tsx`.
- Agentation's MCP server exposes `agentation_list_sessions`, `agentation_get_session`, `agentation_get_pending`, `agentation_get_all_pending`, `agentation_acknowledge`, `agentation_resolve`, `agentation_dismiss`, `agentation_reply`, and `agentation_watch_annotations`.
- The toolbar renders inside the open shadow root of an `<agentation-toolbar>` element, so DOM queries for its parts must go through `.shadowRoot`.
- For autonomous browser annotation, use `agentation-self-driving` after the toolbar is installed.