@nest-mcp/common
v0.2.0
Published
Shared types, interfaces, constants, utilities, and decorators for @nest-mcp
Readme
@nest-mcp/common
Shared types, utilities, and constants for the nest-mcp toolkit. This package is a peer dependency of @nest-mcp/server, @nest-mcp/client, and @nest-mcp/gateway — you rarely need to install it directly.
Installation
npm install @nest-mcp/commonContents
- Types —
McpExecutionContext,McpModuleOptions,ToolCallResult,ResourceReadResult,PromptGetResult, and more - Enums —
McpTransportType(STREAMABLE_HTTP, SSE, STDIO) - Errors —
ToolExecutionError,ValidationError - Utilities —
zodToJsonSchema,matchUriTemplate,paginate,extractZodDescriptions - Tokens —
MCP_OPTIONS,MCP_CLIENT_OPTIONS
Usage
import { McpTransportType, McpExecutionContext } from '@nest-mcp/common';Most users interact with this package indirectly through @nest-mcp/server, @nest-mcp/client, or @nest-mcp/gateway.
Documentation
Full documentation: github.com/btwld/nest-mcp
License
BSD-3-Clause
