Initialize OpenTelemetry before starting the server.
Call as early as possible so OTEL auto-instrumentation can
hook into HTTP/Express modules before they are loaded.
No-op if telemetry is disabled. Falls back automatically
in start() if not called explicitly.
Notify all connected MCP clients that the prompt list has changed.
Notify all connected MCP clients that the resource list has changed.
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 external state changes affect tool availability (e.g., API connection state, feature flags).
Start the server.
Promise that resolves when server is fully started
Stop the server gracefully.
Promise that resolves when server is stopped
Result returned from createServer().