Skip to content

Error: TypeError: this._buffer.subarray is not a function #1096

Open
@cicauart

Description

@cicauart

Component: @modelcontextprotocol/sdk
Context: Occurs when attempting to send commands to the MCP server via stdin (using echo or node -e to pipe JSON).
Additional details:

  • The server starts successfully with npm start.
  • The TypeError occurs in node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js:18:37.
  • A "JavaScript heap out of memory" error is also observed.
  • The warning "Warning: sharp module not available, using fallback image processing" persists, which could indicate an issue with the system dependencies for sharp. Current status of issues:
  • The OpenRouter Multimodal MCP server starts and works, but does not accept commands via stdin due to an issue in the SDK.
  • The sharp module is not fully functional, which could affect image processing.

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