npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agentation-mcp

v1.2.0

Published

MCP server for Agentation - visual feedback for AI coding agents

Readme

Agentation MCP

MCP (Model Context Protocol) server for Agentation - visual feedback for AI coding agents.

This package provides an MCP server that allows AI coding agents (like Claude Code) to receive and respond to web page annotations created with the Agentation toolbar.

Installation

npm install agentation-mcp
# or
pnpm add agentation-mcp

Quick Start

1. Set up the MCP server

Add the MCP server to Claude Code:

claude mcp add agentation -- npx agentation-mcp server

Or use the interactive setup wizard: npx agentation-mcp init

2. Start the server

agentation-mcp server

This starts both:

  • HTTP server (port 4747) - receives annotations from the browser toolbar
  • MCP server (stdio) - exposes tools for Claude Code

3. Verify your setup

agentation-mcp doctor

CLI Commands

agentation-mcp init                    # Setup wizard (registers via claude mcp add)
agentation-mcp server [options]        # Start the annotation server
agentation-mcp doctor                  # Check your setup
agentation-mcp help                    # Show help

Server Options

--port <port>      # HTTP server port (default: 4747)
--mcp-only         # Skip HTTP server, only run MCP on stdio
--http-url <url>   # HTTP server URL for MCP to fetch from

MCP Tools

The MCP server exposes these tools to AI agents:

| Tool | Description | |------|-------------| | agentation_list_sessions | List all active annotation sessions | | agentation_get_session | Get a session with all its annotations | | agentation_get_pending | Get pending annotations for a session | | agentation_get_all_pending | Get pending annotations across all sessions | | agentation_acknowledge | Mark an annotation as acknowledged | | agentation_resolve | Mark an annotation as resolved | | agentation_dismiss | Dismiss an annotation with a reason | | agentation_reply | Add a reply to an annotation thread | | agentation_watch_annotations | Block until new annotations appear, then return batch |

HTTP API

The HTTP server provides a REST API for the browser toolbar:

Sessions

  • POST /sessions - Create a new session
  • GET /sessions - List all sessions
  • GET /sessions/:id - Get session with annotations

Annotations

  • POST /sessions/:id/annotations - Add annotation
  • GET /annotations/:id - Get annotation
  • PATCH /annotations/:id - Update annotation
  • DELETE /annotations/:id - Delete annotation
  • GET /sessions/:id/pending - Get pending annotations
  • GET /pending - Get all pending annotations

Events (SSE)

  • GET /sessions/:id/events - Session event stream
  • GET /events - Global event stream (optionally filter with ?domain=...)

Health

  • GET /health - Health check
  • GET /status - Server status

Hands-Free Mode

Use agentation_watch_annotations in a loop for automatic feedback processing -- the agent picks up new annotations as they're created:

  1. Agent calls agentation_watch_annotations (blocks until annotations appear)
  2. Annotations arrive -- agent receives batch after collection window
  3. Agent processes each annotation:
    • agentation_acknowledge -- mark as seen
    • Make code changes
    • agentation_resolve -- mark as done with summary
  4. Agent calls agentation_watch_annotations again (loop)

Example CLAUDE.md instructions:

When I say "watch mode", call agentation_watch_annotations in a loop.
For each annotation: acknowledge it, make the fix, then resolve it with a summary.
Continue watching until I say stop or timeout is reached.

Webhooks

Configure webhooks to receive notifications when users request agent action:

# Single webhook
export AGENTATION_WEBHOOK_URL=https://your-server.com/webhook

# Multiple webhooks (comma-separated)
export AGENTATION_WEBHOOKS=https://server1.com/hook,https://server2.com/hook

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | AGENTATION_STORE | Storage backend (memory or sqlite) | sqlite | | AGENTATION_WEBHOOK_URL | Single webhook URL | - | | AGENTATION_WEBHOOKS | Comma-separated webhook URLs | - | | AGENTATION_EVENT_RETENTION_DAYS | Days to keep events | 7 |

Programmatic Usage

import { startHttpServer, startMcpServer } from 'agentation-mcp';

// Start HTTP server on port 4747
startHttpServer(4747);

// Start MCP server (connects via stdio)
await startMcpServer('http://localhost:4747');

Storage

By default, data is persisted to SQLite at ~/.agentation/store.db. To use in-memory storage:

AGENTATION_STORE=memory agentation-mcp server

License

PolyForm Shield 1.0.0