Skip to content
Project

MCP TypeScript SDK

Official TypeScript SDK for MCP servers and clients.

Stars
14k
Forks
2.4k
Open issues
705
Latest release
v2.4.0
License
NOASSERTION
Language
TypeScript
Stars
latest
14k▲ 52
Forks
latest
2.4k▲ 43
Open issues + PRs
latest
705▲ 40
Merged PRs (30d)
latest
6▲ 3
PR authors (90d)
latest
2
Releases (365d)
latest
10

Daily snapshots since metrics history started (8 days so far); trends need at least a week.

Contribute

Contributing guide
CONTRIBUTING ↗
Open wanted issues
4 good first issue, 7 help wanted
Merged PRs (30d)
6
Release cadence
10 in 365 daysmedian 0 days apart

GitHub community profile 87% · code of conduct. Maintainer response time is not collected yet.

Top ranked issues

Good first issueMCP TypeScript SDK#262766

Docs: passing z.object() as inputSchema on v1 fails silently (empty schema) or cryptically (tools/list crash) — not covered in troubleshooting or migration guide

Summary On SDK v1 (still latest on npm as of this writing — 1.30.0), passing a ZodObject ( z.object({...}) ) where the API expects a Zod raw shape ( { field: z.string() } ) produces failure modes that are either silent or cryptic , depending on the version and the API used. None…

good first issue

Demand: 0 reactions, 7 comments · Maintainer engagement: 6 PRs merged in the project in 30 days · Feasibility: labelled as a starter issue · Freshness: updated 7 days ago

Good first issueMCP TypeScript SDK#216560

AbortSignal cancellation throws `SdkErrorCode.RequestTimeout` instead of a distinct abort error

Describe the bug When you cancel a request using AbortSignal , the error you get back has code: 'REQUEST TIMEOUT' — the same code as an actual timeout. There's no way to tell them apart. I had logic like this in my app: ts if (error.code === SdkErrorCode.RequestTimeout) {…

good first issue

Demand: 0 reactions, 6 comments · Maintainer engagement: 6 PRs merged in the project in 30 days · Feasibility: labelled as a starter issue · Freshness: updated 29 days ago

Good first issueMCP TypeScript SDK#266159

Streamable HTTP SSE tests assume multiple events share one fetch chunk

Summary packages/middleware/node/test/streamableHttp.test.ts has tests that call reader.read() once and then assert the accumulated text contains multiple SSE events. On Node v26.7.0, fetch can deliver those SSE events in separate chunks, so the middleware behavior works but the…

good first issue

Demand: 0 reactions, 4 comments · Maintainer engagement: 6 PRs merged in the project in 30 days · Feasibility: labelled as a starter issue · Freshness: updated 23 days ago

Good first issueMCP TypeScript SDK#65856

update server examples to cover external authentication servers

Is your feature request related to a problem? Please describe. RFC 8707 Describe the solution you'd like Add a new example forked from src/examples/server/simpleStreamableHttp.ts to support an external authentication server (AS). May want to cater to JWT cases and/or absence of…

good first issue

Demand: 0 reactions, 3 comments · Maintainer engagement: 6 PRs merged in the project in 30 days · Feasibility: labelled as a starter issue · Freshness: updated 33 days ago

Help wantedMCP TypeScript SDK#112453

Support Secure Hashed Client Secrets in OAuthRegisteredClientsStore

Is your feature request related to a problem? Please describe. Currently, the OAuthRegisteredClientsStore interface does not support storing hashed client secrets or verifying them using standard password hashing algorithms. As a result, implementations often store client…

help wanted

Demand: 0 reactions, 7 comments · Maintainer engagement: 6 PRs merged in the project in 30 days · Feasibility: help wanted (scope not marked as small) · Freshness: updated 11 days ago

Opportunities

6 concerning this

Review · 3open tab →

RFC / designMCP TypeScript SDK#251048

Mid-session re-auth after refresh-token expiry dead-ends: send() gets "REDIRECT" and throws UnauthorizedError without ever exchanging the new code

Summary When an access token and its refresh token have both expired during an active session, StreamableHTTPClientTransport starts a fresh authorization-code flow. The browser opens, the user logs in, and the authorization server redirects back with a new code. The problem is…

open design/roadmap
RFC / designMCP TypeScript SDK#250543

v2: setRequestHandler/setNotificationHandler require a method-string literal — re-accept the schema object (or export typed method tokens)

Summary In v2, Protocol.setRequestHandler / setNotificationHandler require a method-string literal as the first argument and no longer accept the request/notification Zod schema object (the v1 API). Two consequences motivated this request while migrating a client: 1. v1-peer…

open design/roadmapproposed by a maintainer

Signals · 3open tab →

Recurring pain

“silently dropped” in open issues of 19 projects

19 projects29 open issues
Recurring pain

“memory leak” in open issues of 18 projects

18 projects28 open issues
Recurring pain

“silently skips” in open issues of 10 projects

10 projects12 open issues

Top contributors

12

Releases & tracking issues

11