Skip to content

modelcontextprotocol/sdk should be a peerDependency #32293

@nealeu

Description

@nealeu

Command

other

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Given how impossible it is in npm to exclude a transitive dependency, there is good reason for the @modelcontextprotocol/sdk to be a peer dependency.

Please change this so that we reduce bloat and security related overhead unless we choose to actually use it.

Minimal Reproduction

npm audit -> mcp related CVEs fail a check despite it not being used

Exception or Error


Your Environment

Angular CLI       : 21.0.5
Angular           : 21.0.8
Node.js           : 22.20.0
Package Manager   : npm 10.9.3
Operating System  : linux x64

┌───────────────────────────────────┬───────────────────┬───────────────────┐
│ Package                           │ Installed Version │ Requested Version │
├───────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular/animations               │ 21.0.8            │ 21.0.8            │
│ @angular/build                    │ 21.0.5            │ ^21.0.5           │
│ @angular/cdk                      │ 21.0.6            │ 21.0.6            │
│ @angular/cli                      │ 21.0.5            │ 21.0.5            │
│ @angular/common                   │ 21.0.8            │ 21.0.8            │
│ @angular/compiler                 │ 21.0.8            │ 21.0.8            │
│ @angular/compiler-cli             │ 21.0.8            │ 21.0.8            │
│ @angular/core                     │ 21.0.8            │ 21.0.8            │
│ @angular/forms                    │ 21.0.8            │ 21.0.8            │
│ @angular/language-service         │ 21.0.8            │ 21.0.8            │
│ @angular/localize                 │ 21.0.8            │ 21.0.8            │
│ @angular/platform-browser         │ 21.0.8            │ 21.0.8            │
│ @angular/platform-browser-dynamic │ 21.0.8            │ 21.0.8            │
│ @angular/router                   │ 21.0.8            │ 21.0.8            │
│ rxjs                              │ 7.8.2             │ 7.8.2             │
│ typescript                        │ 5.9.3             │ 5.9.3             │
│ zone.js                           │ 0.16.0            │ 0.16.0            │
└───────────────────────────────────┴───────────────────┴───────────────────┘

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions