Skip to content

Package attaches process signal handlers #817

@nikhilmat

Description

@nikhilmat

Describe the bug
Installing the @modelcontextprotocol/sdk package will include examples, which add signal handlers to process of application.

To Reproduce
Steps to reproduce the behavior:

  1. Install version 1.16.0 of @modelcontextprotocol/sdk
  2. Examine installed node_module folder (node_modules/@modelcontextprotocol/sdk/dist/esm/examples)
  3. Notice that examples are loaded due to exports declaration

Expected behavior
Examples should not be included in production distribution and signal handlers should not be attached

Logs
If applicable, add logs to help explain your problem.

Additional context
This causes some downstream plugins (like our webserver signal processor) to have issues. Seems like these were included unintentionally during the packaging process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions