Skip to content

Fix NPM package name, publishing config, and dependency vulnerabilities#18

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-npm-availability-issue
Draft

Fix NPM package name, publishing config, and dependency vulnerabilities#18
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-npm-availability-issue

Conversation

Copilot AI commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

The package was unpublishable as @pixelsock/directus-mcp because package.json declared the name as directus-api-extended. Scoped packages also require an explicit public access config and a pre-publish build step since dist/ is gitignored.

Package identity & publishing

  • name: directus-api-extended@pixelsock/directus-mcp
  • bin: directus-api-extendeddirectus-mcp
  • Added "publishConfig": { "access": "public" } — scoped packages default to private without this
  • Added "prepublishOnly": "npm run build" — ensures dist/ exists before npm publish
  • Updated MCP server display name in index.ts to match

Dependency vulnerabilities (0 remaining after fixes)

Package Before After Severity
@modelcontextprotocol/inspector ^0.10.2 ^0.16.6 High — XSS→RCE via untrusted server; unauthenticated proxy
axios ^1.6.7 ^1.15.0 High — DoS, __proto__ pollution, SSRF, header injection
form-data ^4.0.0 ^4.0.4 Critical — insecure random for multipart boundary
path-to-regexp (transitive) 8.2.0 8.4.2 High — ReDoS via optional groups / multiple wildcards

Docs

  • README prerequisites updated to link both Directus Cloud and self-hosted quickstart

Copilot AI linked an issue Apr 20, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits April 20, 2026 13:59
- Rename package from `directus-api-extended` to `@pixelsock/directus-mcp`
- Update bin entry to `directus-mcp`
- Add publishConfig with access: public for scoped package
- Add prepublishOnly script to auto-build before npm publish
- Update MCP server display name to match package name
- Update README to mention self-hosted Directus support

Agent-Logs-Url: https://github.com/pixelsock/directus-mcp/sessions/75978119-bfab-48b5-9344-5cd4ac9c91f3

Co-authored-by: pixelsock <4932231+pixelsock@users.noreply.github.com>
- @modelcontextprotocol/inspector 0.10.2 → ^0.16.6
  (fixes XSS/command-execution and missing-auth CVEs)
- axios ^1.6.7 → ^1.15.0
  (fixes 4 high/moderate CVEs: DoS, proto-pollution, SSRF, header-injection)
- form-data ^4.0.0 → ^4.0.4
  (fixes critical insecure-random boundary CVE)
- path-to-regexp transitive → 8.4.2 via npm audit fix
  (fixes 2 ReDoS CVEs)

npm audit now reports 0 vulnerabilities

Agent-Logs-Url: https://github.com/pixelsock/directus-mcp/sessions/75978119-bfab-48b5-9344-5cd4ac9c91f3

Co-authored-by: pixelsock <4932231+pixelsock@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix unavailable package on NPM registry Fix NPM package name, publishing config, and dependency vulnerabilities Apr 20, 2026
Copilot AI requested a review from pixelsock April 20, 2026 14:03
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.

Unavailable on NPM

2 participants