Interface ServerExtension
- All Superinterfaces:
Extension<InteractionContext>
- All Known Implementing Classes:
TasksExtension
Pluggable server extension that can add custom methods, capabilities, and lifecycle hooks.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbootstrap(ExtensionContext context) Bootstraps the extension during server startup.methods()Returns the set of JSON-RPC methods this extension handles.default voidonConnectionInit(InteractionContext context, ExtensionSettings clientSettings) Called when a new client connection is initialised with the extension's client settings.default booleanWhether the extension expects a meta envelope for its handler params.default ExtensionSettingsReturns the server settings to advertise in the initialize response.Methods inherited from interface dev.tachyonmcp.api.runtime.Extension
extensionId, onConnectionClose, onConnectionInit, shutdown
-
Method Details
-
serverSettings
Returns the server settings to advertise in the initialize response. -
methods
Returns the set of JSON-RPC methods this extension handles. -
requiresMetaEnvelope
default boolean requiresMetaEnvelope()Whether the extension expects a meta envelope for its handler params. -
bootstrap
Bootstraps the extension during server startup. -
onConnectionInit
Called when a new client connection is initialised with the extension's client settings.
-