Protected ReadonlybackendProtected ReadonlyfrontendProtected OptionalhttpProtectedhttpProtected ReadonlyloggerProtectedrunningProtected OptionalserverProtectedserverOptionalconfigureCalled after the initialization of the backend application is complete. Use this to configure the Express app before it is started, for example to offer additional endpoints.
The implementation may be async, however it will still block the configuration step until it's resolved.
the express application to configure.
either undefined or a Promise resolving to undefined.
Get the underlying MCP server instance
Get the server ID
ProtectedhandleCheck if the server is running
Called when the backend application shuts down.
When shutdown is initiated via SIGINT/SIGTERM, contributions are dispatched
in parallel and any returned promise is awaited up to SHUTDOWN_TIMEOUT_MS
milliseconds while injected services from the root container are still
resolvable.
On synchronous-exit fallback paths (uncaught exceptions, server bind failures, or normal process exit), the hook is invoked synchronously and any returned promise is discarded. Implementations should be resilient to either path.
Contributions must be independent of one another during stop because they are dispatched in parallel.
ProtectedregisterProtectedregisterProtectedsetupProtectedsetupStart the MCP server with the given configuration
Stop the MCP server
Main interface for the Theia MCP server (backend only)