ReadonlyisWhether the server is running
ReadonlynameServer name
ReadonlyversionServer version
Initialize OpenTelemetry before starting the server.
OTEL auto-instrumentation must be initialized before any HTTP/Express modules are loaded to properly instrument them. Call this method as early as possible in your application bootstrap.
If not called explicitly, start() will initialize telemetry
automatically as a fallback (but auto-instrumentation may miss
modules already loaded).
No-op if telemetry is not enabled in server options.
Notify all connected MCP clients that the prompt list has changed.
Call this when prompt availability changes dynamically.
The framework will send notifications/prompts/list_changed to all
connected clients per MCP specification.
Notify all connected MCP clients that the resource list has changed.
Call this when resource availability changes dynamically.
The framework will send notifications/resources/list_changed to all
connected clients per MCP specification.
Notify subscribed MCP clients that a specific resource has been updated.
Only clients that previously sent resources/subscribe for the given URI
receive the notifications/resources/updated notification.
Requires capabilities: { resources: { subscribe: true } } to be set.
The resource URI that has changed
Notify all connected MCP clients that the tool list has changed.
Call this when tool availability changes (e.g., connection state).
The framework will send notifications/tools/list_changed to all
connected clients per MCP specification.
Start the server
Stop the server gracefully
Result from server builder/factory.