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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tmcp/create-tmcp

v0.1.0

Published

CLI tool to create TMCP (lightweight MCP) projects with interactive setup

Readme

@tmcp/create-tmcp

Interactive CLI tool to create TMCP (lightweight MCP) projects with full scaffolding support.

Usage

Create a new TMCP project interactively:

npx @tmcp/create-tmcp

Or create in a specific directory:

npx @tmcp/create-tmcp my-project

Features

The CLI will guide you through setting up a complete TMCP project with:

Schema Adapters

  • Valibot (Recommended) - Lightweight, modern validation
  • Zod v4 - Latest Zod version with enhanced features
  • Zod v3 - Legacy Zod version for compatibility
  • ArkType - TypeScript-first validation with excellent performance
  • Effect Schema - Functional programming approach
  • No adapter - Manual schema handling

Transport Layers

  • STDIO - Standard input/output (most common for MCP)
  • HTTP - HTTP server transport for web integration
  • Server-Sent Events - SSE transport for real-time web apps

Additional Features

  • OAuth 2.1 Authentication - Optional authentication support
  • Example Server - Complete working example with schema validation
  • TypeScript Support - Full type definitions included
  • Modern Tooling - ESM modules, file watching, and more

Generated Project Structure

my-project/
├── package.json          # Dependencies and scripts
├── README.md             # Project documentation
├── src/
│   ├── index.js          # Main server implementation
│   └── example.js        # Example server (optional)

What You Get

Each generated project includes:

  1. Complete TMCP Server - Ready-to-run MCP server implementation
  2. Schema Validation - Integrated adapter for your chosen validation library
  3. Transport Configuration - Pre-configured transport layers
  4. Development Scripts - File watching and development commands
  5. Working Example - Demonstrative tools and schema usage
  6. Full Documentation - README with usage instructions

Example Workflow

# Create new project
npx @tmcp/create-tmcp my-mcp-server

# Follow interactive prompts:
# ✓ Select Valibot adapter
# ✓ Choose STDIO + HTTP transports  
# ✓ Include OAuth authentication
# ✓ Generate example server

# Start development
cd my-mcp-server
pnpm install
pnpm run dev

Schema Adapter Examples

Valibot (Recommended)

import * as v from 'valibot';

const UserSchema = v.object({
    name: v.pipe(v.string(), v.description('User name')),
    age: v.pipe(v.number(), v.description('User age')),
});

Zod

import { z } from 'zod';

const UserSchema = z.object({
    name: z.string().describe('User name'),
    age: z.number().describe('User age'),
});

ArkType

import { type } from 'arktype';

const UserSchema = type({
    name: 'string',
    age: 'number',
});

Advanced Usage

Custom Project Structure

The CLI adapts to your preferences:

  • Custom example server location
  • Multiple transport combinations
  • Optional authentication integration
  • Flexible dependency management

Development Ready

Generated projects include:

  • Hot reloading with --watch flag
  • TypeScript definitions
  • ESLint configuration inheritance
  • Modern package.json setup

Requirements

  • Node.js 18.0.0 or higher
  • pnpm (recommended) or npm

Learn More

License

MIT