-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Types-only install option #2581
Copy link
Copy link
Open
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featureenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedv2Ideas, requests and plans for v2 of the SDK which will incorporate major changes and fixesIdeas, requests and plans for v2 of the SDK which will incorporate major changes and fixes
Metadata
Metadata
Assignees
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featureenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedv2Ideas, requests and plans for v2 of the SDK which will incorporate major changes and fixesIdeas, requests and plans for v2 of the SDK which will incorporate major changes and fixes
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
I'm integrating MCP server support into the Dash web framework. I want to leverage
mcp.typesto help ensure that responses and data structures are spec-compatible. Since Dash already manages its HTTP server, I don't want to use the SDK's server, client, or transports.The problem: adding
mcpto Dash's requirements pulls in ~15 transitive packages (starlette,httpx, etc) that are not necessary for leveraging the types.I'd like to request a types-only install option that allows framework integrations to use only lightweight runtime types / protocol definitions.
References
It's fairly common to see lighter weight things like types/stubs published as a separate package that are then dependencies of the main package.
langchain-coresplits its types into a siblinglangchain-protocolpackage and requires it as a dependency.pydanticrequires itspydantic-corepackage.In a similar vein, I'd like to require only
mcp-typeswhen I don't need all the server dependencies.