Skip to content

Commit 884f86b

Browse files
committed
never export serrver modules
1 parent d11870f commit 884f86b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/mcp-use/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/**
2+
* Main package exports for MCP client and MCP agent functionality
3+
*
4+
* This file serves as the primary entry point for consuming MCP (Model Context Protocol)
5+
* functionality in client applications and agent implementations. It exports all necessary
6+
* classes, utilities, and types for building MCP-based applications.
7+
*
8+
* @important Server functionality is exported from ./src/server/index.js -
9+
* do NOT export server-related modules from this file.
10+
*/
11+
112
import { MCPAgent } from './src/agents/mcp_agent.js'
213
import { RemoteAgent } from './src/agents/remote.js'
314
import { MCPClient } from './src/client.js'
@@ -41,3 +52,4 @@ export { AIMessage, BaseMessage, HumanMessage, SystemMessage, ToolMessage } from
4152
export type { StreamEvent } from '@langchain/core/tracers/log_stream'
4253

4354
export { BaseConnector, HttpConnector, loadConfigFile, Logger, logger, MCPAgent, MCPClient, MCPSession, RemoteAgent, StdioConnector, WebSocketConnector }
55+

0 commit comments

Comments
 (0)