Skip to content

Commit 2a18ca3

Browse files
committed
rename: sdk-client->client, sdk-server->server, sdk-core->core, sdk-examples-client->examples-client, sdk-examples-server->examples-server, sdk-examples-shared->examples-shared
1 parent 3e80c82 commit 2a18ca3

File tree

127 files changed

+281
-296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+281
-296
lines changed

.changeset/config.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,5 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": [
11-
"@modelcontextprotocol/sdk-examples-client",
12-
"@modelcontextprotocol/sdk-examples-server",
13-
"@modelcontextprotocol/sdk-examples-shared"
14-
]
10+
"ignore": ["@modelcontextprotocol/examples-client", "@modelcontextprotocol/examples-server", "@modelcontextprotocol/examples-shared"]
1511
}

.changeset/tender-snails-fold.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
'@modelcontextprotocol/sdk-client': patch
3-
'@modelcontextprotocol/sdk-server': patch
2+
'@modelcontextprotocol/client': patch
3+
'@modelcontextprotocol/server': patch
44
---
55

66
Initial 2.0.0-alpha.0 client and server package

CLAUDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ pnpm check:all # typecheck + lint across all packages
1616

1717
# Run a single package script (examples)
1818
# Run a single package script from the repo root with pnpm filter
19-
pnpm --filter @modelcontextprotocol/sdk-core test # vitest run (core)
20-
pnpm --filter @modelcontextprotocol/sdk-core test:watch # vitest (watch)
21-
pnpm --filter @modelcontextprotocol/sdk-core test -- path/to/file.test.ts
22-
pnpm --filter @modelcontextprotocol/sdk-core test -- -t "test name"
19+
pnpm --filter @modelcontextprotocol/core test # vitest run (core)
20+
pnpm --filter @modelcontextprotocol/core test:watch # vitest (watch)
21+
pnpm --filter @modelcontextprotocol/core test -- path/to/file.test.ts
22+
pnpm --filter @modelcontextprotocol/core test -- -t "test name"
2323
```
2424

2525
## Code Style Guidelines

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ This repository contains the TypeScript SDK implementation of the MCP specificat
2929

3030
This monorepo publishes split packages:
3131

32-
- **`@modelcontextprotocol/sdk-server`**: build MCP servers
33-
- **`@modelcontextprotocol/sdk-client`**: build MCP clients
32+
- **`@modelcontextprotocol/server`**: build MCP servers
33+
- **`@modelcontextprotocol/client`**: build MCP clients
3434

3535
Both packages have a **required peer dependency** on `zod` for schema validation. The SDK internally imports from `zod/v4`, but remains compatible with projects using Zod v3.25+.
3636

@@ -39,13 +39,13 @@ Both packages have a **required peer dependency** on `zod` for schema validation
3939
### Server
4040

4141
```bash
42-
npm install @modelcontextprotocol/sdk-server zod
42+
npm install @modelcontextprotocol/server zod
4343
```
4444

4545
### Client
4646

4747
```bash
48-
npm install @modelcontextprotocol/sdk-client zod
48+
npm install @modelcontextprotocol/client zod
4949
```
5050

5151
## Quick Start (runnable examples)
@@ -61,7 +61,7 @@ pnpm install
6161
2. **Run a Streamable HTTP example server**:
6262

6363
```bash
64-
pnpm --filter @modelcontextprotocol/sdk-examples-server exec tsx src/simpleStreamableHttp.ts
64+
pnpm --filter @modelcontextprotocol/examples-server exec tsx src/simpleStreamableHttp.ts
6565
```
6666

6767
Alternatively, from within the example package:
@@ -74,7 +74,7 @@ pnpm tsx src/simpleStreamableHttp.ts
7474
3. **Run the interactive client in another terminal**:
7575

7676
```bash
77-
pnpm --filter @modelcontextprotocol/sdk-examples-client exec tsx src/simpleStreamableHttp.ts
77+
pnpm --filter @modelcontextprotocol/examples-client exec tsx src/simpleStreamableHttp.ts
7878
```
7979

8080
Alternatively, from within the example package:

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
### Why do I see `TS2589: Type instantiation is excessively deep and possibly infinite` after upgrading the SDK?
1616

17-
This TypeScript error can appear when upgrading to newer SDK versions that support Zod v4 (for example, from older `@modelcontextprotocol/sdk` releases to newer `@modelcontextprotocol/sdk-client` / `@modelcontextprotocol/sdk-server` releases) **and** your project ends up with
18-
multiple `zod` versions in the dependency tree.
17+
This TypeScript error can appear when upgrading to newer SDK versions that support Zod v4 (for example, from older `@modelcontextprotocol/sdk` releases to newer `@modelcontextprotocol/client` / `@modelcontextprotocol/server` releases) **and** your project ends up with multiple
18+
`zod` versions in the dependency tree.
1919

2020
When there are multiple copies or versions of `zod`, TypeScript may try to instantiate very complex, cross-version types and hit its recursion limits, resulting in `TS2589`. This scenario is discussed in GitHub issue
2121
[#1180](https://github.com/modelcontextprotocol/typescript-sdk/issues/1180#event-21236550401).

docs/server.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Server overview
22

3-
This SDK lets you build MCP servers in TypeScript and connect them to different transports. For most use cases you will use `McpServer` from `@modelcontextprotocol/sdk-server` and choose one of:
3+
This SDK lets you build MCP servers in TypeScript and connect them to different transports. For most use cases you will use `McpServer` from `@modelcontextprotocol/server` and choose one of:
44

55
- **Streamable HTTP** (recommended for remote servers)
66
- **HTTP + SSE** (deprecated, for backwards compatibility only)
@@ -70,7 +70,7 @@ For more detailed patterns (stateless vs stateful, JSON response mode, CORS, DNS
7070
MCP servers running on localhost are vulnerable to DNS rebinding attacks. Use `createMcpExpressApp()` to create an Express app with DNS rebinding protection enabled by default:
7171

7272
```typescript
73-
import { createMcpExpressApp } from '@modelcontextprotocol/sdk-server';
73+
import { createMcpExpressApp } from '@modelcontextprotocol/server';
7474

7575
// Protection auto-enabled (default host is 127.0.0.1)
7676
const app = createMcpExpressApp();
@@ -85,7 +85,7 @@ const app = createMcpExpressApp({ host: '0.0.0.0' });
8585
When binding to `0.0.0.0` / `::`, provide an allow-list of hosts:
8686

8787
```typescript
88-
import { createMcpExpressApp } from '@modelcontextprotocol/sdk-server';
88+
import { createMcpExpressApp } from '@modelcontextprotocol/server';
8989

9090
const app = createMcpExpressApp({
9191
host: '0.0.0.0',
@@ -201,7 +201,7 @@ See the MCP spec sections on prompts and resources for complete details, and [`s
201201

202202
Tools, resources and prompts support a `title` field for human‑readable names. Older APIs can also attach `annotations.title`. To compute the correct display name on the client, use:
203203

204-
- `getDisplayName` from `@modelcontextprotocol/sdk-client`
204+
- `getDisplayName` from `@modelcontextprotocol/client`
205205

206206
## Multi‑node deployment patterns
207207

examples/client/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MCP TypeScript SDK Examples (Client)
22

3-
This directory contains runnable MCP **client** examples built with `@modelcontextprotocol/sdk-client`.
3+
This directory contains runnable MCP **client** examples built with `@modelcontextprotocol/client`.
44

55
For server examples, see [`../server/README.md`](../server/README.md). For guided docs, see [`../../docs/client.md`](../../docs/client.md).
66

@@ -10,7 +10,7 @@ From the repo root:
1010

1111
```bash
1212
pnpm install
13-
pnpm --filter @modelcontextprotocol/sdk-examples-client exec tsx src/simpleStreamableHttp.ts
13+
pnpm --filter @modelcontextprotocol/examples-client exec tsx src/simpleStreamableHttp.ts
1414
```
1515

1616
Or, from within this package:
@@ -42,11 +42,11 @@ Most clients expect a server to be running. Start one from [`../server/README.md
4242
Run the server first:
4343

4444
```bash
45-
pnpm --filter @modelcontextprotocol/sdk-examples-server exec tsx src/elicitationUrlExample.ts
45+
pnpm --filter @modelcontextprotocol/examples-server exec tsx src/elicitationUrlExample.ts
4646
```
4747

4848
Then run the client:
4949

5050
```bash
51-
pnpm --filter @modelcontextprotocol/sdk-examples-client exec tsx src/elicitationUrlExample.ts
51+
pnpm --filter @modelcontextprotocol/examples-client exec tsx src/elicitationUrlExample.ts
5252
```

examples/client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@modelcontextprotocol/sdk-examples-client",
2+
"name": "@modelcontextprotocol/examples-client",
33
"private": true,
44
"version": "2.0.0-alpha.0",
55
"description": "Model Context Protocol implementation for TypeScript",
@@ -34,12 +34,12 @@
3434
"client": "tsx scripts/cli.ts client"
3535
},
3636
"dependencies": {
37-
"@modelcontextprotocol/sdk-client": "workspace:^",
37+
"@modelcontextprotocol/client": "workspace:^",
3838
"ajv": "catalog:runtimeShared",
3939
"zod": "catalog:runtimeShared"
4040
},
4141
"devDependencies": {
42-
"@modelcontextprotocol/sdk-examples-shared": "workspace:^",
42+
"@modelcontextprotocol/examples-shared": "workspace:^",
4343
"@modelcontextprotocol/tsconfig": "workspace:^",
4444
"@modelcontextprotocol/eslint-config": "workspace:^",
4545
"@modelcontextprotocol/vitest-config": "workspace:^",

examples/client/src/elicitationUrlExample.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717
ListToolsRequest,
1818
OAuthClientMetadata,
1919
ResourceLink
20-
} from '@modelcontextprotocol/sdk-client';
20+
} from '@modelcontextprotocol/client';
2121
import {
2222
CallToolResultSchema,
2323
Client,
@@ -30,7 +30,7 @@ import {
3030
StreamableHTTPClientTransport,
3131
UnauthorizedError,
3232
UrlElicitationRequiredError
33-
} from '@modelcontextprotocol/sdk-client';
33+
} from '@modelcontextprotocol/client';
3434

3535
import { InMemoryOAuthClientProvider } from './simpleOAuthClientProvider.js';
3636

examples/client/src/multipleClientsParallel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { CallToolRequest, CallToolResult } from '@modelcontextprotocol/sdk-client';
1+
import type { CallToolRequest, CallToolResult } from '@modelcontextprotocol/client';
22
import {
33
CallToolResultSchema,
44
Client,
55
LoggingMessageNotificationSchema,
66
StreamableHTTPClientTransport
7-
} from '@modelcontextprotocol/sdk-client';
7+
} from '@modelcontextprotocol/client';
88

99
/**
1010
* Multiple Clients MCP Example

0 commit comments

Comments
 (0)