Connect JavaScript to an MCP server with the Vercel AI SDK: createMCPClient over stdio and Streamable HTTP, generateText, and a local Ollama model.AI SDK MCP Client: Connect JavaScript to an MCP Server2025-04-11 in Artificial Intelligence / JavaScript tagged JavaScript / LLM / AI Agent / Model Context Protocol (MCP) / AI SDK by Marc Nuri
Connect a LangChain.js agent to MCP servers from JavaScript with @langchain/mcp-adapters 2 (MCPAdapter), createAgent and a local Ollama model.LangChain.js MCP Adapters: Connect Agents to MCP Servers2025-04-01 in Artificial Intelligence / JavaScript tagged JavaScript / LLM / AI Agent / Model Context Protocol (MCP) / LangChain.js by Marc Nuri
Code snippet to verify if a JavaScript Array contains duplicate entries.How to check if an array contains duplicate values in JavaScript?2022-01-16 in JavaScript tagged JavaScript / Quick Tips by Marc Nuri
Learn what barrel exports are in JavaScript and TypeScript. Understand how index.js files simplify imports, their pros and cons, and when to use them.What are Barrel Exports in JavaScript and TypeScript?2020-03-21 in JavaScript tagged JavaScript / Node / npm / React by Marc Nuri
How the JavaScript event loop works: call stack, task and microtask queues, setTimeout(0), Promises, async/await and the Node.js phases, with diagrams.JavaScript Event Loop Explained: Microtasks, Tasks and Node2012-08-18 in JavaScript tagged JavaScript / Node / Concurrency by Marc Nuri
Learn what an Immediately Invoked Function Expression (IIFE) is and how to use it in JavaScript.What is an Immediately Invoked Function Expression (IIFE)?2011-02-19 in JavaScript tagged JavaScript by Marc Nuri