Register all discovered tools, resources, and prompts with the MCP server. This should be called after the discovery phase is complete.
Get the underlying SDK server instance (low-level access)
Connect the server to stdio transport
Cleanup on module destroy
Service that wraps the official MCP SDK McpServer
This service uses the high-level McpServer class which provides a cleaner API for registering tools, resources, and prompts. The service integrates with NestJS's dependency injection and discovery mechanisms to automatically register decorated methods as MCP endpoints.