-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
agentbugSomething isn't workingSomething isn't workingclientfeatureNew feature or requestNew feature or requestserver
Description
Background
Today, mcp-use is published as a single package that exposes multiple entry points to avoid loading unnecessary dependencies and reduce conflicts.
mcp-use/agentmcp-use/clientmcp-use/browsermcp-use/reactmcp-use/server
While this approach works, it adds complexity to the build setup, bundling strategy, and dependency management. Consumers may also install dependencies they never use.
Problem
- One package contains multiple environments
- Bundling logic is complex and fragile
- Dependency conflicts are harder to reason about
- Tree shaking and environment specific installs are not as clear as they could be
Proposal
Split mcp-use into multiple scoped packages, each targeting a specific runtime or responsibility.
Proposed packages:
@mcp-use/agent: MCPAgent + deps@mcp-use/client: MCPClient with react, browser and node exports@mcp-use/serverMCPServer with node and edge runtime support@mcp-use/core: common shared libs
Open Questions
- Migration cost for existing users
- Whether to keep a core package that re exports common functionality
- Naming and scope decisions for browser and react packages
- Versioning strategy across packages
Metadata
Metadata
Assignees
Labels
agentbugSomething isn't workingSomething isn't workingclientfeatureNew feature or requestNew feature or requestserver