UNPKG

@smithery/sdk

Version:

SDK to develop with Smithery

18 lines (17 loc) 712 B
import type { Server } from "@modelcontextprotocol/sdk/server/index.js"; /** * Arguments when we create a new instance of your server */ export interface CreateServerArg<T = Record<string, unknown>> { config: T; } export type CreateServerFn<T = Record<string, unknown>> = (arg: CreateServerArg<T>) => Server; /** * Creates a stateless server for handling MCP requests * In stateless mode, each request creates a new server and transport instance * @param createMcpServer Function to create an MCP server * @returns Express app */ export declare function createStatelessServer<T = Record<string, unknown>>(createMcpServer: CreateServerFn<T>): { app: import("express-serve-static-core").Express; };