@machanirobotics/grpc-mcp-gateway-protos
v1.5.3
Published
Pre-compiled Protocol Buffer types for grpc-mcp-gateway (mcp.protobuf), generated with protobuf-ts
Maintainers
Readme
@machanirobotics/grpc-mcp-gateway-protos
TypeScript types for the mcp.protobuf protos used by grpc-mcp-gateway: service/tool/prompt/elicitation options, field metadata, enums, and related messages.
Code is generated with protobuf-ts and depends on @protobuf-ts/runtime.
Install
npm install @machanirobotics/grpc-mcp-gateway-protos
# or
bun add @machanirobotics/grpc-mcp-gateway-protos
# Or pin to the same release as the gateway (recommended)
npm install @machanirobotics/[email protected]
bun add @machanirobotics/[email protected]Use the version that matches the gateway / code generator release you rely on.
Usage
import { MCPApp, MCPServiceOptions } from "@machanirobotics/grpc-mcp-gateway-protos";
const app: MCPApp = { name: "My MCP", version: "1.0.0" };For google/protobuf/descriptor.proto types (e.g. custom tooling), import the subpath:
import { FileDescriptorSet } from "@machanirobotics/grpc-mcp-gateway-protos/google/protobuf/descriptor";Regenerating
From the repo proto/ directory:
buf generateThis refreshes lib/ (protobuf-ts). This package does not ship gRPC-Web clients; generate Connect or gRPC-Web stubs in your application if you need them.
Development
bun install --frozen-lockfile
bun run check # TypeScript --noEmit
bun run lint # Biome (does not lint buf-generated `lib/` — regenerate with `buf generate` instead of editing)