Skip to content

(bug) Unable to resolve "@modelcontextprotocol/sdk/client/index" #511

Closed

Description

@thearyanag

Describe the bug
Trying to integrate into a react native project, and getting

Unable to resolve "@modelcontextprotocol/sdk/client/index.js" from "src/hooks/useChat.ts"

when importing

import { Client } from "@modelcontextprotocol/sdk/client/index.js";

To Reproduce
Steps to reproduce the behavior:

  1. Install @modelcontextprotocol/sdk in any react native project
  2. Try to import the sdk in any random TS file

Expected behavior
A clear and concise description of what you expected to happen.
I expect it to import properly

Activity

  1. PhoneixT commented on May 20, 2025

    @PhoneixT

    +1

  2. kanishq1 commented on May 20, 2025

    @kanishq1

    +1

  3. ms-sch commented on May 22, 2025

    @ms-sch

    +1

  4. gabehyland commented on Jun 26, 2025

    @gabehyland

    +1

  5. added a commit that references this issue on Aug 20, 2025
  6. added
    ready for workEnough information for someone to start working on
    P0Broken core functionality, security issues, critical missing feature
    on Oct 27, 2025
  7. KKonstantinov commented on Dec 5, 2025

    @KKonstantinov
    Contributor

    Planned for v2 (#809) and planned in PR #870

  8. added
    P1Significant bug affecting many users, highly requested feature
    and removed
    P0Broken core functionality, security issues, critical missing feature
    on Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Significant bug affecting many users, highly requested featurebugSomething isn't workingready for workEnough information for someone to start working on

    Type

    No type

    Projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions