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 🙏

© 2025 – Pkg Stats / Ryan Hefner

directus-extension-mcp-revisions

v1.0.1

Published

MCP tool for viewing and managing revision history for Directus items

Readme

Directus MCP Revisions Extension

A Model Context Protocol (MCP) tool for viewing and managing revision history in Directus.

Features

  • Read Revisions: Query revision history with flexible filtering and pagination
  • View Details: Get complete snapshots or just the changes (deltas)
  • Revert Changes: Restore items to previous revision states
  • Track Changes: See who made changes and when

Installation

From npm (coming soon)

npm install directus-extension-mcp-revisions

Local Development

  1. Clone this repository into your Directus extensions folder
  2. Install dependencies:
    cd extensions/directus-extension-mcp-revisions
    npm install
  3. Build the extension:
    npm run build
  4. Restart your Directus instance

Usage

This extension adds a revisions tool to your Directus MCP server. It can be accessed through any MCP client connected to your Directus instance.

Available Actions

Read One Revision

Get details about a specific revision:

{
  "action": "readOne",
  "id": "revision-uuid-123",
  "fields": ["id", "collection", "item", "data", "delta", "date_created"]
}

List Revisions

Query revisions with filtering and pagination:

{
  "action": "read",
  "collection": "posts",
  "item": "post-uuid-456",
  "limit": 20,
  "sort": ["-date_created"]
}

Revert to Previous State

Restore an item to a previous revision:

{
  "action": "revert",
  "id": "revision-uuid-123"
}

Revision Fields

  • id: Unique identifier for the revision
  • collection: The collection the item belongs to
  • item: The primary key of the revised item
  • data: Complete snapshot of the item at this revision
  • delta: Only the fields that changed in this revision
  • activity: Activity ID that triggered the revision
  • date_created: When the revision was created
  • user_created: User who made the changes

Requirements

  • Directus 10.10.0 or higher
  • Collections must have accountability enabled to track revisions

Development

# Build the extension
npm run build

# Watch mode for development
npm run dev

# Validate the extension
npm run validate

Related Extensions

License

MIT

Author

Joshua Bemenderfer