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

@mcp-weave/cli

v0.1.3

Published

CLI for MCP-Weave - generate, extract, and manage MCP servers

Downloads

22

Readme

@mcp-weave/cli

Command-line interface for MCP-Weave - initialize, generate, and manage MCP servers.

Installation

# Global installation (recommended)
npm install -g @mcp-weave/cli

# Or with pnpm
pnpm add -g @mcp-weave/cli

# Or use with npx
npx @mcp-weave/cli <command>

Quick Start

# Create a new MCP project
mcp-weave init --name my-server

# Navigate to project
cd my-server

# Install dependencies
npm install

# Generate server code from spec
mcp-weave generate

# Start the server
mcp-weave start

Commands

mcp-weave init

Initialize a new MCP-Weave project with boilerplate code.

mcp-weave init [options]

Options:

| Option | Description | Default | | ------------------------ | ---------------------------------- | --------------- | | -n, --name <name> | Project name | my-mcp-server | | -f, --framework <type> | Framework (nestjs, standalone) | standalone | | -d, --dir <directory> | Output directory | Project name |

Examples:

# Create standalone project
mcp-weave init --name my-server

# Create NestJS project
mcp-weave init --name my-server --framework nestjs

# Create in specific directory
mcp-weave init --name my-server --dir ./projects/mcp

Generated structure (standalone):

my-server/
├── package.json
├── tsconfig.json
├── mcp-spec.yaml
└── src/

Generated structure (NestJS):

my-server/
├── package.json
├── mcp-spec.yaml
└── src/
    └── app.controller.ts

mcp-weave generate

Generate MCP server code from a spec file.

mcp-weave generate [options]

Options:

| Option | Description | Default | | ------------------------ | ----------------- | --------------- | | -s, --spec <path> | Path to spec file | mcp-spec.yaml | | -o, --output <dir> | Output directory | ./generated | | -f, --framework <type> | Target framework | standalone |

Examples:

# Generate from default spec
mcp-weave generate

# Generate from custom spec file
mcp-weave generate --spec ./config/server.yaml

# Generate to custom directory
mcp-weave generate --output ./src/generated

mcp-weave extract

Extract MCP spec from decorated TypeScript code.

mcp-weave extract [options]

Options:

| Option | Description | Default | | --------------------- | ---------------- | --------------- | | -s, --source <path> | Source directory | ./src | | -o, --output <path> | Output spec file | mcp-spec.yaml |

Example:

# Extract spec from source code
mcp-weave extract --source ./src --output mcp-spec.yaml

Note: Full decorator extraction coming in v0.2.0

mcp-weave start

Start the MCP server.

mcp-weave start [options]

Options:

| Option | Description | Default | | ------------------------ | -------------------------- | --------------- | | -s, --spec <path> | Path to spec file | mcp-spec.yaml | | -t, --transport <type> | Transport (stdio, sse) | stdio |

Example:

# Start with default config
mcp-weave start

# Start with custom spec
mcp-weave start --spec ./config/server.yaml

# Start with SSE transport
mcp-weave start --transport sse

Spec File Format

MCP-Weave uses YAML spec files to define servers:

version: '1.0'

server:
  name: 'my-server'
  version: '1.0.0'
  description: 'My MCP server'

tools:
  - name: greet
    description: 'Greet a user'
    inputSchema:
      type: object
      properties:
        name:
          type: string
          description: 'Name to greet'
      required: [name]

resources:
  - uri: 'config://settings'
    name: 'Settings'
    description: 'Application settings'
    mimeType: 'application/json'

prompts:
  - name: welcome
    description: 'Welcome message'
    arguments:
      - name: username
        required: true

transport:
  - type: stdio

Workflow

Spec-First Development

  1. Define your server in mcp-spec.yaml
  2. Generate code with mcp-weave generate
  3. Implement tool/resource/prompt logic
  4. Run the server

Code-First Development

  1. Write decorated TypeScript code
  2. Extract spec with mcp-weave extract
  3. Use spec for documentation or validation

Requirements

  • Node.js >= 18
  • npm, pnpm, or yarn

Related Packages

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

MIT