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

@tsdevstack/cli-mcp

v0.1.11

Published

MCP server for tsdevstack CLI - exposes tools and resources to AI agents

Readme

@tsdevstack/cli-mcp

MCP (Model Context Protocol) server plugin for the tsdevstack CLI. Exposes 48 tools and 12 resources so AI agents like Claude can understand and assist you with the framework, the infrastructure, deployment flows and querying the project state.

Features

  • 48 MCP Tools — 13 read-only queries + 35 actions covering the full tsdevstack CLI surface
  • 12 MCP Resources — project state, secrets context, Kong routes, and framework guides
  • Stdio Transport — connects via stdin/stdout for IDE and agent integration
  • Zod Validation — all tool inputs validated with schemas
  • MCP Annotations — tools include readOnlyHint, destructiveHint, and idempotentHint metadata

Installation

npm install @tsdevstack/cli-mcp

Requires tsdevstack as a peer dependency.

Usage

As a CLI plugin

The MCP server registers as a plugin with the tsdevstack CLI:

import { initContext, registerMcpPlugin } from '@tsdevstack/cli-mcp';

// Initialize with CLI plugin context
initContext(pluginContext);

// Register the mcp:serve command
registerMcpPlugin(program);

Starting the server

npx tsdevstack mcp:serve

This starts the MCP server over stdio transport, ready for AI agent connections.

Claude Code integration

Add to your .mcp.json:

{
  "mcpServers": {
    "tsdevstack": {
      "command": "npx",
      "args": ["tsdevstack", "mcp:serve"]
    }
  }
}

Tools

Query tools (read-only)

| Tool | Description | | --------------------------- | --------------------------------------- | | list_services | List all services with types and ports | | list_environments | List configured cloud environments | | get_project_config | Full project configuration | | get_infrastructure_config | Per-environment infrastructure settings | | get_service_status | Cloud resource status for a service | | list_deployed_services | All deployed services in an environment | | list_secrets | Secret names in cloud (not values) | | diff_secrets | Compare local vs cloud secrets | | get_secret | Get a single secret value | | list_schedulers | Scheduled jobs and status | | plan_db_migrate | Preview pending database migrations | | infra_plan | Terraform plan preview | | infra_status | Infrastructure sync status |

Action tools — local

| Tool | Description | | ---------------------------- | -------------------------------------------- | | sync | Regenerate all local config | | generate_secrets | Regenerate local secrets files | | generate_kong | Regenerate Kong gateway config | | generate_docker_compose | Regenerate docker-compose.yml | | add_service | Add a new service (nestjs, nextjs, spa) | | remove_service | Remove a service from the project | | generate_client | Generate TypeScript HTTP client from OpenAPI | | register_detached_worker | Register a detached worker in config | | unregister_detached_worker | Remove a worker from config |

Action tools — cloud

| Tool | Description | | ------------------------ | -------------------------------------- | | cloud_secrets_push | Push secrets to cloud | | cloud_secrets_set | Set a single cloud secret | | cloud_secrets_remove | Remove a cloud secret | | infra_deploy | Full infrastructure deployment | | deploy_services | Deploy code changes to services | | deploy_service | Build + push + deploy a single service | | deploy_kong | Rebuild and deploy Kong gateway | | deploy_lb | Deploy/update load balancer | | run_db_migrate | Apply pending database migrations | | deploy_schedulers | Deploy all scheduled jobs | | deploy_scheduler | Deploy a single scheduled job | | remove_service_cloud | Remove a service from cloud | | remove_detached_worker | Remove a worker from cloud | | infra_destroy | Destroy all cloud infrastructure |

Action tools — setup & CI

| Tool | Description | | ----------------------- | ------------------------------------- | | cloud_init | Initialize cloud provider credentials | | infra_bootstrap | Bootstrap cloud project | | infra_init | Initialize Terraform state | | infra_generate | Generate Terraform files | | infra_generate_docker | Generate Dockerfiles | | infra_build_docker | Build Docker images | | infra_push_docker | Push Docker images to registry | | infra_build_kong | Build Kong Docker image | | infra_init_ci | Initialize CI/CD workflows | | infra_generate_ci | Regenerate CI workflows | | validate_service | Validate service structure | | remove_scheduler | Remove a scheduled job from cloud |

Resources

| Resource | Description | | ----------------- | ---------------------------------------------------------------------------------------------------------------------- | | Project state (8) | Services list, environments, config, infrastructure settings, deployed services, secrets, schedulers, migration status | | Secrets context | Local and cloud secret names with diff | | Kong routes | Current gateway routing configuration | | Guides (4) | Framework guide, workflow guide, nest-common guide, config guide |

Architecture

The MCP server is a thin layer over the tsdevstack CLI:

  • Query tools either read local config files directly or wrap npx tsdevstack commands
  • Action tools delegate to runCommand() which spawns npx tsdevstack <command> as a child process
  • Resources read project files and provide contextual documentation

License

MIT