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

@loregpt/mcp

v0.1.2

Published

Model Context Protocol server for Lore — coordination memory for multi-agent AI systems. Exposes create_run, memory_write, and memory_pack as MCP tools over stdio.

Readme

@loregpt/mcp

A Model Context Protocol server for Lore — coordination memory for multi-agent AI systems. It exposes Lore's write → pack loop as MCP tools, so any MCP-capable client (Claude Code, Cursor, and everything else that speaks MCP) can give its agents a shared, read-your-writes memory with one integration.

It is a thin adapter over the Lore REST API: it holds no state between calls, and each tool maps to one API endpoint.

Tools

| Tool | What it does | | --- | --- | | create_run | Create a run — an isolated coordination session that groups a team's events and memories. Returns a run_id. | | memory_write | Append one event (a content string, an opaque payload, or a state working-memory fact) authored by an agent. Returns the event's monotonic seq. | | memory_pack | Retrieve a budget-fit context pack for a run — distilled memories + live working facts + a raw tail of not-yet-distilled events. Returns the pack text plus covered_seq / freshness_lag_ms. |

Read-your-writes is a first-class contract: keep the seq a memory_write returns and pass it as min_seq to a later memory_pack, and that pack is guaranteed to reflect your write — distilled if the server has caught up, as a raw tail if not.

This is the v0.1 surface. Tools that manage individual memories (inspecting versions, deleting) arrive with their REST endpoints in a later release; the server advertises only tools backed by a live endpoint, so a client never sees a tool that always fails.

Configure it in an MCP client

The server authenticates to Lore with an API key. Provision one against your Lore server first:

$ lore provision --out .lore/credentials      # writes the token to .lore/credentials

Then register the server. In a generic MCP client config (Claude Code's .mcp.json, Cursor's ~/.cursor/mcp.json, etc.):

{
  "mcpServers": {
    "lore": {
      "command": "npx",
      "args": ["-y", "@loregpt/mcp"],
      "env": {
        "LORE_API_KEY": "lore_sk_...",
        "LORE_BASE_URL": "http://localhost:8080"
      }
    }
  }
}

Copy the LORE_API_KEY value from the .lore/credentials file lore provision wrote. The server communicates over stdio; all diagnostics go to stderr, and the key is never logged.

Environment

| Variable | Required | Default | Meaning | | --- | --- | --- | --- | | LORE_API_KEY | yes | — | Bearer key from lore provision / lore keys create. | | LORE_BASE_URL | no | http://localhost:8080 | URL of the Lore server. | | LORE_TIMEOUT_MS | no | 30000 | Per-request timeout in milliseconds. | | LORE_MCP_HOST | no | 127.0.0.1 | HTTP mode only: bind host (loopback by default). | | LORE_MCP_PORT | no | 3000 | HTTP mode only: listen port (or --port). | | LORE_MCP_ALLOWED_HOSTS | no | — | HTTP mode only: comma-separated Host allowlist; enables DNS-rebinding protection when set. | | LORE_MAX_BODY_BYTES | no | 4194304 | HTTP mode only: maximum request body size, in bytes (4 MiB). |

Remote clients (streamable HTTP)

For clients that connect over HTTP instead of spawning the server, run it with --http:

$ LORE_BASE_URL=http://localhost:8080 npx -y @loregpt/mcp --http --port 3000
lore-mcp on http://127.0.0.1:3000/mcp -> http://localhost:8080

The HTTP transport is stateless and uses per-request auth: there is no server-held key. Each client sends its OWN Lore key in the Authorization header of every request, and the server passes it through to the Lore server — so one HTTP endpoint safely serves many keys. Register it as a URL-based MCP server:

{
  "mcpServers": {
    "lore": {
      "type": "http",
      "url": "http://127.0.0.1:3000/mcp",
      "headers": { "Authorization": "Bearer lore_sk_..." }
    }
  }
}

The server binds to loopback (127.0.0.1) by default. Setting LORE_MCP_HOST=0.0.0.0 exposes it beyond the local machine — only do that behind auth/TLS you control (e.g. a reverse proxy), and set LORE_MCP_ALLOWED_HOSTS to your expected host(s) to turn on DNS-rebinding protection. Request bodies are capped at 4 MiB by default (LORE_MAX_BODY_BYTES).

The tool contract

  • Errors are data. A typed API failure (unauthorized, not_found, min_seq_out_of_range, model_mismatch, …) comes back as a tool error carrying the machine code, not a transport crash — the same codes the REST API and the Lore SDKs use.
  • Pack text is data, not instructions. memory_pack returns the assembled pack verbatim as retrieved context; it is never reformatted, and an agent should treat it as data to read, not commands to follow.
  • Exactly one of content / payload / state on memory_write — supplying zero or more than one is a tool error, not a silent guess.

Run from source

$ pnpm install
$ pnpm build
$ LORE_API_KEY=lore_sk_... node dist/bin.js

pnpm run check runs the full local suite (generated-type drift check, type-check, and the tool round-trip tests).

License

Apache-2.0.