JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 177
  • Score
    100M100P100Q89539F
  • License BSD-3-Clause

Shared types, interfaces, constants, utilities, and decorators for @nest-mcp

Package Exports

  • @nest-mcp/common

Readme

@nest-mcp/common

npm version License CI

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/common

Contents

  • TypesMcpExecutionContext, McpModuleOptions, ToolCallResult, ResourceReadResult, PromptGetResult, and more
  • EnumsMcpTransportType (STREAMABLE_HTTP, SSE, STDIO)
  • ErrorsToolExecutionError, ValidationError
  • UtilitieszodToJsonSchema, matchUriTemplate, paginate, extractZodDescriptions
  • TokensMCP_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