Package dev.tachyonmcp.api.runtime
Interface Extension<T>
- Type Parameters:
T- the interaction context type
- All Known Subinterfaces:
ServerExtension
- All Known Implementing Classes:
TasksExtension
public interface Extension<T>
Extension point that can hook into the connection lifecycle and register custom handlers.
-
Method Summary
Modifier and TypeMethodDescriptionUnique identifier for this extension.default voidonConnectionClose(T context) Called when the connection is being closed.default voidonConnectionInit(T context) Called after connection initialization is complete.default voidshutdown()Called during server shutdown to release resources.
-
Method Details
-
extensionId
String extensionId()Unique identifier for this extension. -
onConnectionInit
Called after connection initialization is complete. -
onConnectionClose
Called when the connection is being closed. -
shutdown
default void shutdown()Called during server shutdown to release resources.
-