Skip to content

feat(inspector): agent-facing CLI reports and MCP server#172

Merged
antfu merged 1 commit into
mainfrom
antfu/agent-cli-mcp-interface
May 30, 2026
Merged

feat(inspector): agent-facing CLI reports and MCP server#172
antfu merged 1 commit into
mainfrom
antfu/agent-cli-mcp-interface

Conversation

@antfu
Copy link
Copy Markdown
Owner

@antfu antfu commented May 30, 2026

Summary

Exposes the inspector's three reports — maintainer actions, duplicated packages, and install sizes — to AI coding agents and shell pipelines, without launching the web UI.

  • New node-modules-inspector report <maintainers|duplicates|sizes> subcommand emits a pretty ANSI table by default and pipe-safe JSON with --json.
  • New node-modules-inspector mcp subcommand starts an MCP stdio server exposing the same three reports as agent tools, with valibot-derived input/output JSON Schemas.
  • The pure aggregation logic is extracted from the Vue layer to src/shared/reports/ so the web UI, the CLI, and the MCP server all share one code path.
  • A bundled agent skill ships at skills/node-modules-inspector/SKILL.md (repo root) and gets copied into the package on prepack so skills-npm picks it up for downstream consumers.

This PR was created with the help of an agent.

Expose maintainer actions, duplicated packages, and install-size as
machine-readable reports — pretty tables by default, JSON with --json,
and the same three tools over an MCP stdio server for coding agents.
Ships a bundled agent skill at the repo root that gets copied into the
package on publish for skills-npm discovery.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 30, 2026

Open in StackBlitz

npm i https://pkg.pr.new/node-modules-inspector@172
npm i https://pkg.pr.new/node-modules-tools@172

commit: e82913c

@antfu antfu merged commit 99156d2 into main May 30, 2026
11 checks passed
@antfu antfu deleted the antfu/agent-cli-mcp-interface branch May 30, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant