src/index.ts

typescript-sdk · packages/server/src/index.ts · typescript · Apache-2.0
ai

Public API surface for the @modelcontextprotocol/server SDK, exposing server, middleware, and utilities.

// Source: https://github.com/modelcontextprotocol/typescript-sdk | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
// Public API for @modelcontextprotocol/server.
//
// This file defines the complete public surface. It consists of:
//   - Package-specific exports: listed explicitly below (named imports)
//   - Protocol-level types: re-exported from @modelcontextprotocol/core-internal/public
//
// Any new export added here becomes public API. Use named exports, not wildcards.

export type { CompletableSchema, CompleteCallback } from './server/completable';
export { completable, isCompletable } from './server/completable';
export type {
    CreateMcpHandlerOptions,
    IsLegacyRequestOptions,
    LegacyHttpHandler,
    LegacyStatelessFallbackOptions,
   

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key