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

@channel.io/mclip

v0.2.0

Published

Hybrid Swagger/OpenAPI code generator for Go CLI and Go MCP servers

Downloads

257

Readme

mclip

mclip generates a Go CLI and a Go MCP server from Swagger/OpenAPI.

It is designed as an open-source first tool that can also be used inside Channel:

  • npx entrypoint for adoption.
  • Go codegen core for speed and extensibility.
  • Generated Go CLI for single-binary API tooling.
  • Generated Go MCP server using the official Go MCP SDK.
  • Auth hooks instead of fragile Swagger-based auth guessing.

Usage

npx @channel.io/mclip generate

Non-interactive generation:

npx @channel.io/mclip generate \
  --swagger ./swagger.json \
  --out ./generated/sample \
  --name sample \
  --categories Utility \
  --cli \
  --mcp \
  --auth env \
  --mcp-transport both \
  --yes

What Gets Generated

mclip writes a standalone Go module to the output directory.

Generated projects can include:

  • A Cobra-based CLI with api list, api run, and tag commands.
  • A Go MCP server with stdio, http, or both transport support.
  • A shared operation catalog and runner.
  • noop or env-token auth hook.
  • A generated GitHub Actions workflow for build verification.

Supported Inputs

mclip accepts local files or URLs for Swagger/OpenAPI documents.

Supported formats:

  • Swagger 2.0 or OpenAPI 3.x.
  • JSON or YAML.
  • Tagged operations for category selection.
  • Untagged operations, grouped under default.

Auth

mclip does not infer auth requirements from Swagger/OpenAPI.

Generated auth modes:

  • noop: no auth header is applied.
  • env: API_AUTH_HEADER and API_AUTH_TOKEN are injected into requests.

Service-specific auth can be added by replacing the generated auth provider.

Development

pnpm install
pnpm test
pnpm build:core

cd core
go test ./...

Run the local wrapper:

pnpm mclip generate --help

Release

Releases are managed with release-please.

Merging a release PR creates a GitHub release. Publishing to npm is handled by .github/workflows/npm-publish.yml through npm trusted publishing with GitHub Actions OIDC, so no long-lived NPM_TOKEN is required.

Configure the trusted publisher on npm with:

  • Package: @channel.io/mclip
  • Owner/repository: channel-io/mclip
  • Workflow filename: npm-publish.yml

License

MIT