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

@alsania-io/mcp-code-mode

v0.1.1

Published

Code-mode MCP server: connects to child MCP servers, exposes TypeScript types, and executes LLM-authored code against their tools.

Readme

@alsania-io/mcp-code-mode

Code-mode MCP server. Connects to child MCP servers, exposes their tools as TypeScript definitions, and executes LLM-authored code against them in a sandboxed node:vm context.

Collapses N tool-call round-trips into a single code execution. Inspired by CodeAct (Apple, ICML 2024), Cloudflare Code Mode, and mcpcodeserver.

Meta-tools exposed

| Tool | Purpose | |---|---| | list_servers | Enumerate configured child servers and their tool counts. | | get_tool_definitions | Return TypeScript interfaces for child tools (optionally filtered by server_names). Call this before writing code. | | generate_and_execute_code | Run LLM-authored TypeScript in a sandbox with all discovered tool functions available. |

Install

npm install @alsania-io/mcp-code-mode

Or run directly via npx:

npx @alsania-io/mcp-code-mode --config ./config.json

Config

Point --config at a JSON file describing child servers. See example-config.json.

{
  "version": 1,
  "servers": [
    { "name": "registry", "command": "node", "args": [".../mcp-server.mjs"] },
    { "name": "context7", "command": "npx", "args": ["-y", "@upstash/context7-mcp"] }
  ],
  "sandbox": { "timeoutMs": 30000, "maxOutputBytes": 200000 },
  "security": { "allowAllHosts": false, "allowedHosts": [] }
}

Env values support ${VAR} expansion from process.env at load time. Never commit real keys — use ${VAR} placeholders.

Lazy child spawning

Children are not spawned at startup. They are constructed at boot and connected on first use (list_servers, get_tool_definitions, or generate_and_execute_code). An idle code-mode process holds zero child processes. Connections are memoized and race-safe; a failed connect is recorded and does not block other children.

Development

make install     # install deps
make typecheck   # tsc --noEmit
make test        # vitest
make build       # emit dist/

License

MIT © Alsania

Imagined by Sigma. Powered by Echo.