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

glm-mcp-codex

v1.3.0

Published

GLM (Zhipu/Z.ai) as a safe, cost-aware delegate for Codex: MCP tools, a custom glm agent, a delegation skill, and optional routing hooks.

Readme

GLM MCP for Codex

Use the shared glm-mcp server as a cost-aware delegate in Codex. The package adds a Codex MCP registration, a glm custom agent, a glm-delegate skill, and optional advisory routing hooks. It does not duplicate the MCP core: it depends on the same published [email protected] runtime used by the other editions.

Install

From this repository:

cd codex
npm install
node install-codex.mjs --key YOUR_ZAI_KEY

From npm:

npm install -g glm-mcp-codex
glm-mcp-codex --key YOUR_ZAI_KEY

The installer writes only its marker-delimited section in ~/.codex/config.toml, stores credentials in ~/.codex/glm-mcp/.env, adds ~/.codex/agents/glm.toml, and adds the user skill at ~/.agents/skills/glm-delegate. It configures a 30-minute tool timeout and prompts before mutating GLM tools. It also pins the shared runtime under ~/.codex/glm-mcp, so clearing an npx cache does not break the registered server. glm_status and glm_recommend are pre-approved because they are local read-only calls.

Restart Codex, review the optional hook with /hooks, and run glm_status. The ChatGPT desktop app, Codex CLI, and IDE extension share the same MCP configuration.

Project-scoped install

node install-codex.mjs --project C:\path\to\project --key YOUR_ZAI_KEY

This writes .codex/config.toml, .codex/agents/glm.toml, .codex/hooks/, and .agents/skills/glm-delegate inside that project. Codex must trust the project before using its configuration.

Use

  • Ask Codex to use the glm agent for an explicit, self-contained subtask.
  • Call mcp__glm__glm_agent for coding work. Always pass an absolute workdir; use dry_run: true when reviewing a proposed change first.
  • Text-only work also goes through mcp__glm__glm_agent (mcp__glm__glm_delegate is opt-in: start the server with GLM_DELEGATE=on).
  • Call mcp__glm__glm_recommend when unsure; it does not call the GLM API.

Keep secrets, proprietary or security-sensitive material, images, architecture, highly parallel work, very large context, and long dependent loops on Codex. Codex sandboxing does not automatically confine an external MCP process, so grant glm_agent approval deliberately.

Hook and plugin

The installer enables an advisory UserPromptSubmit/PreToolUse hook by default. It never blocks or auto-runs GLM; it only suggests delegation. Use --no-hook to omit it.

plugin/glm-mcp-codex/ is a valid Codex plugin bundle for the skill and hook. The npm installer remains the runtime installation path because it manages the shared glm-mcp dependency and private credential file. The plugin has no embedded credentials and must be trusted before its hook runs.

Remove

node uninstall-codex.mjs
node uninstall-codex.mjs --remove-data  # also delete the private .env and usage data

Uninstall removes only files and configuration marked as owned by glm-mcp-codex.