@rekog/mcp-nest
2.0.10 · 13 Nov 2026MIT464k / weekRepositoryHomepagenpmAtom feed
67 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 2.x · latest line
2.0.10
13 Nov 2026Advertise tools/resources/prompts capabilities regardless of item count
Send list_changed notifications to legacy-era sessions
What's Changed
Advertise tools/resources/prompts capabilities regardless of item count
Send list_changed notifications to legacy-era sessions
2.0.9
28 Oct 2026server-info: Resolve title and description per request
validation: Add disableResponseValidation option for tools and …
Handle HTTP errors in the global MCP filter
What's Changed
server-info: Resolve title and description per request
validation: Add disableResponseValidation option for tools and …
Handle HTTP errors in the global MCP filter
2.0.8
11 Oct 2026transport: Cleanup stateless SSE on close
instructions: Resolve server instructions per request
Support top-level tool title in tools/list
What's Changed
transport: Cleanup stateless SSE on close
instructions: Resolve server instructions per request
Support top-level tool title in tools/list
auth: Accept any port on loopback redirect URIs
2.0.7
21 Sep 2026access-control: Read the caller off a custom request property (resolveUser)
dynamic-handler: Update handler context type to
McpContext
What's Changed
access-control: Read the caller off a custom request property (resolveUser)
dynamic-handler: Update handler context type to
McpContext
2.0.6
14 Sep 2026tools/call: Stop stringifying input_required (MRTR) results
mrtr: Close the retry leg of Multi Round-Trip Requests
2.0.5
9 Sep 2026Republishing for the
@rekog/mcp-nest-authpackage, which failed to publish in the last run2.0.4
9 Sep 2026Automated security patch release. No human-authored changes since v2.0.3; cut because a shipped dependency range changed. (2 bot commit(s) since v2.0.3 and a shipped dependency range changed (packages/mcp-nest/package.json))
Automated security patch release. No human-authored changes since v2.0.3; cut because a shipped dependency range changed. (2 bot commit(s) since v2.0.3 and a shipped dependency range changed (packages/mcp-nest/package.json))
2.0.1
17 Aug 2026Add support for 'any' role/scope matching and remove unused decorators
2.0.0
29 Jul 2026v2 is a ground-up rewrite of how MCP-Nest plugs into NestJS, and it delivers
the two things people kept asking for: serve the newest MCP clients without
thinking about it, and build MCP servers the way you already build NestJS apps
guards, interceptors, pipes, filters, and DI, on every tool.v2 is a ground-up rewrite of how MCP-Nest plugs into NestJS, and it delivers
the two things people kept asking for: serve the newest MCP clients without
thinking about it, and build MCP servers the way you already build NestJS apps
guards, interceptors, pipes, filters, and DI, on every tool.Upgrading an existing v1 server? It's a breaking change — jump to
Upgrading from v1.Highlights
Modern-era MCP clients work out of the box
MCP shipped a revision —
2026-07-28— that deletes theinitialize
handshake and protocol sessions entirely. It's a clean break with no deprecation
period: old clients and new clients literally cannot talk to the same
single-era server.MCP-Nest serves both eras concurrently, on one endpoint, by default — and
your tool code doesn't change at all. A 2024 client and a 2026 client can hit
the same/mcpin the same process, and each gets served correctly.new StreamableHttpTransport(); // dual-era — the default new StreamableHttpTransport({ protocol: 'modern-only' }); // 2026-07-28 only new StreamableHttpTransport({ protocol: 'legacy-only' }); // pre-2026 behaviourThere's nothing to configure. Era is a per-request fact, decided by whoever
called you.Your tools are first-class NestJS handlers
This is the big one. Every
@Tool,@Resource,@ResourceTemplate, and@Promptis now a real@MessagePatternhandler on an@McpController(), so
the entire NestJS pipeline applies natively — no bespoke machinery bolted on
top:@McpController() @UseGuards(ApiKeyGuard) // gate the whole capability class @UseInterceptors(MetricsInterceptor) // time and log every tool call export class OrdersController { constructor(private readonly orders: OrdersService) {} // real DI, real services @Tool({ name: 'refund-order', description: 'Refunds an order', parameters: z.object({ id: z.string() }), }) @ToolScopes(['orders:write']) // per-tool authorization @UseFilters(DomainErrorFilter) // your own error mapping @UsePipes(new ValidationPipe({ transform: true, whitelist: true })) async refund(@Payload() { id }: { id: string }, @Ctx() ctx: McpContext) { await ctx.reportProgress({ progress: 1, total: 2 }); const receipt = await this.orders.refund(id); return { content: [{ type: 'text', text: `Refunded ${receipt.id}` }] }; } }class-validatorDTOs, custom pipes, request-scoped providers,@UseFilters,RpcException— all of it just works, because these are ordinary Nest RPC
handlers now.Bring your own schema library
parametersandoutputSchemaare no longer Zod-only. Any Standard Schema
validator that emits JSON Schema works — Zod, ArkType, Valibot — or hand it a
raw JSON Schema object:@Tool({ name: 'add', description: 'Adds two numbers', parameters: type({ a: 'number', b: 'number' }) }) // ArkType @Tool({ name: 'echo', description: 'Echoes', parameters: { type: 'object', properties: { text: { type: 'string' } } } }) // raw JSON SchemaExisting Zod code is untouched — this is a widening, not a migration.
Own the MCP route like any other controller
McpHttpControllerFor(transport)turns a transport into a real Nest controller
you own, with the full HTTP pipeline — guards, interceptors, filters,
versioning, middleware:@Controller('mcp') @UseGuards(McpAuthJwtGuard) @UseInterceptors(HttpTimingInterceptor) export class McpHttpController extends McpHttpControllerFor(mcpTransport) {}That's also where authentication belongs now — a normal Nest guard, not a
module option.Several MCP servers in one app, and tools registered at runtime
Named servers give each endpoint its own isolated tool set
(@McpController({ server: 'admin' })+McpStrategy({ server: 'admin' })),
and the strategy can register and remove tools, resources, and prompts at
runtime — now emitting properlistChangednotifications so connected clients
refresh.A hardened built-in OAuth server
@rekog/mcp-nest-auth(now its own package, so core stays free oftypeorm,passport, and@nestjs/jwt) gained real security work: token
audience/issuer/type validation, PKCE S256 enforcement, scope narrowing at/authorize, an opt-in consent screen, Client ID Metadata Documents with an
SSRF-guarded fetcher, and RFC 9207isson authorization responses.v1 → v2 at a glance
v1 ( 1.9.x)v2 ( 2.0.0)How MCP plugs into Nest McpModule.forRoot()generating HTTP controllersa NestJS microservice CustomTransportStrategy(McpStrategy)Where tools live @Injectable()classes inproviders@McpController()classes incontrollersGuards / pipes / interceptors / filters on tools bespoke, partial native NestJS — tools are real @MessagePatternhandlersTransports HTTP+SSE, Streamable HTTP, STDIO Streamable HTTP, STDIO (HTTP+SSE removed) Protocol revisions 2025-era only dual-era: 2025-era and the stateless 2026-07-28revision on one endpointOAuth authorization server bundled in core separate package @rekog/mcp-nest-authMCP SDK @modelcontextprotocol/sdkv1@modelcontextprotocol/{core,node,server}v2Verified on
mainat the time of writing: 851 unit/integration tests pass, 0
fail (56 files, both protocol eras). The example-drivene2e/suite — which
boots everyexamples/<project>as a real subprocess and drives it with a
pinned old client (@modelcontextprotocol/sdk@1.10.0) and a modern2026-07-28client — last ran 316 pass / 0 fail across 16 files. The old
client passing unmodified is the backward-compatibility proof for 2025-era
consumers.v1 status
v1 lives on the
v1branch and is in security-patch-only maintenance:
community-contributed security fixes are accepted, but no new features or
general bug fixes from maintainers. Existing v1 users can stay on1.9.xas
long as they need. New projects should start on v2.- 1.x
1.9.11
14 Jul 2026Reading the note…
1.9.10
22 May 2026Reading the note…
1.9.9
29 Mar 2026Reading the note…
1.9.8
19 Mar 2026Reading the note…
1.9.7
11 Mar 2026Reading the note…
1.9.6
26 Feb 2026Reading the note…
1.9.5
26 Feb 2026Reading the note…
1.9.4
18 Feb 2026Reading the note…
1.9.3
1 Feb 2026Reading the note…
1.9.2
12 Jan 2026Reading the note…
1.9.1
12 Jan 2026Reading the note…
1.9.0
11 Jan 2026Reading the note…
1.8.4
11 Oct 2025Reading the note…
1.8.3
13 Sep 2025Reading the note…
1.8.2
27 Aug 2025Reading the note…
1.8.1
16 Aug 2025Reading the note…
1.8.0
10 Aug 2025Reading the note…
1.7.3
2 Aug 2025Reading the note…
1.7.2
31 Jul 2025Reading the note…
1.7.1
29 Jul 2025Reading the note…
1.7.0
27 Jul 2025Reading the note…
1.6.3
17 Jul 2025Reading the note…
1.6.2
19 Jun 2025Reading the note…
1.6.1
15 Jun 2025Reading the note…
1.6.0
15 Jun 2025Reading the note…
1.5.2
9 May 2025Reading the note…
1.5.1
3 May 2025Reading the note…
1.5.0
26 Apr 2025Reading the note…
1.4.0
17 Apr 2025Reading the note…
1.3.1
9 Apr 2025Reading the note…
1.3.0
9 Apr 2025Reading the note…
1.2.0
5 Apr 2025Reading the note…
1.1.4
20 Mar 2025Reading the note…
1.1.3
20 Mar 2025Reading the note…
1.1.2
20 Mar 2025Reading the note…
1.1.1
2 Feb 2025Reading the note…
1.1.0
2 Feb 2025Reading the note…
1.0.20
28 Jan 2025Reading the note…
1.0.19
27 Jan 2025Reading the note…
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.