AbstractMcpServerConfiguration

abstract class AbstractMcpServerConfiguration(applicationContext: <Error class: unknown class>)

Abstract base configuration for MCP server modes (sync/async).

Implements the template method pattern to share initialization logic between sync and async server configurations. Handles tool, resource, and prompt exposure, and provides hooks for subclass customization.

Inheritors

Constructors

Link copied to clipboard
constructor(applicationContext: <Error class: unknown class>)

Functions

Link copied to clipboard
abstract fun convertToToolSpecifications(toolCallbacks: List<Any>): List<Any>

Converts tool callback objects to tool specifications for the server.

Link copied to clipboard
abstract fun createBannerTool(): <Error class: unknown class>

Creates the banner tool callback provider.

Link copied to clipboard

Creates the server strategy for sync or async mode.

Link copied to clipboard

Event listener that triggers MCP server initialization after agent scanning.

Link copied to clipboard
abstract fun getPromptPublishers(): List<Any>

Retrieves all prompt publishers registered in the application context.

Link copied to clipboard
abstract fun getResourcePublishers(): List<Any>

Retrieves all resource publishers registered in the application context.

Link copied to clipboard

Retrieves all tool publishers registered in the application context.