Skip to content

npx @spotlightjs/spotlight crashes due to @modelcontextprotocol/sdk 1.25.0 export removal #1209

@Shubhdeep12

Description

@Shubhdeep12

Running Spotlight via npx @spotlightjs/spotlight fails at runtime with:

file:///Users/shubh/.npm/_npx/7fff16108b9651a6/node_modules/@hono/mcp/dist/index.js:2
import { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, ErrorCode, JSONRPCMessageSchema, SUPPORTED_PROTOCOL_VERSIONS, isInitializeRequest, isJSONRPCError, isJSONRPCRequest, isJSONRPCResponse } from "@modelcontextprotocol/sdk/types.js";
                                                                                                                                 ^^^^^^^^^^^^^^
SyntaxError: The requested module '@modelcontextprotocol/sdk/types.js' does not provide an export named 'isJSONRPCError'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:177:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:260:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:543:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)\

Reason: @modelcontextprotocol/sdk@1.25.0 removed the re-export of isJSONRPCError from @modelcontextprotocol/sdk/types.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions