Skip to content

fix(templates): avoid pulling in incompatible mcp versions - #1850

Merged
Hweinstock merged 2 commits into
aws:mainfrom
Hweinstock:fix/mcp-dep-pinning
Jul 28, 2026
Merged

fix(templates): avoid pulling in incompatible mcp versions#1850
Hweinstock merged 2 commits into
aws:mainfrom
Hweinstock:fix/mcp-dep-pinning

Conversation

@Hweinstock

@Hweinstock Hweinstock commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Problem

The e2e tests are failing on mainline for the past few days with langgraph templates. Ex. https://github.com/aws/agentcore-cli/actions/runs/30370526485/job/90338758015

stdout | e2e-tests/langgraph-openai.test.ts > e2e: LangChain_LangGraph/OpenAI — create → deploy → invoke > invokes the deployed agent

──────── E2E failure: invoke (exit 1) ────────
▸ error: Runtime initialization time exceeded. Please make sure that initialization completes in 30s.
▸ stdout:
{"success":false,"error":"Runtime initialization time exceeded. Please make sure that initialization completes in 30s."}
▸ stderr:

Confirmed with a local test that agentcore create with a langGraph python bedrock agent, then agentcore deploy followed by agentcore invoke produces Error: Runtime initialization time exceeded. Please make sure that initialization completes in 30s. on the live released CLI and the unreleased version.

This confirms the issue happened without a code change on the CLI side since previous tests were passing 19 hours ago: https://github.com/aws/agentcore-cli/actions/runs/30306941476/job/90113364343.

Root Cause

We do not pin a dependency in the langgraph template that recently had a major version update.

Solution

Notes

When making this change, I noticed that there are other unpinned dependencies in these templates. We should make an effort to move these towards pinning to avoid this happening moving forward. However, we need to be careful when pinning since it could cause us to use a different version than what is currently being resolved. Creating a follow-up GH issue for this work that we should tackle as part of the refactor.

Testing

  • created a local langraph project, ran dev, and ran invoke after deploying. Both worked, whereas before it failed.
  • ran langgraph-openai.test.ts locally.

@github-actions github-actions Bot added size/xs PR size: XS agentcore-harness-reviewing AgentCore Harness review in progress labels Jul 28, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jul 28, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Jul 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.24.2.tgz

How to install

gh release download pr-1850-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.24.2.tgz

@github-actions github-actions Bot added size/xs PR size: XS and removed agentcore-harness-reviewing AgentCore Harness review in progress size/xs PR size: XS labels Jul 28, 2026
@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Jul 28, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jul 28, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Jul 28, 2026
@Hweinstock
Hweinstock marked this pull request as ready for review July 28, 2026 18:11
@Hweinstock
Hweinstock requested a review from a team July 28, 2026 18:11
@Hweinstock
Hweinstock merged commit 85c7cc2 into aws:main Jul 28, 2026
31 checks passed
@Hweinstock
Hweinstock deleted the fix/mcp-dep-pinning branch July 28, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants