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

@formicoidea/labre-mcp

v0.1.0

Published

MCP server for applying practice frameworks — Wardley Maps first (value chain, evolution, climates, doctrines). Strategy registry + recipe runner, exposed over stdio (Claude Code / Agent SDK) or HTTP.

Readme

labre-mcp

An MCP server for applying strategy practice frameworks — Wardley Maps first (value chain, evolution, climates, doctrines, the full study cycle). It exposes a small set of MCP tools backed by a pluggable strategy registry orchestrated by a recipe runner.

It runs as a local server that an MCP client — Claude Code / the Claude Agent SDK, or any MCP-capable client — launches over stdio. An HTTP daemon transport is also available (SaaS-ready by design).

Requirements

  • Node.js ≥ 20
  • An LLM provider configured via llm.config.json (see LLM configuration). Most tools call an LLM; without a provider they degrade rather than crash, but produce no analysis.

Install & use with Claude Code (stdio)

Add the server to your project's .mcp.json (or ~/.claude.json). Claude Code spawns the process itself — there is no daemon to keep running:

{
  "mcpServers": {
    "labre-mcp": {
      "command": "npx",
      "args": ["-y", "@formicoidea/labre-mcp"],
      "env": {
        "WARDLEY_LLM_CONFIG": "C:\\path\\to\\your\\llm.config.json"
      }
    }
  }
}

Windows note: if npx fails to start the server, wrap it as "command": "cmd", "args": ["/c", "npx", "-y", "@formicoidea/labre-mcp"].

The WARDLEY_LLM_CONFIG env var is optional — if omitted, the server looks for llm.config.json in the client's working directory (your workspace root).

Tools

| Tool | Purpose | |---|---| | estimateEvolution | Estimate the Wardley evolution position of a component (runs the estimate-component-evolution recipe). | | runCommand | Invoke a single strategy directly by its 5-segment methodId → CommandResult + JSON-labre envelope. | | runRecipe | Run a multi-step recipe by <domain>:<tool>:<name> reference → JSON-labre envelope + final AST + artifact path. | | __ping__ | Smoke tool — echoes its input. Validates the transport. |

The full methodId catalogue lives in docs/architecture/ast-schema.md; recipes in docs/architecture/recipes.md.

LLM configuration

Copy llm.config.example.json to llm.config.json and point WARDLEY_LLM_CONFIG at it (or place it in your workspace root). Three provider kinds are supported:

  • agent-sdk — the Claude Agent SDK (claude).
  • http-api — an OpenAI-compatible gateway (e.g. OpenCode/Kimi with logprobs).
  • copilot-sdk — GitHub Copilot.

Per-strategy provider/model/effort overrides are declared under strategies in the same file.

Optional capabilities

Some strategies use external services and degrade gracefully when their config is absent:

  • BigQuery patent analysis (CPC evolution): BIGQUERY_PROJECT_ID, GOOGLE_APPLICATION_CREDENTIALS.
  • Web search (Agent SDK): ANTHROPIC_API_KEY.

Artifacts

Each recipe run writes a verbose, analysis-ready JSON artifact to ~/.labre-mcp/runs/<projectId>/<runId>.json.

HTTP daemon (alternative transport)

For local development or a SaaS-style deployment, the server can run as an HTTP daemon instead of stdio:

npm run build
npm run mcp:prod          # node dist/core/transport/labre-daemon.mjs

It listens on 127.0.0.1:6767 (override with LABRE_HTTP_PORT). Point the client at it with:

{ "mcpServers": { "labre-mcp": { "type": "http", "url": "http://127.0.0.1:6767/mcp" } } }

See docs/architecture/transport.md for the transport model.

Development

npm install
npm run mcp:stdio         # stdio server via tsx (dev)
npm run mcp               # HTTP daemon via tsx (dev)
npm run typecheck
npm run test              # unit tests (some integration tests call real LLMs — see AGENT.md)

Architecture and decision records are under docs/architecture/ — start with ast-schema.md and decisions.md.

License

ISC