{"at":"2026-11-23T00:16:19.518Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:16:19.866Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:16:19.967Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:16:20.341Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"@yawlabs/npmjs-mcp","version":"0.17.3"}}}}
{"at":"2026-11-23T00:16:20.341Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:16:20.341Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:16:20.347Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Search npm packages"},"description":"Search the npm registry for packages. Supports text search and qualifiers like 'keywords:mcp', 'author:user', 'maintainer:user', 'scope:org', 'not:insecure', 'is:unstable'.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"from":{"description":"Offset for pagination","minimum":0,"type":"number"},"maintenance":{"description":"Weight for maintenance score (0-1)","maximum":1,"minimum":0,"type":"number"},"popularity":{"description":"Weight for popularity score (0-1)","maximum":1,"minimum":0,"type":"number"},"quality":{"description":"Weight for quality score (0-1)","maximum":1,"minimum":0,"type":"number"},"query":{"description":"Search text. Supports qualifiers: keywords:x, author:x, maintainer:x, scope:x","type":"string"},"size":{"description":"Number of results (default 20, max 250)","maximum":250,"minimum":1,"type":"number"}},"required":["query"],"type":"object"},"name":"npm_search"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get package info"},"description":"Get package metadata — description, dist-tags, latest version, maintainers, license, repository, keywords. Does not include per-version details (use npm_version for that).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name (e.g. 'express' or '@anthropic-ai/sdk')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_package"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get version details"},"description":"Get detailed metadata for a specific version — dependencies, dist info, file count, size, deprecation status.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"version":{"description":"Semver version or dist-tag (default: 'latest')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_version"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List versions"},"description":"List published versions of a package with their publish dates, ordered newest first. Returns up to `limit` versions (default 50). Set limit=0 to return all.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Max versions to return, newest first (default 50, 0 = all)","minimum":0,"type":"number"},"name":{"description":"Package name","type":"string"}},"required":["name"],"type":"object"},"name":"npm_versions"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get package README"},"description":"Get the README content of a package.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"}},"required":["name"],"type":"object"},"name":"npm_readme"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get dist-tags"},"description":"Get dist-tags for a package (latest, next, beta, etc).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"}},"required":["name"],"type":"object"},"name":"npm_dist_tags"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Check TypeScript types"},"description":"Check TypeScript type support for a package — whether it ships built-in types (types/typings field) or has a DefinitelyTyped companion (@types/* package).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name (e.g. 'express' or '@anthropic-ai/sdk')","type":"string"},"version":{"description":"Semver version or dist-tag (default: 'latest')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_types"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get dependencies"},"description":"Get the dependency lists for a specific package version — production deps, devDeps, peerDeps, and optionalDeps.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"version":{"description":"Semver version or dist-tag (default: 'latest')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_dependencies"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Resolve dependency tree"},"description":"Resolve the production dependency tree for a package version (up to a configurable depth). Shows the full transitive dependency graph with versions. Issues one registry request per discovered package (10 in flight), so a wide tree at depth 4-5 can take a while; the walk is capped at 60s and returns `truncated: true` with a warning if it runs out of budget.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"depth":{"description":"Max tree depth where the root counts as level 1 (default 3 = root + 2 transitive levels, max 5)","maximum":5,"minimum":1,"type":"number"},"name":{"description":"Package name","type":"string"},"version":{"description":"Semver version or dist-tag (default: 'latest')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_dep_tree"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Check licenses"},"description":"Check the license of a package and its direct production dependencies. Flags missing or non-standard licenses. Matches single SPDX license identifiers case-insensitively (so 'mit' and 'MIT' both match). SPDX expressions like '(MIT OR Apache-2.0)' are NOT decomposed — they are flagged unless added to `allowed` verbatim. Issues 2 requests per direct dependency (10 in flight), capped at 60s; deps not reached in time come back as `NOT_CHECKED` (and are flagged, never treated as allowed).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"allowed":{"description":"SPDX license identifiers to treat as allowed (default: MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0, 0BSD, Unlicense)","items":{"type":"string"},"type":"array"},"name":{"description":"Package name","type":"string"},"version":{"description":"Semver version or dist-tag (default: 'latest')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_license_check"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get download count"},"description":"Get total download count for a package over a period (last-day, last-week, last-month, last-year, or a custom date range like 2025-01-01:2025-12-31).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"period":{"description":"Period: 'last-day', 'last-week', 'last-month', 'last-year', or 'YYYY-MM-DD:YYYY-MM-DD' (default: 'last-week')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_downloads"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get daily downloads"},"description":"Get daily download counts for a package over a period. Returns per-day breakdown.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"period":{"description":"Period: 'last-week', 'last-month', 'last-year', or 'YYYY-MM-DD:YYYY-MM-DD' (default: 'last-month')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_downloads_range"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Bulk download comparison"},"description":"Compare download counts for multiple packages over a period. Up to 128 packages. Scoped packages (@scope/name) are NOT supported by the bulk endpoint — call npm_downloads separately for each scoped package.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"packages":{"description":"Array of package names to compare (unscoped only)","items":{"type":"string"},"maxItems":128,"minItems":1,"type":"array"},"period":{"description":"Period (default: 'last-week')","type":"string"}},"required":["packages"],"type":"object"},"name":"npm_downloads_bulk"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Per-version downloads"},"description":"Get download counts broken down by version for the last week. Shows version adoption.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"period":{"description":"Period: 'last-day', 'last-week', 'last-month' (default: 'last-week')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_version_downloads"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Audit packages"},"description":"Quick vulnerability check for specific packages and versions using the bulk advisory API. Returns matching advisories with severity, CVEs, and patched versions. For richer detail (CVSS scores, CWEs, fix recommendations), use npm_audit_deep instead.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"packages":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"description":"Object mapping package names to arrays of version strings, e.g. {\"lodash\": [\"4.17.20\"]}","propertyNames":{"type":"string"},"type":"object"}},"required":["packages"],"type":"object"},"name":"npm_audit"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Deep security audit"},"description":"Full security audit on a dependency set — returns detailed advisories with CVSS scores, CWEs, affected version ranges, fix recommendations, and full vulnerability metadata. Uses the npm audit v1 endpoint which provides richer detail than the bulk advisory API (npm_audit). Requires you to provide the dependency map (use npm_dependencies to get it first).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"dependencies":{"additionalProperties":{"type":"string"},"description":"Dependencies to audit as { \"package\": \"version\" }, e.g. { \"express\": \"4.17.1\" }","propertyNames":{"type":"string"},"type":"object"},"name":{"description":"Project name","type":"string"},"version":{"description":"Project version (default: '1.0.0')","type":"string"}},"required":["name","dependencies"],"type":"object"},"name":"npm_audit_deep"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get signing keys"},"description":"Get the npm registry's ECDSA signing keys used to verify package signatures.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"npm_signing_keys"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Compare packages"},"description":"Compare 2-5 packages side-by-side — downloads, version, license, maintainers, size, last publish, and security status. Great for 'should I use X or Y?' decisions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"packages":{"description":"Package names to compare","items":{"type":"string"},"maxItems":5,"minItems":2,"type":"array"}},"required":["packages"],"type":"object"},"name":"npm_compare"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Package health check"},"description":"Assess the health of a package — maintenance activity, download trend, security status, deprecation, and documentation quality.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"}},"required":["name"],"type":"object"},"name":"npm_health"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Package maintainers"},"description":"Get current maintainers and their publish history for a package.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"}},"required":["name"],"type":"object"},"name":"npm_maintainers"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Release frequency"},"description":"Analyze the release cadence of a package — publish timeline, gaps, and whether the project is actively maintained.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Number of recent releases to analyze (default 20)","maximum":100,"minimum":1,"type":"number"},"name":{"description":"Package name","type":"string"}},"required":["name"],"type":"object"},"name":"npm_release_frequency"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Registry download stats"},"description":"Get total npm-wide download counts for a period. Shows overall registry activity.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"period":{"description":"Period: 'last-day', 'last-week', 'last-month' (default: 'last-week')","type":"string"}},"type":"object"},"name":"npm_registry_stats"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":true,"title":"Recent registry changes"},"description":"Get the most recent package publishes/updates from the npm registry via the CouchDB changes feed. Note: uses replicate.npmjs.com which may have intermittent availability.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Number of recent changes (default 25, max 100)","maximum":100,"minimum":1,"type":"number"}},"type":"object"},"name":"npm_recent_changes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"npm operations playbook"},"description":"Return canonical recipes for common npm operations — which MCP tool to call for which op, CLI fallbacks when the MCP server can't handle something, and message format guidance. Call this FIRST when you're not sure how to do an npm operation. Prevents reinventing approaches that don't work.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"npm_ops_playbook"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Check npm auth"},"description":"Check the currently authenticated npm user. Verifies the NPM_TOKEN is valid and returns the associated username. Essential for debugging auth issues before publishing.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"npm_whoami"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get npm profile"},"description":"Get the authenticated user's npm profile — name, email, 2FA status, creation date. Useful for checking whether 2FA is enabled (which affects token requirements for publishing).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"npm_profile"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List npm tokens"},"description":"List all access tokens for the authenticated npm user. Shows token type, creation date, CIDR restrictions, and read-only status. Critical for finding reusable automation/granular tokens that cover your org scope — avoids the common mistake of creating duplicate tokens or using publish tokens in CI (which still require OTP).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"page":{"description":"Page number for pagination (default: 0)","minimum":0,"type":"number"},"perPage":{"description":"Results per page (default: 25)","maximum":100,"minimum":1,"type":"number"}},"type":"object"},"name":"npm_tokens"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Verify token capabilities"},"description":"Verify the NPM_TOKEN and surface its capabilities — username, 2FA status, and whether writes are likely to succeed. Call this FIRST when debugging any write failure to rule out auth issues before trying other fixes. Faster than running writes and interpreting 401/403 errors.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"npm_verify_token"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List user packages"},"description":"List all packages published by a specific npm user. Shows package names and the user's access level for each. Requires authentication.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"username":{"description":"npm username","type":"string"}},"required":["username"],"type":"object"},"name":"npm_user_packages"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List org members"},"description":"List all members of an npm organization with their roles (owner, admin, developer). Requires authentication as an org member.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"org":{"description":"Organization name (without @ prefix)","type":"string"}},"required":["org"],"type":"object"},"name":"npm_org_members"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List org packages"},"description":"List all packages accessible to an npm organization with their access levels. Shows what the org owns or has been granted access to.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"org":{"description":"Organization name (without @ prefix)","type":"string"}},"required":["org"],"type":"object"},"name":"npm_org_packages"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List org teams"},"description":"List all teams within an npm organization. Requires authentication as an org member.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"org":{"description":"Organization name (without @ prefix)","type":"string"}},"required":["org"],"type":"object"},"name":"npm_org_teams"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List team packages"},"description":"List all packages a specific team has access to and their permission levels (read-only or read-write). Useful for auditing team permissions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"org":{"description":"Organization name (without @ prefix)","type":"string"},"team":{"description":"Team name","type":"string"}},"required":["org","team"],"type":"object"},"name":"npm_team_packages"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List team members"},"description":"List all members of a team with their roles (e.g. 'developer'). Complements npm_team_member_add and npm_team_member_remove — use this to audit who is currently on the team before adding or removing members.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"org":{"description":"Organization name (without @ prefix)","type":"string"},"team":{"description":"Team name","type":"string"}},"required":["org","team"],"type":"object"},"name":"npm_team_members"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Package collaborators"},"description":"Get all users who have access to a package and their permission levels (read-only, read-write). Useful for verifying who can publish to a package before setting up CI/CD.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name (e.g. 'express' or '@yawlabs/npmjs-mcp')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_collaborators"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Package access settings"},"description":"Get package access settings — visibility (public/private), whether publish requires 2FA, and whether automation tokens can bypass 2FA. Critical for understanding why CI publishing fails: if publish_requires_tfa is true but automation_token_overrides_tfa is false, automation tokens cannot publish.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name (e.g. 'express' or '@yawlabs/npmjs-mcp')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_package_access"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Package provenance"},"description":"Retrieve Sigstore attestations for a specific package version. Shows SLSA provenance (which CI built it, from which repo/commit) and publish attestations. NOTE: this tool RETRIEVES attestations from the registry -- it does NOT perform cryptographic signature, certificate-chain, or Rekor transparency-log verification. Use a dedicated Sigstore client to cryptographically verify the bundles.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name (e.g. '@anthropic-ai/sdk')","type":"string"},"version":{"description":"Exact semver version (e.g. '1.0.0')","type":"string"}},"required":["name","version"],"type":"object"},"name":"npm_provenance"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List trusted publishers"},"description":"List trusted publishing configurations for a package. Shows OIDC trust relationships with CI/CD providers (GitHub Actions, GitLab CI, CircleCI) that allow tokenless publishing. Requires authentication with write access to the package.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name (e.g. 'express' or '@yawlabs/npmjs-mcp')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_trusted_publishers"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Check npm auth health"},"description":"Quick auth health check — returns structured data about npm auth status, token capability, and whether headless (CI/agent) publishing is possible. Run this BEFORE attempting any publish operation. Returns canPublishHeadless boolean and a clear recommendation.\n\nMCP servers are called by AI agents which CANNOT open browsers or enter OTP codes. This tool detects that and provides the exact terminal command for the human to run instead of suggesting unworkable retries.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"npm_check_auth"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Publish preflight check"},"description":"Comprehensive pre-publish validation — run before publishing ANY npm package. Returns an actionable checklist with pass/fail/warn for each item.\n\nASSUMES NON-INTERACTIVE CONTEXT BY DEFAULT because MCP servers are called by AI agents that:\n- CANNOT open browsers (so --auth-type=web is useless)\n- CANNOT enter OTP codes\n- CANNOT retry with 2FA — this is a hand-off to the human\n\nChecks: auth token validity, 2FA requirements, token type inference, org-level token reuse, package name availability, maintainer access, scoped package settings.\n\nWhen issues are found, returns structured actions with exact commands for the HUMAN to run in their terminal — never suggests actions an agent cannot perform.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name to publish (e.g. '@yawlabs/npmjs-mcp')","type":"string"}},"required":["name"],"type":"object"},"name":"npm_publish_preflight"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Deprecate package"},"description":"Deprecate a package or specific versions. Shows a warning message on install. Uses the HTTP API with NPM_TOKEN, so no CLI login or OTP prompt is involved; a token without 2FA bypass is refused with 401 or 403. Registry hard limit: deprecation messages must be <= 1024 characters. A message over the limit, or a versionRange matching no published version, is rejected locally as HTTP 400 before any write; a 422 from the registry describes the packument that was sent. Message punctuation is never checked.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"message":{"description":"Deprecation message. Use npm_undeprecate to clear.","type":"string"},"name":{"description":"Package name (e.g. '@yawlabs/spend')","type":"string"},"versionRange":{"description":"Semver range. Omit to deprecate ALL versions. Example: '<1.0.0' or '0.3.x'. Standard semver applies — bare integers are x-ranges (e.g. '0' means '0.x.x', not exact version 0). For a single version use '=1.2.3'.","type":"string"}},"required":["name","message"],"type":"object"},"name":"npm_deprecate"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Undeprecate package"},"description":"Clear the deprecation message from a package or specific versions. Equivalent to npm_deprecate with an empty message but more explicit about intent.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"versionRange":{"description":"Semver range. Omit to undeprecate ALL versions.","type":"string"}},"required":["name"],"type":"object"},"name":"npm_undeprecate"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Unpublish version"},"description":"Unpublish a specific version of a package. IRREVERSIBLE: once unpublished, the version cannot be re-published and will be blocked for 72 hours. Only works within 72 hours of the original publish for most packages. Requires explicit confirm: true to prevent accidents. Follows the npm CLI flow (mutate packument + delete tarball). For full-package unpublish use npm_unpublish_package. Dist-tag handling: any dist-tag that pointed at the unpublished version is removed. Only `latest` is auto-reassigned (to the highest remaining stable version). Other tags like `next`/`beta` are left unset — reassign them explicitly with npm_dist_tag_set if needed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"const":true,"description":"Must be literally true. Guards against accidental unpublish.","type":"boolean"},"name":{"description":"Package name","type":"string"},"version":{"description":"Specific version to unpublish (e.g. '1.2.3')","type":"string"}},"required":["name","version","confirm"],"type":"object"},"name":"npm_unpublish_version"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Unpublish entire package"},"description":"Unpublish an ENTIRE package (all versions). DELETE /{pkg}/-rev/{rev}. IRREVERSIBLE: the name is blocked for 72 hours and cannot be re-published. For single-version unpublish prefer npm_unpublish_version. Requires confirm: true.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"const":true,"description":"Must be literally true. Guards against accidental full unpublish.","type":"boolean"},"name":{"description":"Package name","type":"string"}},"required":["name","confirm"],"type":"object"},"name":"npm_unpublish_package"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Set dist-tag"},"description":"Point a dist-tag (e.g. 'latest', 'beta', 'next') at a specific version. Common uses: promote a beta to latest, roll back latest to a prior version, maintain separate channels.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"tag":{"description":"Dist-tag name (e.g. 'latest', 'beta', 'next')","type":"string"},"version":{"description":"Version the tag should point to","type":"string"}},"required":["name","tag","version"],"type":"object"},"name":"npm_dist_tag_set"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Remove dist-tag"},"description":"Remove a dist-tag from a package. The 'latest' tag cannot be removed, only reassigned.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"tag":{"description":"Dist-tag name to remove","type":"string"}},"required":["name","tag"],"type":"object"},"name":"npm_dist_tag_remove"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Add package owner"},"description":"Add a user as a maintainer of a package. They will have publish and write permissions. Resolves the user's email via /-/user/ (no need to supply it). Use npm_collaborators to verify before adding.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"username":{"description":"npm username to add as maintainer","type":"string"}},"required":["name","username"],"type":"object"},"name":"npm_owner_add"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Remove package owner"},"description":"Remove a user from a package's maintainer list. Refuses if it would leave the package with zero maintainers (lockout prevention).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Package name","type":"string"},"username":{"description":"npm username to remove","type":"string"}},"required":["name","username"],"type":"object"},"name":"npm_owner_remove"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Set package access level"},"description":"Set package access level: 'public' or 'restricted' (private). 'private' is accepted as an alias for 'restricted' for ergonomics -- both map to the registry wire value 'restricted'. Unscoped packages are always public. Restricted access requires a paid npm account.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"access":{"description":"Access level ('private' maps to 'restricted' on the wire)","enum":["public","private","restricted"],"type":"string"},"name":{"description":"Package name","type":"string"}},"required":["name","access"],"type":"object"},"name":"npm_access_set"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Set package 2FA publish policy"},"description":"Configure 2FA requirement for publishing: 'none' (off), 'publish' (2FA required), 'automation' (2FA required but automation tokens can bypass).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"level":{"description":"MFA level for publish","enum":["none","publish","automation"],"type":"string"},"name":{"description":"Package name","type":"string"}},"required":["name","level"],"type":"object"},"name":"npm_access_set_mfa"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Grant team package permission"},"description":"Grant a team read-only or read-write permission on a package. Scope and team are passed as @scope:team (e.g. '@yawlabs:devs'). Requires org admin or team admin.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"package":{"description":"Package name. Field is named 'package' to match the npm CLI (diverges from 'name' used elsewhere in this server).","type":"string"},"permissions":{"description":"Permission level","enum":["read-only","read-write"],"type":"string"},"team":{"description":"Team in the form '@scope:team' (e.g. '@yawlabs:devs')","type":"string"}},"required":["team","package","permissions"],"type":"object"},"name":"npm_team_grant"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Revoke team package permission"},"description":"Revoke a team's access to a package. Team is passed as '@scope:team'. Does not delete the team itself — use npm_team_delete for that.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"package":{"description":"Package name. Field is named 'package' to match the npm CLI (diverges from 'name' used elsewhere in this server).","type":"string"},"team":{"description":"Team in the form '@scope:team'","type":"string"}},"required":["team","package"],"type":"object"},"name":"npm_team_revoke"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Create team"},"description":"Create a team inside an organization. Team is passed as '@scope:team'.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"description":{"description":"Optional team description","type":"string"},"team":{"description":"Team in the form '@scope:team'","type":"string"}},"required":["team"],"type":"object"},"name":"npm_team_create"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Delete team"},"description":"Delete a team. Team is passed as '@scope:team'. Revokes all package permissions that team held, and team memberships are also removed. Requires confirm: true — this removes the team and all its package grants in one call. List the team's current grants with npm_team_packages first if you need to preserve them.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"const":true,"description":"Must be literally true. Guards against accidental team deletion.","type":"boolean"},"team":{"description":"Team in the form '@scope:team'","type":"string"}},"required":["team","confirm"],"type":"object"},"name":"npm_team_delete"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Add team member"},"description":"Add a user to a team. Team is '@scope:team'. User must already be in the org.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"team":{"description":"Team in the form '@scope:team'","type":"string"},"user":{"description":"npm username","type":"string"}},"required":["team","user"],"type":"object"},"name":"npm_team_member_add"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Remove team member"},"description":"Remove a user from a team. Team is '@scope:team'. User remains in the org.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"team":{"description":"Team in the form '@scope:team'","type":"string"},"user":{"description":"npm username","type":"string"}},"required":["team","user"],"type":"object"},"name":"npm_team_member_remove"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Set org member"},"description":"Add a user to an org or change their role. Roles: 'developer', 'admin', 'owner'. If the user is already in the org, updates the role. Omitting `role` keeps the member's current role: this tool reads the roster first and re-sends the existing role explicitly, because the registry DEFAULTS an omitted role to 'developer' rather than preserving it (which would silently demote an admin or owner). For a user who is not yet a member, omitting `role` adds them as 'developer'.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"const":true,"description":"Must be literally true. Guards against accidental org membership changes.","type":"boolean"},"org":{"description":"Organization name (with or without leading @)","type":"string"},"role":{"description":"Role to assign","enum":["developer","admin","owner"],"type":"string"},"user":{"description":"npm username","type":"string"}},"required":["org","user","confirm"],"type":"object"},"name":"npm_org_member_set"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Remove org member"},"description":"Remove a user from an org. Their team memberships in that org are also removed. Requires confirm: true — team memberships cascade and cannot be selectively preserved.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"const":true,"description":"Must be literally true. Guards against accidental member removal.","type":"boolean"},"org":{"description":"Organization name","type":"string"},"user":{"description":"npm username","type":"string"}},"required":["org","user","confirm"],"type":"object"},"name":"npm_org_member_remove"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Revoke access token"},"description":"Revoke an access token by its key (UUID from npm_tokens). Requires confirm: true. Revoking the token currently in use by NPM_TOKEN will break the next call. Creating tokens is NOT exposed because the endpoint requires the user password — create via https://www.npmjs.com/settings/~/tokens instead.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"const":true,"description":"Must be literally true. Guards against revoking the token you're authenticating with.","type":"boolean"},"tokenKey":{"description":"Token key (UUID shown by npm_tokens)","type":"string"}},"required":["tokenKey","confirm"],"type":"object"},"name":"npm_token_revoke"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Add webhook"},"description":"Create a registry webhook. Target is 'pkg' or '@scope/pkg' for a package, '@scope' for a scope, or '~user' for a user's packages. Endpoint is the HTTPS URL to POST events to; secret is used to HMAC-sign payloads. The secret is never echoed back in tool responses.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"endpoint":{"description":"HTTPS URL that will receive POST events","format":"uri","type":"string"},"secret":{"description":"Secret used to HMAC-sign webhook payloads","type":"string"},"target":{"description":"Hook target: 'pkg', '@scope/pkg', '@scope', or '~user'","type":"string"}},"required":["target","endpoint","secret"],"type":"object"},"name":"npm_hook_add"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List webhooks"},"description":"List webhooks. Optionally filter by package name. Secrets are redacted from responses.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Max results","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"offset":{"description":"Pagination offset","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"package":{"description":"Filter by package name","type":"string"}},"type":"object"},"name":"npm_hook_list"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Get webhook"},"description":"Get a single webhook by its ID. The stored secret is redacted from the response.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"id":{"description":"Hook ID (UUID from npm_hook_list)","type":"string"}},"required":["id"],"type":"object"},"name":"npm_hook_get"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Update webhook"},"description":"Replace a webhook's endpoint AND signing secret. Both are required: the registry PUT overwrites the hook config, so this call always rotates the secret to whatever you pass — supply the current secret if you only mean to change the endpoint. The returned hook object has the secret redacted.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"endpoint":{"description":"HTTPS URL for the hook (required — the PUT replaces the whole config)","format":"uri","type":"string"},"id":{"description":"Hook ID","type":"string"},"secret":{"description":"Signing secret to store. Always written; pass the existing secret to leave it effectively unchanged.","type":"string"}},"required":["id","endpoint","secret"],"type":"object"},"name":"npm_hook_update"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false,"title":"Remove webhook"},"description":"Delete a webhook by ID.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"id":{"description":"Hook ID","type":"string"}},"required":["id"],"type":"object"},"name":"npm_hook_remove"}]}}}
