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

@m2canvas/connect

v0.3.1

Published

Connect your local agent clients (Claude Code, Codex, Cursor, OpenCode, Qoder) to M2 Canvas over MCP in one command.

Readme

@m2canvas/connect

Connect the agent clients on your machine to M2 Canvas in one command.

npx @m2canvas/connect

It finds the supported clients you have installed, shows what it will change, and after you confirm, adds the M2 MCP server (https://mcp.m2ui.ai/mcp) to each one and opens its browser sign-in. No API key is needed.

In a terminal, it asks before changing anything and opens each client's browser sign-in, so one command finishes the whole setup.

Run by an agent (no interactive terminal, e.g. pasted from M2's "Copy to agent"), the agent passes --client <id> (claude-code, codex, cursor, opencode, qoder) so only its own client is touched. It adds the server without asking, skips the sign-ins it can't run there, and prints the remaining steps: a command to run (Codex, Cursor, OpenCode) or a place to click in the app (Claude Code, Qoder). The agent can run the commands or pass the steps on to you. Running it again lists the sign-in steps for clients that were already added.

| Client | How it is set up | Sign-in | |---|---|---| | Claude Code | claude mcp add --transport http --scope user m2 … | claude mcp login m2 | | Codex (CLI or the desktop app's bundled CLI) | appends [mcp_servers.m2] to ~/.codex/config.toml | codex mcp login m2 | | Cursor | merges m2 into ~/.cursor/mcp.json, then cursor-agent mcp enable m2 | cursor-agent mcp login m2 | | OpenCode | merges m2 into ~/.config/opencode/opencode.json, keeping the file's existing format | opencode mcp auth m2 | | Qoder (CLI + desktop app) | qodercli mcp add -s user -t http m2 … | in Qoder: Extensions → Connectors → m2 → Authorize |

Clients that already have an entry pointing at mcp.m2ui.ai, under any name, are skipped. Before a config file is edited, the original is copied to <file>.bak-m2canvas.

Options: --client <id> sets up only that client; --dry-run shows the plan without changing anything; --yes skips the confirmation.

After setup, restart each client so it loads the new server.