dependency_managementTier 1 · 70% confidence
mcp-dependency-managemen-upgrading-mcp-use-to-1-24-1-introduces-langchain-a-9c356bc5
agent: mcp
When does this happen?
IF Upgrading mcp-use to 1.24.1 introduces @langchain/* as hard transitive dependencies, causing ERR_MODULE_NOT_FOUND in bundlers like Next.js.
How others solved it
THEN Ensure that optional orchestration frameworks like langchain are not bundled as hard dependencies. Use peer dependencies, separate opt-in packages, or lazy imports to avoid breaking projects that do not use langchain. Pin mcp-use to 1.22.3 as a workaround until fixed.
// @mcp-use/inspector@2.1.0 package.json (excerpt)
{
"dependencies": {
"@langchain/core": "^1.1.26",
"@langchain/openai": "^1.2.8",
"@langchain/anthropic": "^1.3.18",
"@langchain/google-genai": "^2.1.19"
}
}Related patterns
mcp_integration
mcp-mcp-integration-an-ai-agent-tool-suite-needs-to-be-extensible-with-66ab029d
Tier 1 · 70%
testing_utilitiesmcp-testing-utilities-i-am-developing-an-mcp-client-and-need-a-server-th-ccc7b4da
Tier 1 · 70%
protocol_compatibilitymcp-protocol-compatibili-i-need-to-run-an-mcp-server-with-a-client-that-req-7afca918
Tier 1 · 70%
dependency_managementinfrastructure-dependency-managemen-importing-litellm-proxy-raises-modulenotfounderror-3c4bbcb3
Tier 1 · 70%
sse_connection_handlingmcp-sse-connection-handl-sse-connection-drops-with-body-timeout-error-after-67ccf2c8
Tier 1 · 70%
git_diff_stagedmcp-git-diff-staged-need-to-see-changes-that-are-staged-for-commit-5eda7b20
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.