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

@crazzybot/folio-mcp

v0.8.0

Published

Folio's MCP server: gives a coding agent the review notes you left in Folio, and keeps its replies

Readme

Folio MCP server

Gives a coding agent the review notes you left in Folio on your project's Markdown documents, and keeps its replies, so you see in Folio which notes it addressed.

The agent edits the documents with its own tools. The server never writes to them: it only reads them, and keeps notes and replies in ~/.folio, as the app does. It works whether or not Folio is open.

Setup

Claude Code, with Folio's plugin, which adds the /folio:build, /folio:review, /folio:review-loop, /folio:draft, /folio:plan and /folio:implement commands:

/plugin marketplace add crazzybot/folio
/plugin install folio@folio

Or the server alone:

claude mcp add folio -- npx -y @crazzybot/folio-mcp

Other MCP clients:

{
  "mcpServers": {
    "folio": { "command": "npx", "args": ["-y", "@crazzybot/folio-mcp"] }
  }
}

Then ask the agent to address your Folio review notes.

Review in a loop

Rather than asking after each round, leave the agent waiting for your notes: /folio:review-loop in Claude Code, or ask any other agent to wait for your review with folio_wait_for_review and keep going until you stop it. In Folio, Send in the Send review notes dialog, or Save and Send on a note, hands your notes straight to it. The agent addresses them, answers each one, and waits for the next round. A message typed in the dialog's Message box reaches it too, with the notes or on its own.

In Claude Code, the wait runs as a background command, ~/.folio/bin/folio-wait, which the server keeps up to date. Allow it once with /permissions → Allow → Bash(~/.folio/bin/folio-wait *), or Claude Code asks each round.

While it waits, Folio's desktop app shows a Live pill on the agent's folder. End Review Loop there tells the agent to stop waiting, and so does quitting Folio or opening another workspace.

Tools

  • folio_list_documents: the Markdown documents under the project, with their status, tags and how many notes wait on the agent.
  • folio_get_review_notes: the notes you haven't sent yet, as Folio's Copy review notes words them, with each note's id. They're marked sent.
  • folio_reply: answer a note, and say whether it's addressed. You resolve or reopen it in Folio. When the edit replaced the quoted text, the agent gives the new text as passage, and Folio highlights it in its place. A question that's a choice can give 2 to 4 options, which you pick from with a click, as on a decision.
  • folio_add_notes: put the agent's questions on the passages they're about, as notes you answer in Folio. A question takes an answer in words, a decision 2 to 4 options you pick from, and a comment needs no answer. Each passage is copied from the file; if one isn't there, nothing is saved. Up to 20 notes at a time.
  • folio_wait_for_review: wait until you send notes from Folio, then get them as folio_get_review_notes does. Without notes by the timeout (timeoutSeconds, default 240), it returns, and the agent calls again with the since it gave.
  • folio_background_wait: for agents that run shell commands in the background, such as Claude Code: a command that waits for your notes and exits when you send them, so the session stays free meanwhile. The agent then fetches them with folio_wait_for_review.

Options

folio-mcp [--root <folder>] [--data-dir <folder>]
  • --root: the documents' folder. Default: the folder the agent starts it in. Documents outside it are refused.
  • --data-dir: where Folio keeps marks. Default: ~/.folio.

Requires Node 20.19 or later. MIT licensed.

If the agent reports that npx or node isn't found, though Node works in your terminal, see If the server doesn't connect.