AI Engineering: MCP, Tools & Building Agents That Ship
Model Context Protocol, tool calling, agent runtimes, LangGraph, guardrails — the engineer's toolkit for building with LLMs.
- ai-engineering
- mcp
- langchain
- tools
- guide
What "AI engineering" means
Prompting is asking. AI engineering is building: giving models tools, memory, and runtime loops so they do reliable work inside real systems. It's the discipline of turning impressive demos into software with tests, deploys, and on-call rotations.
The ideas that matter most
- MCP — Model Context Protocol: the standard way to plug tools and data into any model. Learn this before building one-off integrations.
- Tools & tool calling — how models invoke functions, and how to design tool schemas they actually use correctly.
- Building MCP servers — exposing your own APIs and data as model-usable tools.
- Agent runtime loop — the observe-think-act cycle as an engineering artifact: state, retries, timeouts, budgets.
- Memory — short-term context vs long-term stores, and what to keep where.
- LangChain / LangGraph — chains for simple flows, graphs for stateful agent loops you can inspect and debug.
- LangSmith — tracing and evals: seeing what your agent actually did, step by step.
- Workflows with Inngest — durable execution for long-running, retryable AI work.
- Voice pipelines — speech-to-speech systems, turn-taking, and real-time constraints.
- Safety nets — guardrails, input/output checks, and human-in-the-loop gates.
A sane learning order
- Connect (mcp → mcp-tools → mcp-servers)
- Loop (agent-runtime → memory → loop-engineering)
- Framework (langchain → langgraph → langsmith)
- Harden (harness-engineering → guardrails → human-in-the-loop)
- Specialize (voice-pipeline → inngest → mcp-agents)
Build along with our AI Engineering course.
Mistakes beginners make
- Custom tool protocols. MCP exists so your tools work with every model and client — bespoke JSON schemas are tech debt from day one.
- No tracing. An agent you can't replay step-by-step is undebuggable. Wire LangSmith-style tracing before your first user.
- Memory as a junk drawer. Dumping everything into context rots quality and explodes cost — be deliberate about what persists.
- Skipping the human gate. Irreversible actions (payments, deletes, sends) need approval UI. "The model is usually right" is not a control.
FAQ
What is MCP and why should I care? Model Context Protocol standardizes how models discover and call tools. Build one MCP server and every MCP-compatible client can use it — no per-model glue code.
LangChain vs LangGraph? Chains for linear flows ("classify → route → answer"); graphs for loops with state, branches, and human checkpoints. Most real agents outgrow chains fast.
How do I test an AI feature? Golden input/output sets, LLM-as-judge evals for fuzzy quality, and trace comparison on every change — same CI discipline as normal code, plus tolerance for nondeterminism.
When do I need human-in-the-loop? Whenever an action is irreversible, expensive, or externally visible. Gate the action, not the thinking — let the agent draft, make humans approve.