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

mnotes-cli

v1.18.0

Published

CLI for m-notes AI knowledge base — manage notes, search, and CRUD from the terminal

Readme

mnotes-cli

CLI for m-notes AI knowledge base. Manage notes, search, and perform CRUD operations from the terminal.

Install

npm install -g mnotes-cli

Setup

Set your API key and (optionally) the server URL:

export MNOTES_API_KEY="your-api-key"
export MNOTES_URL="https://mnotes.framework.by"  # defaults to http://localhost:3000

Or pass them as flags:

mnotes --api-key <key> --url <url> <command>

Commands

| Command | Description | |---------|-------------| | mnotes note list | List notes (legacy mnotes list aliased) | | mnotes read <id> | Read a note | | mnotes search <query> | Search notes (fulltext or semantic) | | mnotes create | Create a note | | mnotes update <id> | Update a note | | mnotes delete <id> | Delete a note | | mnotes folder list | List folders with hierarchy + note counts | | mnotes folder summary | High-level workspace overview (totals, tree, recent, tags) | | mnotes folder manage --action <create\|rename\|delete> | Folder lifecycle (mirrors MCP manage_folders) | | mnotes folder recent --since <iso> | Notes modified since a timestamp | | mnotes folder search-tags --tags <a,b> | Find notes matching given tags (--match any\|all) | | mnotes folder move <id> --parent-id <id> \| --root | Re-parent a folder | | mnotes file upload --path <p> --mime-type <t> | Upload an image or PDF; optional --note-id to embed |

Options

  • --api-key <key> API key (or MNOTES_API_KEY env var)
  • --url <url> Base URL (or MNOTES_URL env var)
  • --json Output as JSON
  • --help Show help
  • --version Show version

Examples

# List all notes
mnotes list

# Search notes semantically
mnotes search "machine learning" --mode semantic

# Create a note
mnotes create --title "Meeting Notes" --content "# Agenda\n- Item 1"

# Read a specific note as JSON
mnotes read abc123 --json

# Delete a note
mnotes delete abc123

JSON output contract

The CLI is designed so AI agents can swap MCP transport for CLI invocations without rewriting downstream parsing. To make this safe, every command that mirrors an MCP tool emits JSON with a top-level shape that matches the MCP tool's response.

The rule

For each mnotes <group> <action> --json that has a corresponding MCP tool:

  • The top-level keys must match the MCP tool response (same names, same nesting). Per-item field names within arrays must match too.
  • Extra fields on individual items are allowed — schemas are passthrough — but envelopes ({ notes, nextCursor }, etc.) are strict.
  • The CLI is the consumer of HTTP APIs; if the API shape diverges from MCP, the CLI reshapes inside the action handler, not the server.

Where the contract lives

Shared Zod schemas at src/parity/schemas/<tool>.ts. Both the live CLI output and a recorded MCP fixture must parse cleanly against the same schema. The test harness at src/__tests__/parity/parity.test.ts enforces this.

Reference

mnotes note list --json mirrors MCP list_notes:

{
  "notes": [
    { "id": "…", "title": "…", "folderId": "…", "type": "note", "updatedAt": "…" }
  ],
  "nextCursor": null
}

Migration note (v1.14.0): the legacy mnotes list --json previously returned { data, nextCursor }. It now returns { notes, nextCursor } to match MCP. The CLI command path also moved to mnotes note list; the flat form is preserved as a hidden alias.

Aliases

When a flat command (mnotes list) is migrated into a group (mnotes note list), the flat form is registered as a hidden top-level alias that delegates to the same handler. No deprecation warnings are emitted in v1.x — the aliases are stable through the next major release.

Auditing parity

mnotes parity (hidden) prints a table of MCP tools vs CLI commands with status present | missing | extra. Used by the sprint-end audit gate.

License

Proprietary. See LICENSE.