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

@manifesto-ai/mcp

v1.0.0

Published

Manifesto MCP effect bridge, runtime server, and validation helpers

Downloads

85

Readme

@manifesto-ai/mcp

@manifesto-ai/mcp connects Manifesto domains to MCP servers and exposes Manifesto runtimes back out as MCP servers.

It ships three public surfaces:

  • @manifesto-ai/mcp: mcpEffects(manifest, env?) for turning an MCP manifest into Manifesto effect handlers
  • @manifesto-ai/mcp/runtime: createManifestoMcpServer(instance, options?) for serving a Manifesto runtime over MCP
  • @manifesto-ai/mcp/validation: shared manifest, domain, and registry validation helpers for CLI and tooling

Install

pnpm add @manifesto-ai/mcp

mcpEffects()

Use mcpEffects() when your MEL domain declares custom effects that should call MCP tools.

import { readFileSync } from "node:fs";
import { createManifesto } from "@manifesto-ai/sdk";
import { mcpEffects } from "@manifesto-ai/mcp";

const mel = readFileSync("./manifesto/domains/trading-agent/domain.mel", "utf8");
const manifest = JSON.parse(
  readFileSync("./manifesto/domains/trading-agent/mcp-manifest.json", "utf8"),
);

const runtime = createManifesto(mel, mcpEffects(manifest)).activate();

mcpEffects() is synchronous and lazy. It does not connect to MCP servers until the first matching effect fires. Built-in effect namespaces such as array.*, record.*, and system.* are ignored.

Example manifest:

{
  "bindings": {
    "exchange.ticker": {
      "server": "market-data",
      "tool": "get_tickers",
      "paramsMap": {
        "symbols": "symbols"
      },
      "resultPath": "data"
    }
  },
  "servers": {
    "market-data": {
      "url": "https://mcp.example.com",
      "transport": "http",
      "auth": {
        "type": "env",
        "envKey": "MARKET_DATA_MCP_TOKEN"
      }
    }
  },
  "env": {
    "MARKET_DATA_MCP_TOKEN": {
      "required": true,
      "description": "Bearer token for the market data MCP server"
    }
  }
}

On failure, handlers never throw business errors back into Manifesto. They emit $error values into fail or into, and also record the same payload under $host.mcpErrors.<effectType>.

Runtime Server

Use createManifestoMcpServer() when you want to expose a Manifesto runtime as an MCP tool server.

import { createManifestoMcpServer } from "@manifesto-ai/mcp/runtime";

const server = createManifestoMcpServer(runtime, {
  transport: "http",
  port: 3000,
  auth: {
    type: "env",
    envKey: "MANIFESTO_MCP_TOKEN"
  }
});

await server.listen();

Supported transports:

  • stdio
  • http

HTTP auth modes:

  • bearer token
  • env-backed bearer token
  • explicit unsafe no-auth mode for local/dev use only

Base runtimes expose:

  • dispatch
  • get_snapshot
  • get_available_actions
  • get_schema_graph
  • simulate

Lineage runtimes expose:

  • commit
  • get_snapshot
  • get_available_actions
  • get_schema_graph
  • simulate
  • get_history
  • get_world_snapshot
  • get_latest_head
  • restore

Validation Helpers

@manifesto-ai/mcp/validation is intended for CLI and registry tooling.

import {
  getManifestBindingCoverage,
  validateDomainFiles,
  validateMcpEffectManifest,
  validateRegistryItem,
} from "@manifesto-ai/mcp/validation";

Available helpers include:

  • validateMcpEffectManifest()
  • validateEnvSpecsRecord()
  • getManifestBindingCoverage()
  • validateDomainFiles()
  • validateRegistryItem()
  • validateRegistryIndex()
  • partitionRegistryPeers()
  • normalizeRegistryFilePath()

Development

pnpm install
pnpm run check
pnpm run test
pnpm run build

Release

This repository includes GitHub Actions support for npm publishing.

  • Push to main: validates the package and attempts an automatic publish
  • workflow_dispatch: supports manual publishes with npm_tag and dry_run
  • Existing npm versions are skipped automatically
  • The workflow supports either npm trusted publishing via GitHub OIDC or a fallback NPM_TOKEN secret

Package Exports

  • @manifesto-ai/mcp
  • @manifesto-ai/mcp/runtime
  • @manifesto-ai/mcp/validation

License

ISC