Bootstrap a serverless agent on Azure with MCP tool calls
Cuándo usarlo: You want to ship an LLM-powered feature on Azure and need a working reference to fork.
Requisitos previos
- Azure subscription — azure.microsoft.com — free tier covers dev
- Azure Developer CLI —
brew install azdor Windows installer
Flujo
-
Fork and deployFork Azure-Samples/mcp-agent-langchainjs and walk me through
azd upto deploy to my Azure sub.✓ Copiado→ Live Azure URL + Functions + Cosmos provisioned -
Swap the demo toolReplace the burger-ordering MCP with a custom MCP for my domain (e.g. appointment booking). Show me the wiring.✓ Copiado→ Code diff + working custom tool
-
Customize the UIThe sample has a chat UI; customize brand/colors and the welcome message.✓ Copiado→ Styled app
Resultado: A shippable Azure-hosted agent derived from a vetted sample.
Errores comunes
- Free-tier Azure OpenAI has low quota — Provision your own OpenAI resource in a region with capacity; set endpoint in env
- Local Ollama doesn't handle complex tool calls well — Use a cloud model (GPT-4o-mini, etc.) for dev that involves multi-step tool calls