Agentation Setup: connect visual feedback to your coding workflow

benjitaylor/agentation

Add the Agentation visual-feedback toolbar to a React or Next.js project, choose manual feedback or MCP sync, and verify the selected connection.

Contenuto aggiornato: SKILL.md
Punteggio di qualità 93/100
npx skills add benjitaylor/agentation --skill agentation
5394Stelle430ForkUltimo push del repository

Informazioni sullo Skill

Inspect an existing project, add or update the development-only toolbar, choose the feedback mode and verify it. The Skill distinguishes browser-local copy from server-backed agent feedback instead of treating a visible toolbar as a working connection.

SKILL.md

Autore: Benji Taylor, Dennis Jin, Alex Vanderzon · benjitaylor/agentation · Nessuna licenza indicata · SKILL.md @ 0e3236e

---
name: agentation
description: Add Agentation visual feedback toolbar to a Next.js project
---

# Agentation Setup

Set up the toolbar and, when requested, connect it to the user's coding agent.
A visible toolbar and a healthy MCP server do not prove that browser feedback
reaches the agent. Verify that final step before calling setup complete.

## Steps

1. **Inspect the project**
   - Read the project's instructions and detect its package manager.
   - Look for `agentation` and an existing `<Agentation>` mount before installing.
   - If already mounted, inspect its `endpoint` and current MCP setup. Do not
     exit just because the component exists, and do not add a duplicate mount.
   - Install `agentation` if missing, using the existing lockfile's package manager.

2. **Choose the connection mode from the request**
   - For MCP or live agent feedback, use the same HTTP server URL as the agent.
     The default local server is `http://localhost:4747`; preserve an existing
     custom port or proxy URL. Never assume the browser and agent use the same
     machine when the project is remote.
   - For manual copy/paste only, omit `endpoint` and explain that feedback remains
     in this browser. Do not silently enable a server connection.
   - If the intended mode is unclear, ask one brief question while inspecting
     the existing project. Keep working on independent setup checks.

3. **Add or update the component**

   For a Next.js App Router project, render in the root layout's body after
   children. For Pages Router, render after `Component` in `pages/_app`.
   Preserve any existing callbacks and options.

   ```tsx
   import { Agentation } from "agentation";

   // Use the actual server URL selected above for MCP sync:
   {process.env.NODE_ENV === "development" && (
     <Agentation endpoint="http://localhost:4747" />
   )}
   ```

   The package provides its own client boundary. Keep the application's root
   layout server-rendered unless the project has another reason to change it.

4. **Configure the agent when MCP was requested**
   - Use the project's existing MCP client and configuration conventions.
   - The launch command must include the `server` subcommand:
     `npx -y agentation-mcp server`.
   - For supported agents, `npx add-mcp "npx -y agentation-mcp server"` is one
     setup option. For Claude Code, use
     `claude mcp add agentation -- npx -y agentation-mcp server` or the init wizard.
   - Apply the same custom port to the server command and component endpoint.
   - Restart or reconnect the agent when its configuration requires it. Do not
     create a second HTTP server on a port already owned by the working server.

5. **Verify the complete connection**
   - Run `npx agentation-mcp doctor` for service diagnostics. For a custom URL,
     use `doctor --http-url <url>` when supported by the installed version.
   - Open the app and create one clearly identified test annotation through the
     toolbar. Read it with `agentation_get_all_pending` or session-scoped tools.
   - Check the exact test comment and page, not just a nonzero count or health
     response. Leave unrelated annotations alone.
   - If annotations are empty, check the component endpoint, browser network
     failures/CORS, and whether the agent and browser point to the same server.
   - If browser or MCP tools are unavailable, say exactly which part remains
     unverified and give the user this final check. Do not claim live sync works.

## Notes

- The development guard prevents the toolbar from appearing in production.
- Agentation requires React 18 or newer.
- Installing the toolbar does not install, configure or connect an MCP server.
- Manual copy mode is supported and does not need a running server.

Perché lo abbiamo scelto

A reusable setup workflow that checks existing mounts, follows the project package manager and preserves the Next.js server layout. Live sync requires a separate MCP server and an actual test annotation.

A cosa serve

  • Add element-level UI feedback to an existing React project.
  • Set up manual copy first, or connect a supported MCP client.
  • Diagnose endpoint mismatches when annotations do not reach the agent.

Inspect and mount the toolbar

  1. Check the current project

    Read project instructions, detect its package manager and look for an existing Agentation dependency and component mount. Preserve current callbacks and options.

  2. Add the development-only component

    For Next.js App Router, mount after children in the root body. Keep the root layout server-rendered; Agentation supplies its own client boundary.

Reviewed setup Skill

Choose manual copy or live sync

Without an endpoint, feedback remains in the browser and can be copied to your assistant. For MCP sync, use the same server URL on both sides and retain any existing custom port or proxy.

A running server or successful health check is only part of setup. Create a clearly identified test annotation and confirm the exact comment and page through the MCP annotation tools before declaring live sync ready.

ComandoA cosa serve
npx -y agentation-mcp serverStart the separate MCP and HTTP feedback service when live sync is requested.
npx agentation-mcp doctorRun service diagnostics, then verify a real annotation.

Reviewed setup SkillOfficial installation and integration guide

Install the setup Skill

Use the existing project package manager to install the separate agentation dependency. Keep the toolbar behind a development guard.

ComandoA cosa serve
npx skills add benjitaylor/agentation --skill agentationSelect only the setup workflow from the repository.

Reviewed setup SkillOfficial Agentation repository

Prima di usarlo

  • React 18 or newer and a desktop browser; the upstream toolbar does not support mobile.
  • Node.js and the project package manager. Installing this Skill does not install the toolbar package.
  • Live sync additionally needs agentation-mcp, a compatible MCP client and the same reachable HTTP endpoint in the browser and agent. Manual copy does not need that server.
  • The upstream code uses PolyForm Shield 1.0.0; review its license for your intended use.

Agenti supportati

Claude CodeCodex CLICursorGitHub CopilotDeepSeek HarnessGemini CLIGrok BuildHermes AgentOpenCodePiKiroRovo DevQoderMistral VibeGoogle Antigravity

Fonti e riferimenti

Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.