2 Commits
Author SHA1 Message Date
i/o agentandb3nw feae6dedfb fix(certificate): omit legacy meta fields for NPM 2.x compatibility (#17) (#19)
Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-10-14 21:06:14 -05:00
b3nwandb3nw 1dd2292383 feat: multi-instance NPM configuration (#13)
* feat: multi-instance NPM configuration

Adds NPM_INSTANCES env var (JSON map) to manage multiple NPM servers
from a single MCP instance. Every tool gains an optional 'instance'
parameter. Legacy single-instance config (NPM_API_URL/IDENTITY/SECRET)
still works unchanged. Includes list_instances tool, per-instance
proxy_defaults and log_dir, and full backward compatibility.

* fix(config): add explicit type validation for NPM_INSTANCES fields

* fix(multi-instance): fix cross-instance log leakage and order-dependent default selection

* chore(multi-instance): document NPM_DEFAULT_INSTANCE and harden logs fallback logic against cross-instance leakage

---------

Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-08-11 20:11:05 -05:00