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

tne-ci-mcp

v1.0.1

Published

MCP server for TNE CI/CD operations - deployable with npx

Readme

TNE CI MCP Server

A Model Context Protocol (MCP) server that provides deployment and cleanup tools for applications. This server converts existing shell scripts into programmatic tool calls that can be used by MCP clients.

Features

  • deploy-app: Deploy applications to AWS S3 and Kubernetes with full workflow automation
  • cleanup-app: Clean up application resources from AWS and Kubernetes
  • check-deployment-status: Check current deployment status across environments

Tools

deploy-app

Deploy applications with full workflow automation.

Parameters:

  • appName (optional): Application name (defaults from package.json)
  • environment (optional): Deployment environment (dev or prod, defaults to dev)
  • baseDomain (optional): Base domain for the application (defaults to tne.ai)
  • region (optional): AWS region (defaults to us-west-2)
  • skipBuild (optional): Skip npm build step (defaults to false)
  • skipK8s (optional): Skip Kubernetes VirtualService setup (defaults to false)

Example Response:

{
  "success": true,
  "deploymentId": "app-dev-20250606-134555",
  "urls": {
    "s3Direct": "http://app-dev.s3-website-us-west-2.amazonaws.com/",
    "customDomain": "https://app.dev.tne.ai/"
  },
  "resources": {
    "s3Bucket": "app-dev",
    "virtualService": "app-dev",
    "namespace": "dev"
  },
  "buildInfo": {
    "buildTime": "45.2s",
    "bundleSize": "2.1MB"
  }
}

cleanup-app

Clean up application resources from AWS and Kubernetes.

Parameters:

  • appName (optional): Application name (defaults from package.json)
  • environment (optional): Environment to clean up (dev, prod, or both, defaults to both)
  • baseDomain (optional): Base domain for the application (defaults to tne.ai)
  • region (optional): AWS region (defaults to us-west-2)
  • quickMode (optional): Quick cleanup, skip CloudFront wait (defaults to false)
  • skipK8s (optional): Skip Kubernetes cleanup (defaults to false)
  • skipConfirmation (optional): Skip confirmation prompts (defaults to false)

check-deployment-status

Check current deployment status across environments.

Parameters:

  • appName (optional): Application name (defaults from package.json)
  • environment (optional): Environment to check (dev, prod, or both, defaults to both)
  • baseDomain (optional): Base domain for the application (defaults to tne.ai)
  • region (optional): AWS region (defaults to us-west-2)

Installation

Option 1: From npm Registry (When Published)

Once published to npm, you can run it directly with npx:

# Run directly without installation
npx tne-ci-mcp

# Or install globally
npm install -g tne-ci-mcp
tne-ci-mcp

Option 2: From Source (Current)

Clone and build from source:

git clone <repository-url>
cd tne-ci-mcp
npm install
npm run build

# Run locally with npx
npx .

# Or run directly
node dist/index.js

Option 3: Local Development

For local development and testing:

cd tne-ci-mcp
npm install
npm run build
npm link  # Creates global symlink for testing

Then you can run tne-ci-mcp from anywhere.

Usage

With npx

You can run the MCP server directly using npx:

# Run the MCP server
npx tne-ci-mcp

# Or run from a published package (when published to npm)
npx tne-ci-mcp@latest

With MCP Client

Add to your MCP client configuration:

Using npx:

{
  "mcpServers": {
    "tne-ci": {
      "command": "npx",
      "args": ["tne-ci-mcp@latest"]
    }
  }
}

Using npx with working directory (recommended for deployment tools):

{
  "mcpServers": {
    "tne-ci": {
      "command": "npx",
      "args": ["tne-ci-mcp@latest"],
      "cwd": "/path/to/your/app"
    }
  }
}

Using local installation:

{
  "mcpServers": {
    "tne-ci": {
      "command": "node",
      "args": ["/path/to/tne-ci-mcp/dist/index.js"],
      "cwd": "/path/to/your/app"
    }
  }
}

Example Tool Calls

Deploy to development:

{
  "tool": "deploy-app",
  "arguments": {
    "environment": "dev"
  }
}

Deploy to production:

{
  "tool": "deploy-app",
  "arguments": {
    "environment": "prod",
    "appName": "my-app"
  }
}

Clean up all environments:

{
  "tool": "cleanup-app",
  "arguments": {
    "environment": "both",
    "quickMode": true
  }
}

Troubleshooting

MCP Client Connection Issues

If the MCP client can't connect to the server, try these steps:

  1. Test the server manually:

    npx tne-ci-mcp@latest

    You should see: TNE CI MCP Server running on stdio

  2. Check if the package is published:

    npm view tne-ci-mcp
  3. Try with explicit version:

    {
      "mcpServers": {
        "tne-ci": {
          "command": "npx",
          "args": ["[email protected]"]
        }
      }
    }
  4. Add environment variables if needed:

    {
      "mcpServers": {
        "tne-ci": {
          "command": "npx",
          "args": ["tne-ci-mcp@latest"],
          "env": {
            "NODE_ENV": "production"
          }
        }
      }
    }
  5. Check MCP client logs for specific error messages about the connection failure.

Architecture

This MCP server provides a programmatic interface to deployment operations that were previously handled by shell scripts:

  • Shell scripts → MCP tools for programmatic access
  • New: check-deployment-status tool for status monitoring
  • Comprehensive error handling and logging
  • Structured JSON responses for easy parsing

Development

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

# Lint code
npm run lint

Project Structure

tne-ci-mcp/
├── src/
│   ├── index.ts          # Entry point
│   ├── server.ts         # MCP server implementation
│   ├── tools/            # Tool implementations
│   │   ├── deploy.ts     # Deploy tool
│   │   ├── cleanup.ts    # Cleanup tool
│   │   └── status.ts     # Status tool
│   ├── services/         # Core services
│   │   ├── aws.ts        # AWS operations
│   │   ├── build.ts      # Build operations
│   │   └── kubernetes.ts # Kubernetes operations
│   └── utils/            # Utility functions
│       ├── config.ts     # Configuration management
│       ├── logger.ts     # Logging utilities
│       └── tempFiles.ts  # Temporary file management
├── config/
│   └── domains.json      # Domain configuration
└── dist/                 # Compiled JavaScript

Publishing

To make this package available via npx tne-ci-mcp, publish it to npm:

# Build the project
npm run build

# Login to npm (if not already logged in)
npm login

# Publish to npm registry
npm publish

# Or publish with public access if scoped
npm publish --access public

After publishing, users can run:

npx tne-ci-mcp@latest

Requirements

  • Node.js 18+
  • AWS CLI configured with appropriate permissions
  • kubectl configured for Kubernetes access
  • npm or yarn for package management