DevelopmentJuly 5, 2026· via DEV Community

NodeLLM 1.17: Smarter MCP & ORM with parallel tools and sampling

NodeLLM 1.17: Smarter MCP & ORM with parallel tools and sampling

Image : DEV Community

NodeLLM 1.17 turns the usual model-server relationship on its head with MCP sampling, letting servers request LLM completions from clients instead of just offering tools. The new release also introduces concurrent tool execution and tighter ORM integration, closing gaps that forced developers to juggle workarounds.

Reversing the MCP flow with sampling

Traditional MCP setups let clients discover tools exposed by servers, but NodeLLM 1.17 flips the script. By supporting sampling, servers can now ask the client to run an LLM completion on their behalf—handy for tasks like summarization or classification without maintaining separate API keys. Developers configure the handler with their preferred model, and the server advertises tools only after confirming sampling support during handshake. For fine-grained control, a custom handler can process raw sampling parameters before deciding how—or whether—to respond.

Running multiple tools at once

When a model returns several independent tool calls in a single turn, NodeLLM now lets them run in parallel via the toolConcurrency flag. A weather-lookup example illustrates the benefit: querying Tokyo, London, and New York no longer requires sequential delays. The same flag applies to streaming and agentic modes, keeping latency gains consistent across workflows without altering tool definitions.

Consistent control in ORM-backed chats

ORM users gain the same execution knobs previously limited to core NodeLLM. Prisma-backed chats, for instance, can enforce confirmation flows or other modes without dropping to lower-level APIs. This alignment ensures predictable behavior whether tools are managed in memory or persisted via ORM, simplifying long-running or stateful agentic systems.


Source: DEV Community. AI-assisted editorial synthesis — TechnoExpress.

Read the original source on DEV Community →

← Back to home