Skip to content

Update LangChain MCP adapter notebook to verified LangChain 1.3.11 stack#9

Open
dex-the-ai wants to merge 1 commit into
mainfrom
artifact/langchain-mcp-adapter-tutorial-2026-07-07
Open

Update LangChain MCP adapter notebook to verified LangChain 1.3.11 stack#9
dex-the-ai wants to merge 1 commit into
mainfrom
artifact/langchain-mcp-adapter-tutorial-2026-07-07

Conversation

@dex-the-ai

@dex-the-ai dex-the-ai commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update langchain_mcp_adapter/LangChain_MCP_Adapter_Tutorial.ipynb to the latest verified July 7, 2026 LangChain patch stack: langchain==1.3.11, langgraph==1.2.8, and langchain-openai==1.3.3
  • Keep langchain-mcp-adapters==0.3.0 and python-dotenv==1.2.2 unchanged because they were already current
  • Re-verify the full LangChain MCP adapter notebook against a live Couchbase MCP server using env-driven OpenAI and Couchbase credentials from canonical /home/elliot/.env

Verification

  • uv run --with couchbase python tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/connectivity_check.py langchain_mcp_adapter/.env
  • uv venv --clear --python 3.11 .venv-langchain-mcp-adapter-tutorial
  • uv pip install --python .venv-langchain-mcp-adapter-tutorial/bin/python papermill ipykernel pip-audit jupyter nbconvert langchain==1.3.11 langgraph==1.2.8 langchain-openai==1.3.3 langchain-mcp-adapters==0.3.0 python-dotenv==1.2.2
  • .venv-langchain-mcp-adapter-tutorial/bin/pip-audit
  • .venv-langchain-mcp-adapter-tutorial/bin/python tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/mcp_startup_check.py langchain_mcp_adapter/.env
  • cd langchain_mcp_adapter && ../.venv-langchain-mcp-adapter-tutorial/bin/papermill LangChain_MCP_Adapter_Tutorial.ipynb tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/LangChain_MCP_Adapter_Tutorial.executed.ipynb -k langchain-mcp-adapter-tutorial

Evidence

  • Executed notebook completed without code-cell errors and answered the full tutorial question set against the live Couchbase MCP server
  • Walkthrough covered cluster introspection, top-rated hotels, NYC→SFO flight/hotel recommendation, UK sightseeing prices, and a low-budget UK hotel recommendation
  • Connectivity check confirmed the canonical env-backed Capella target and travel-sample bucket were reachable before the notebook run
  • MCP startup check initialized uvx couchbase-mcp-server and listed the expected 20 Couchbase tools
  • Screenshot artifact: tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/screenshots/langchain-mcp-adapter-tutorial.png
  • Video artifact: tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/video/langchain-mcp-adapter-tutorial.webm
  • Detailed local notes: tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/verification.md
Notebook execution excerpt
Initializing connection...
Loading tools...
Creating agent...
------------------------- Starting Run -------------------------

Running: Tell me about the database that you are connected to.
Running: List out the top 5 hotels by the highest aggregate rating?
Running: Recommend me a flight and hotel from New York to San Francisco
Running: I'm going to the UK for 1 week. Recommend some great spots to visit for sightseeing. Also mention the respective prices of those places for adults and kids.
Running: My budget is around 30 pounds a night. What will be the best hotel to stay in?

Notes

  • Scope is limited to the langchain-mcp-adapter-tutorial artifact only.
  • pip-audit reported No known vulnerabilities found.
  • One generated SQL++ attempt hit an UnexpectedEOF parser error in the MCP server logs during the UK sightseeing section, but the agent recovered within the same run and the notebook still completed successfully.
  • README review did not require changes; the repo’s Python 3.10+ guidance still matches the verified 3.11.15 runtime.

Media evidence

  • Auto-attached reviewer-facing media from the local verification artifacts captured during this run.
  • This keeps the main PR body self-contained instead of relying on a follow-up comment for visual proof.

Langchain Mcp Adapter Tutorial

Notes
  • Local artifact path: tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/screenshots/langchain-mcp-adapter-tutorial.png

Langchain Mcp Adapter Tutorial

Notes
  • Local artifact path: tutorial-maintenance/runs/mcp-cookbook/2026-07-07T1647Z-langchain-mcp-adapter-tutorial/video/langchain-mcp-adapter-tutorial.webm

@dex-the-ai dex-the-ai requested a review from AayushTyagi1 July 7, 2026 17:03
@dex-the-ai

Copy link
Copy Markdown
Contributor Author

Owner ping for this maintenance PR: @AayushTyagi1

Requesting review from the manifest-listed owner(s) where GitHub does not already show a pending review request.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Caution

Notebooks or Frontmatter Files Have Been Modified

  • Please ensure that a frontmatter.md file is accompanying the notebook file, and that the frontmatter is up to date.
  • These changes will be published to the developer portal tutorials only if frontmatter.md is included.
  • Proofread all changes before merging, as changes to notebook and frontmatter content will update the developer tutorial.

1 Notebook Files Modified:

Notebook File Frontmatter Included?
langchain_mcp_adapter/LangChain_MCP_Adapter_Tutorial.ipynb

0 Frontmatter Files Modified:

Frontmatter File
Note: frontmatter will be checked and tested in the Test Frontmatter workflow.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the dependency versions of langchain, langgraph, and langchain-openai in the installation command of the LangChain_MCP_Adapter_Tutorial.ipynb notebook. There are no review comments to evaluate, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant