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

@manifest-network/manifest-mcp-fred

v0.25.0

Published

MCP server for Manifest provider (Fred) operations (deploy, status, logs, restart, update)

Readme

@manifest-network/manifest-mcp-fred

MCP server for Manifest provider (Fred) operations. Registers 12 tools (plus 3 MCP resources and 3 prompts) for catalog browsing, deployment readiness, manifest preview, app deployment, status, logs, restart, update, restore, diagnostics, releases, and ready-state polling. Composes on-chain operations with off-chain provider HTTP calls using ADR-036 authentication.

This package also exports all tool functions and HTTP clients for use by library consumers without requiring the MCP protocol.

Installation

npm install @manifest-network/manifest-mcp-fred

Tools

| Tool | Description | |------|-------------| | browse_catalog | Browse available providers and service tiers with health checks | | check_deployment_readiness | Pre-flight checks (balance, credit account, SKU availability) before deploy_app | | build_manifest_preview | Preview the manifest and its meta_hash_hex that deploy_app would submit | | deploy_app | Deploy a new application (create lease + deploy container, optional custom domain) | | wait_for_app_ready | Poll provider until a deployed app reports ready | | app_status | Get detailed status for a deployed app by lease UUID | | get_logs | Get logs for a deployed app by lease UUID | | restart_app | Restart a deployed app via the provider | | update_app | Update a deployed app with a new manifest | | restore_app | Restore a CLOSED, EXPIRED or REJECTED app with retained data onto a fresh lease | | app_diagnostics | Get chain state and surviving provider provision diagnostics, including terminal leases | | app_releases | Get release/version history for a deployed app (20 most recent; the stored manifest is omitted, its size reported as manifest_bytes) |

Clients, MCP servers, and raw HTTP helpers default to Fred v0.13. In this mode restart_app and update_app omit the Idempotency-Key header and returned idempotency_key; supplied keys are rejected locally. After an uncertain result, reconcile app status and releases before deliberately submitting another command. No mode automatically replays maintenance POSTs.

Explicit PR240 mode accepts a canonical UUIDv4 idempotency_key and returns it. Preserve that key and the exact command for intentional retries: a timeout or 503 can leave work pending for provider recovery. Omitting the key generates a new command. SDK equivalents use LifecycleCallOptions.idempotencyKey; result keys are optional because legacy responses omit them. See maintenance command identity.

restore_app creates a new lease and adopts the source's retained data in separate steps. Every restore POST exception, including all HTTP 4xx/5xx, network failures, and malformed 2xx responses, leaves adoption unknown: preserve both lease IDs, check app_status / app_diagnostics, and reconcile with the provider before retrying or considering cleanup. The SDK does not cancel an uncertain target or advise doing so. A PENDING chain state alone does not establish that no volumes were adopted, and a 429 Retry-After does not authorize replay. Only locally known failures or cancellation before the restore POST begins permit automatic compensation. See restore outcomes and cancellation for the structured error fields.

Resources & prompts

The Fred server also exposes 3 MCP resources (manifest://leases/active, manifest://leases/recent, manifest://providers) and 3 prompts (deploy-containerized-app, diagnose-failing-app, shutdown-all-leases).

Usage

As an MCP server (via node package)

See packages/node/README.md for CLI usage and MCP client integration.

Set MANIFEST_FRED_COMPATIBILITY to v0.13, pr240, or a JSON provider API URL map such as '{"https://upgraded-provider.example":"pr240"}'. Unlisted providers remain on v0.13. Use pr240 for providers running Fred v0.14, the first release with PR #240's contract, and v0.13 for Fred v0.13.x. An explicit FredMCPServer({ fredCompatibility, ... }) option overrides the environment. This is operator configuration; mutation tools do not choose their protocol. The local devnet's separate FRED_COMPATIBILITY setting defaults to PR240.

As a library

// Use the MCP server class — Node-only, from the `/server` subpath (NOT the barrel;
// the barrel stays browser-bundleable, see ENG-287)
import { FredMCPServer } from '@manifest-network/manifest-mcp-fred/server';

const server = new FredMCPServer({
  config,          // ManifestMCPConfig from core
  walletProvider,  // WalletProvider from core
  fredCompatibility: { 'https://upgraded-provider.example': 'pr240' },
});

// Or use individual tool functions and HTTP clients directly (browser-safe barrel)
import { deployApp, browseCatalog } from '@manifest-network/manifest-mcp-fred';
import { createAuthToken } from '@manifest-network/manifest-mcp-fred';

createFredClient and FredAuthCtx accept the same fredCompatibility global mode or URL map. Deploy/restart/update call options accept a per-call mode override. Configure PR240 only for providers implementing that contract; Fred has no reliable capability endpoint for automatic negotiation.

validateManifest(value, compatibility?) and buildManifestPreview(input, compatibility?) default to v0.13. Preview results identify the applied rules in validation.fred_compatibility, for both valid and invalid candidates. PR240 mode adds its stricter Compose/Unicode reserved-label and user-syntax checks. Deploy/update validate with the resolved provider policy before mutation. Standalone MCP previews use a configured global mode, or v0.13 when using a provider map because no provider has been selected; passing that preview does not imply acceptance under PR240. Orchestrated deployment resolves the selected provider's policy before previewing and showing the confirmation plan. Generated schema artifacts stay pinned to PR240 for drift checks.

SSRF guard. When run as an MCP server, all provider/Fred HTTP is routed through core's SSRF-guarded fetch by default. Toggle it with MANIFEST_FRED_FETCH_GUARDED (default on; set 0/false/no/off to disable — only in trusted local setups).

HTTP clients

The package contains three HTTP client modules:

  • http/auth.ts -- ADR-036 token construction. Pure functions that build sign messages and assemble base64 bearer tokens. No network calls.
  • http/provider.ts -- Provider API client: uploadLeaseData(), getLeaseConnectionInfo(), getProviderHealth(), plus validateProviderUrl() / isUrlSsrfSafe(). Provider URLs (from untrusted on-chain records) are SSRF-classified by default: HTTPS required, and literal private/internal/loopback/metadata IPs are rejected (ENG-490). Loopback is opt-in via { allowLoopback } — the fred server enables it only when MANIFEST_FRED_FETCH_GUARDED=0. JSON reads are byte/time bounded and runtime-schema-validated before returning.
  • http/fred.ts -- Fred API client: getLeaseStatus(), getLeaseLogs(), getLeaseProvision(), restartLease(), updateLease(), restoreLease(), getLeaseReleases(), and pollLeaseUntilReady(). Endpoint schemas validate known fields while preserving unknown additions from newer providers. Raw restart/update accept idempotencyKey after allowLoopback, followed by fredCompatibility (default 'v0.13'); pass both a key and 'pr240' for intentional command replay.

Provider HTTP redirects are refused, including same-origin redirects. Configure the canonical API URL: the client never forwards a manifest body or credentials to a redirected destination. This policy applies in browsers and Node and remains active when a custom fetch is injected; the injected function must honor RequestInit.redirect. Redirect errors have ProviderApiError.kind === 'redirect' and are not transient.

Build

npm run build    # tsdown (platform: neutral)
npm run lint     # tsc --noEmit
npm run test     # vitest

License

MIT