Installation
Get started with Agentation in your project
Start with the React component and copy feedback into any agent. Add MCP when you want your agent to read annotations and respond directly.
Install the package
npm install agentation -DOr use , , or .
Add to your app
Add the component anywhere in your React app, ideally at the root level. The NODE_ENV check renders the toolbar only in development.
import { Agentation } from "agentation";
function App() {
return (
<>
<YourApp />
{process.env.NODE_ENV === "development" && <Agentation />}
</>
);
}Connect your agent
Claude Code, Codex, Gemini CLI, Grok Build, and other clients can connect through MCP. Use Node.js 24 LTS for a new setup. Node.js 22 LTS and 20 are also compatible.
1. Register the MCP server
Run this in your terminal with Claude Code installed.
claude mcp add agentation -- npx -y agentation-mcp serverRestart your agent or reload its MCP servers after configuration. Your agent starts the server when it connects.
2. Verify setup
Check that everything is configured correctly:
npx agentation-mcp doctorThe server runs on port 4747 by default. Use --port 8080 to change it.
3. Connect the component
Point the React component to your server:
<Agentation endpoint="http://localhost:4747" />Annotations are stored locally and synced to the server when connected. Registering the server with your agent does not set this endpoint for you. Add a note in the browser, then ask your agent to list pending feedback to check the complete connection.
- Local-first: Works offline, syncs when server is available
- Session continuity: Rejoins the same session on page refresh
- No duplicates: Only new annotations are uploaded; existing ones are skipped
- Server authority: Agent changes (resolve, dismiss) take precedence on rejoin
Requirements
- React 18+: Uses modern React features
- Client-side only: Requires DOM access
- Desktop only: Not optimized for mobile devices
- Zero dependencies: No runtime deps beyond React
Customize your setup
The API reference covers every prop and callback, including Copy formats, source editor links, hash routing, and integrations with dialogs and menus.
Security notes
Agentation runs in your browser and reads DOM content to generate feedback. By default, it does not send data anywhere — everything stays local until you manually copy and paste.
- No external requests: all processing is client-side by default
- Your configured endpoint: annotations are sent to the server you choose. Use a localhost endpoint for a local workflow
- Optional integrations: configured webhooks and callbacks can send feedback to other services
- Dev-only: use the
NODE_ENVcheck to exclude from production