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

@yellow-org/sdk-mcp

v1.3.1

Published

Unified MCP server for Yellow SDK and Nitrolite protocol context for AI agents and IDEs

Readme

Yellow SDK MCP Server

An MCP (Model Context Protocol) server that exposes the Yellow SDK / Nitrolite SDK knowledge base to AI coding tools — covering both the TypeScript SDK (@yellow-org/sdk) and the Go SDK (github.com/layer-3/nitrolite/sdk/go).

The npm package ships with a release-time content snapshot, so external users do not need to clone the Nitrolite repository. When running from this monorepo, the server reads local source files first and falls back to the packaged snapshot only when source files are unavailable.

Renamed in v1.3.0 — the off-chain broker was renamed from clearnode to nitronode. v1.2.0 and earlier ship as clearnode; v1.3.0 and later ship as nitronode. See MIGRATION-NITRONODE.md (also exposed as the nitrolite://migration/nitronode MCP resource).

Quick Start

Choose the client you use. All published-package examples run the server from npm, so no Nitrolite repo clone is required.

Claude Code

For your current project:

claude mcp add --transport stdio nitrolite -- npx -y @yellow-org/sdk-mcp@^1

For a shareable project config, add this to .mcp.json at the repository root:

{
  "mcpServers": {
    "nitrolite": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@yellow-org/sdk-mcp@^1"]
    }
  }
}

Claude Desktop

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or %APPDATA%\Claude\claude_desktop_config.json on Windows, then restart Claude Desktop:

{
  "mcpServers": {
    "nitrolite": {
      "command": "npx",
      "args": ["-y", "@yellow-org/sdk-mcp@^1"]
    }
  }
}

Codex

codex mcp add nitrolite -- npx -y @yellow-org/sdk-mcp@^1

Cursor

Add this to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "nitrolite": {
      "command": "npx",
      "args": ["-y", "@yellow-org/sdk-mcp@^1"]
    }
  }
}

VS Code

Add this to .vscode/mcp.json in your workspace, or to your VS Code user MCP config:

{
  "servers": {
    "nitrolite": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@yellow-org/sdk-mcp@^1"]
    }
  }
}

You can also install it from the VS Code command line:

code --add-mcp '{"name":"nitrolite","type":"stdio","command":"npx","args":["-y","@yellow-org/sdk-mcp@^1"]}'

Local Development

From this repository:

cd sdk/mcp && npm install && cd ../..

Add this to .mcp.json:

{
  "mcpServers": {
    "nitrolite": {
      "type": "stdio",
      "command": "npm",
      "args": ["--prefix", "sdk/mcp", "exec", "--", "tsx", "sdk/mcp/src/index.ts"]
    }
  }
}

Any MCP-compatible client that supports stdio servers can launch the package with the same npx -y @yellow-org/sdk-mcp@^1 command.

What's Inside

  • 31 resources — API reference (TS + Go), protocol docs, security patterns, examples (TS + Go), use cases, migration
  • 9 tools — server info, method lookup, type lookup, search, RPC format, import validation, concept explanation, scaffolding (TS + Go)
  • 3 prompts — guided workflows for building apps (covers both TS and Go), migrating from v0.5.3, building AI agents

Tools

server_info

Return package, SDK, compat, Go module, protocol, and content mode metadata. Use this in bug reports.

> server_info()

lookup_method

Look up a Client method by name. Supports an optional language parameter.

> lookup_method({ name: "transfer" })                    # TypeScript (default)
> lookup_method({ name: "Transfer", language: "go" })    # Go SDK
> lookup_method({ name: "transfer", language: "both" })  # Both SDKs

lookup_type

Look up a type, interface, struct, or enum by name.

> lookup_type({ name: "AppDefinitionV1" })                          # TypeScript (default)
> lookup_type({ name: "AppSessionV1", language: "go" })             # Go (from pkg/app)
> lookup_type({ name: "ChannelStatus", language: "go" })            # Go enum with values

search_api

Fuzzy search across methods and types.

> search_api({ query: "transfer" })                        # TypeScript (default)
> search_api({ query: "session", language: "go" })         # Go methods + types
> search_api({ query: "channel", language: "both" })       # Both SDKs

scaffold_project

Generate a starter project. TypeScript templates output package.json + tsconfig.json + src/index.ts. Go templates output go.mod + main.go.

| Template | Language | Description | |----------|----------|-------------| | transfer-app | TypeScript | Deposit, transfer, close channel | | app-session | TypeScript | Multi-party app session | | ai-agent | TypeScript | Autonomous payment agent | | go-transfer-app | Go | Deposit, transfer, close channel | | go-app-session | Go | Multi-party app session | | go-ai-agent | Go | Autonomous payment agent with graceful shutdown |

Other Tools

  • get_rpc_method — 0.5.x compat method to v1 wire format
  • validate_import — check if a symbol is in @yellow-org/sdk-compat or @yellow-org/sdk
  • explain_concept — plain-English explanation of protocol concepts
  • lookup_rpc_method — full v1 RPC method lookup from docs/api.yaml

Publishing

The package is designed for npm distribution:

cd sdk/mcp
npm ci
npm run build
npm pack --dry-run
npm publish --access public

npm run build copies the release source/docs snapshot into content/, writes content/release.json and content/manifest.json, compiles to dist/, and marks the binary executable. The npm tarball includes only dist, content, README.md, package.json, and server.json.

Release tags matching mcp-v* run .github/workflows/publish-sdk-mcp.yml. The workflow validates the content manifest, smokes the packed server from a clean install, publishes the npm package, and then publishes server.json to the MCP Registry from a separate retryable job.

Version policy: the MCP package mirrors the SDK release it documents. If @yellow-org/sdk is 1.2.1, publish @yellow-org/[email protected] only after @yellow-org/[email protected], @yellow-org/[email protected], and the Go module tag v1.2.1 are available. The server never fetches the latest GitHub release at runtime; scaffolds and server_info use the packaged release metadata. Consumers can use @^1 to track compatible v1 SDK docs, or pin an exact MCP version for audited builds.


Resources

TypeScript SDK

  • nitrolite://api/methods — TS client methods by category
  • nitrolite://api/types — TS interfaces and type aliases
  • nitrolite://api/enums — TS enums

Go SDK

  • nitrolite://go-api/methods — Go client methods by category
  • nitrolite://go-api/types — Go structs and enum types (from pkg/ and sdk/go/)

Examples

  • nitrolite://examples/full-transfer-script — complete TypeScript transfer script
  • nitrolite://examples/full-app-session-script — complete TypeScript app session script
  • nitrolite://go-examples/full-transfer-script — complete Go transfer script
  • nitrolite://go-examples/full-app-session-script — complete Go app session script

Protocol & Security

  • nitrolite://protocol/{overview,terminology,cryptography,wire-format,rpc-methods,auth-flow,channel-lifecycle,state-model,enforcement,cross-chain,interactions}
  • nitrolite://security/{overview,app-session-patterns,state-invariants}

Use Cases

  • nitrolite://use-cases, nitrolite://use-cases/ai-agents

Migration

  • nitrolite://migration/overview

Prompts

  • create-channel-app — step-by-step guide covering both TypeScript and Go SDKs
  • migrate-from-v053 — migration guide from @layer-3/nitrolite v0.5.3 to the compat layer
  • build-ai-agent-app — AI agent payments guide for both TypeScript and Go