Skip to content

Commit cddcb0b

Browse files
author
Piotr Paulski
committed
Move modelcontextprotocol-sdk into the main bundle.
1 parent 8cd83af commit cddcb0b

File tree

15 files changed

+21
-28
lines changed

15 files changed

+21
-28
lines changed

rollup.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ const bundleDependency = (
111111

112112
export default [
113113
bundleDependency('./build/src/third_party/index.js'),
114-
bundleDependency('./build/src/third_party/modelcontextprotocol-sdk/index.js'),
115114
bundleDependency(
116115
'./build/src/third_party/puppeteer-core/index.js',
117116
{

src/McpResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type {McpContext} from './McpContext.js';
2020
import type {
2121
ImageContent,
2222
TextContent,
23-
} from './third_party/modelcontextprotocol-sdk/index.js';
23+
} from './third_party/index.js';
2424
import type {
2525
ConsoleMessage,
2626
ResourceType,

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
StdioServerTransport,
1919
type CallToolResult,
2020
SetLevelRequestSchema,
21-
} from './third_party/modelcontextprotocol-sdk/index.js';
21+
} from './third_party/index.js';
2222
import * as consoleTools from './tools/console.js';
2323
import * as emulationTools from './tools/emulation.js';
2424
import * as inputTools from './tools/input.js';

src/third_party/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ export {default as yargs} from 'yargs';
1111
export {hideBin} from 'yargs/helpers';
1212
export {debug} from 'debug';
1313
export type {Debugger} from 'debug';
14+
export {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js';
15+
export {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';
16+
export {
17+
type CallToolResult,
18+
SetLevelRequestSchema,
19+
type ImageContent,
20+
type TextContent,
21+
} from '@modelcontextprotocol/sdk/types.js';
22+
export {z as zod} from 'zod';

src/third_party/modelcontextprotocol-sdk/index.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/tools/ToolDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import type {TextSnapshotNode} from '../McpContext.js';
8-
import {zod} from '../third_party/modelcontextprotocol-sdk/index.js';
8+
import {zod} from '../third_party/index.js';
99
import type {
1010
Dialog,
1111
ElementHandle,

src/tools/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import {zod} from '../third_party/modelcontextprotocol-sdk/index.js';
7+
import {zod} from '../third_party/index.js';
88
import type {ConsoleMessageType} from '../third_party/puppeteer-core/index.js';
99

1010
import {ToolCategories} from './categories.js';

src/tools/emulation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import {zod} from '../third_party/modelcontextprotocol-sdk/index.js';
7+
import {zod} from '../third_party/index.js';
88
import {PredefinedNetworkConditions} from '../third_party/puppeteer-core/index.js';
99

1010
import {ToolCategories} from './categories.js';

src/tools/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import type {McpContext, TextSnapshotNode} from '../McpContext.js';
8-
import {zod} from '../third_party/modelcontextprotocol-sdk/index.js';
8+
import {zod} from '../third_party/index.js';
99
import type {ElementHandle} from '../third_party/puppeteer-core/index.js';
1010

1111
import {ToolCategories} from './categories.js';

src/tools/network.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import {zod} from '../third_party/modelcontextprotocol-sdk/index.js';
7+
import {zod} from '../third_party/index.js';
88
import type {ResourceType} from '../third_party/puppeteer-core/index.js';
99

1010
import {ToolCategories} from './categories.js';

0 commit comments

Comments
 (0)