nsolid-plugin
N|Solid Plugin installs NodeSource AI skills and MCP servers into Claude Code, Codex CLI, OpenCode, Antigravity CLI, and Pi Agent. The repo keeps one canonical skill source, a shared core CLI/setup package, a real Pi package, and generated native plugin artifacts for Claude, Codex, and Antigravity. OpenCode remains CLI-only until its plugin distribution model is clearer.
Supported harnesses
| Harness | Plugin model | Trigger |
|---|
| Claude Code | Root GitHub marketplace/plugin + .claude-plugin/plugin.json | Native plugin install, then explicit setup |
| Codex CLI | Root GitHub marketplace/plugin + .codex-plugin/plugin.json | Native plugin install, then explicit setup |
| OpenCode | CLI direct install (user-level skills + MCP config) | nsolid-plugin setup --harness opencode (auth + writes config); nsolid-plugin install --harness opencode refreshes it |
| Antigravity CLI | Root GitHub plugin + plugin.json | agy plugin install <repo-url>, then explicit setup |
| Pi Agent | npm package + pi.skills | pi install npm:nsolid-pi-plugin, nsolid-plugin setup --harness pi, then pi install npm:pi-mcp-adapter |
No harness relies on npm postinstall hooks. See openspec/changes/cross-harness-plugin-installer/design.md and openspec/changes/cross-harness-plugin-installer/specs/installation-and-auth.md for the full design rationale.
What it includes
- 18 Node.js operations skills for memory leaks/spikes, CPU spikes, event loop delays, traces, capturing, analyzing and downloading saved N|Solid assets, vulnerability analysis, dependency audits, package and Node.js upgrades, benchmarks, SBOM generation, optimizing a selected function, optimization validation, and switching NodeSource organizations.
- Three MCP servers:
nsolid-console, ns-benchmark, and ncm.
- Explicit OAuth setup against NodeSource accounts. You need a NodeSource account with access to the target N|Solid organization.
Structure
nsolid-plugin/
├── packages/
│ ├── core/ # Shared CLI/setup/fallback logic + npm CLI package
│ └── pi-plugin/ # Pi Agent package
├── .claude-plugin/ # Claude marketplace + plugin manifest
├── .agents/plugins/ # Codex marketplace manifest
├── .codex-plugin/ # Codex plugin manifest
├── skills/ # Canonical N|Solid skills and root plugin payload
├── skill-assets/ # Shared helper sources copied into skills/package artifacts
├── bundle.json # Canonical skill + MCP server descriptor
├── plugin.json # Antigravity root plugin manifest
└── pnpm-workspace.yaml
Skill distribution model
Skills are canonical in the repository-root skills/ directory. The repo root is also the GitHub-installable plugin payload for Claude, Codex, and Antigravity. Pi and the npm CLI package receive materialized skills during package prepack.
| Harness | Skill owner | Installer responsibility |
|---|
| Claude | Root plugin | Native marketplace/plugin install; setup for auth + bridge |
| Codex | Root plugin | Native marketplace/plugin install; setup for auth + bridge |
| Antigravity | Root plugin | agy plugin install <repo-url>; setup for auth + bridge |
| Pi | Pi npm package (pi.skills) | Pi package owns skills; setup writes auth/MCP config |
| OpenCode | CLI direct install | setup authenticates, prepares the bridge, and writes MCP config/skills; install refreshes the direct config as a fallback |
Authentication
The plugin uses OAuth to authenticate with NodeSource's accounts service. Authentication is explicit: plugin install paths do not open a browser. Run:
nsolid-plugin setup --harness <harness>
On setup:
- Your browser opens
accounts.nodesource.com/sign-in for login (only if credentials are missing or expired).
- A local HTTP server starts on port 8765 (fallback: 8766–8770) to receive the callback.
- The OAuth callback provides a
serviceToken, consoleId, saasToken, and consoleUrl.
- An
mcpUrl is derived by combining the callback's consoleId (the org UUID) with the trusted environment suffix of consoleUrl (e.g. saas.nodesource.io, staging.saas.nodesource.io), giving https://<organizationId>.mcp.<suffix>/.
- Credentials are stored at
~/.agents/.nodesource-auth.json with mode 0600.
- The shared MCP bridge runtime (
mcp-remote, exact pinned version) is provisioned at ~/.agents/nsolid-plugin/runtime/mcp-remote/<version>/ so MCP servers start without touching npm. The first setup needs network access for this one-time npm install; subsequent runs detect the valid runtime and skip npm entirely.
If a browser does not open automatically (headless CI, devcontainer, agent host, etc.), the CLI prints the sign-in URL to stderr — open it manually in any browser to complete the flow. Nothing sensitive (no tokens) is printed there.