Minimal deployment template for a LangChain agent built with create_agent(...).
- A deployable LangGraph entrypoint at
src/simple_agent/graph.py. - Two small tools (
utc_now,calculator) for predictable local behavior. langgraph.jsonconfigured for LangSmith/LangGraph deployment.- A
uv-managed local workflow with a smallMakefilewrapper and starter tests.
- OpenRouter automatically plugged in
- LangChain MCP servers in .vscode/mcp.json (https://docs.langchain.com/use-these-docs)
- Demo of a script mcp server with fastmcp (mcp_agent_demo)
- Sync the project with
uv:
uv sync --dev- Configure environment:
cp .env.example .env- Run locally:
uv run langgraph dev --studio-url https://eu.smith.langchain.comOr with tunnel:
uv run langgraph dev --tunnel --studio-url https://eu.smith.langchain.comOptional make wrappers:
make dev
make run# Update versions from the lock
uv lock --upgrade
# Alternative pOur un package unique:
# uv lock --upgrade-package mon-package
# Install them
uv syncmake test
make integration-tests
make lint
make formatIntegration tests are skipped unless ANTHROPIC_API_KEY is set.
- Push this template to a Git repository.
- In LangSmith, create a new Deployment from that repo.
- Set required environment variables (
ANTHROPIC_API_KEY, optionallyLANGSMITH_API_KEY). - Deploy using
langgraph.jsondefaults.
- LangChain quickstart: https://docs.langchain.com/oss/python/langchain/quickstart
- LangChain deployment: https://docs.langchain.com/oss/python/langchain/deploy