Pluggable gRPC transport for Model Context Protocol (MCP) servers, built on @modelcontextprotocol/sdk (peer dep ^1.27.0). Current stable version 0.2.0 (pre-1.0, wire format may evolve). Exposes three protobuf service surfaces: grpc.health.v1.Health for Kubernetes probes, model_context_protocol.Mcp (unary/streaming RPCs like ListTools, CallTool) aligned with the community mcp-python-sdk-grpc-poc reference, and optional mcp.transport.v1.Mcp.Session for JSON-RPC over gRPC. Requires Node >=22 and ESM-only. TypeScript types included. Optional gRPC server reflection via ENABLE_GRPC_REFLECTION=1.
npm install mcp-grpc-transportNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC server with health checking and connects an MCP server from @modelcontextprotocol/sdk.
Upgrade Node.js to v22 or later.
Use import syntax or dynamic import() in CommonJS files.
Check CHANGELOG.md before upgrading @modelcontextprotocol/sdk beyond ^1.x.
Set metadata: { 'mcp-protocol-version': '2024-11-05' } (or other supported version string).Set environment variable ENABLE_GRPC_REFLECTION=1 before starting the server.
Change to import syntax (e.g., import { McpServerTransport } from 'mcp-grpc-transport') or use dynamic import() in CommonJS files.Use import() or switch to ESM in your project (type: module in package.json).
Set ENABLE_GRPC_REFLECTION=1 in environment and/or ensure createHealthService() is called and passed as service option.
Add metadata { 'mcp-protocol-version': '2024-11-05' } to gRPC invocation. Use exact strings from @modelcontextprotocol/sdk's supportedProtocolVersions.