Skip to content

Commit

Permalink
Bundling fixes (#46)
Browse files Browse the repository at this point in the history
* fix: import from `@modelcontextprotocol/sdk` should include `.js`

* fix: missing export for `createServer()`
  • Loading branch information
charlypoly authored Jan 15, 2025
1 parent 69e253a commit 04232b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import {
import { type Tool, type MCP } from "./types";
import { getStepTools, type AnyZodType, type MaybePromise } from "./util";
// MCP
import { Client as MCPClient } from "@modelcontextprotocol/sdk/client/index";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse";
import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket";
import { Client as MCPClient } from "@modelcontextprotocol/sdk/client/index.js";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket.js";
import { ListToolsResultSchema } from "@modelcontextprotocol/sdk/types.js";
import {
type JSONSchema,
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export * from "./network";
export * from "./networkRun";
export * from "./state";
export * from "./types";
export * from "./server";
export * from "./util";

0 comments on commit 04232b3

Please sign in to comment.