Skip to content

Interface: StartServerOptions<TContext>

Defined in: packages/core/src/server/startServer.ts:25

Options for startServer.

Type Parameters

Type Parameter
TContext

Properties

attach?

ts
readonly optional attach: Omit<AttachOptions<TContext>, "contextFactory" | "prompts" | "telemetry">;

Defined in: packages/core/src/server/startServer.ts:45

Extra attach options (debug, tracing, zeroTrust, etc.).


contextFactory()?

ts
readonly optional contextFactory: (extra) => TContext | Promise<TContext>;

Defined in: packages/core/src/server/startServer.ts:39

Factory to create per-request context.

Parameters

ParameterType
extraunknown

Returns

TContext | Promise<TContext>


name

ts
readonly name: string;

Defined in: packages/core/src/server/startServer.ts:27

Server display name (shown in MCP clients and Inspector).


prompts?

ts
readonly optional prompts: PromptRegistry<TContext>;

Defined in: packages/core/src/server/startServer.ts:36

Optional prompt registry.


registry

ts
readonly registry: ServerRegistry<TContext>;

Defined in: packages/core/src/server/startServer.ts:33

The tool registry to expose.


telemetry?

ts
readonly optional telemetry: boolean;

Defined in: packages/core/src/server/startServer.ts:42

Enable Inspector TUI telemetry (default: true).


version?

ts
readonly optional version: string;

Defined in: packages/core/src/server/startServer.ts:30

Server version string (e.g. '1.0.0').