Class CapabilitiesConfig.Builder
java.lang.Object
dev.tachyonmcp.core.server.config.CapabilitiesConfig.Builder
- Enclosing class:
CapabilitiesConfig
Builder for
CapabilitiesConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theCapabilitiesConfig.Enables completions (Mode.ON).completions(Mode completions) Sets the completions mode.logging()Enables logging.logging(boolean logging) Sets whether logging is enabled.Disables completions (Mode.OFF).Disables prompts (Mode.OFF).Disables resources (Mode.OFF).noTasks()Disables tasks.noTools()Disables tools (Mode.OFF).prompts()Enables prompts with default settings.prompts(boolean listChanged) Enables prompts with the specified list-changed setting.prompts(FeatureConfig config) Configures prompts from a feature config.promptsListChanged(boolean promptsListChanged) Sets whether prompts list change notifications are enabled.promptsMode(Mode promptsMode) Sets the prompts mode.promptsPageSize(int promptsPageSize) Sets the prompts page size.Enables resources with default settings.resources(boolean subscribe, boolean listChanged) Enables resources with the specified subscribe and list-changed settings.resources(ResourcesConfig config) Configures resources from a resources config.resourcesListChanged(boolean resourcesListChanged) Sets whether resources list change notifications are enabled.resourcesMode(Mode resourcesMode) Sets the resources mode.resourcesPageSize(int resourcesPageSize) Sets the resources page size.resourcesSubscribe(boolean resourcesSubscribe) Sets whether resource subscriptions are enabled.tasks()Enables tasks with default settings.tasks(boolean list, boolean cancel, boolean requests) Enables tasks with the specified list, cancel, and requests settings.tasks(TasksConfig config) Configures tasks from a tasks config.tasksCancel(boolean tasksCancel) Sets whether task cancellation is enabled.tasksEnabled(boolean tasksEnabled) Sets whether tasks are enabled.tasksKeepAlive(Duration tasksKeepAlive) Sets the tasks keep-alive duration.tasksList(boolean tasksList) Sets whether task listing is enabled.tasksPageSize(int tasksPageSize) Sets the tasks page size.tasksRequests(boolean tasksRequests) Sets whether task requests are enabled.tools()Enables tools with default settings.tools(boolean listChanged) Enables tools with the specified list-changed setting.tools(FeatureConfig config) Configures tools from a feature config.toolsListChanged(boolean toolsListChanged) Sets whether tools list change notifications are enabled.Sets the tools mode.toolsPageSize(int toolsPageSize) Sets the tools page size.
-
Method Details
-
tools
Configures tools from a feature config.- Parameters:
config- the feature config- Returns:
- this builder
-
resources
Configures resources from a resources config.- Parameters:
config- the resources config- Returns:
- this builder
-
prompts
Configures prompts from a feature config.- Parameters:
config- the feature config- Returns:
- this builder
-
tasks
Configures tasks from a tasks config.- Parameters:
config- the tasks config- Returns:
- this builder
-
toolsMode
Sets the tools mode.- Parameters:
toolsMode- the tools mode- Returns:
- this builder
-
toolsListChanged
Sets whether tools list change notifications are enabled.- Parameters:
toolsListChanged- whether tools list change notifications are enabled- Returns:
- this builder
-
toolsPageSize
Sets the tools page size.- Parameters:
toolsPageSize- the tools page size- Returns:
- this builder
-
resourcesMode
Sets the resources mode.- Parameters:
resourcesMode- the resources mode- Returns:
- this builder
-
resourcesSubscribe
Sets whether resource subscriptions are enabled.- Parameters:
resourcesSubscribe- whether resource subscriptions are enabled- Returns:
- this builder
-
resourcesListChanged
Sets whether resources list change notifications are enabled.- Parameters:
resourcesListChanged- whether resources list change notifications are enabled- Returns:
- this builder
-
resourcesPageSize
Sets the resources page size.- Parameters:
resourcesPageSize- the resources page size- Returns:
- this builder
-
promptsMode
Sets the prompts mode.- Parameters:
promptsMode- the prompts mode- Returns:
- this builder
-
promptsListChanged
Sets whether prompts list change notifications are enabled.- Parameters:
promptsListChanged- whether prompts list change notifications are enabled- Returns:
- this builder
-
promptsPageSize
Sets the prompts page size.- Parameters:
promptsPageSize- the prompts page size- Returns:
- this builder
-
completions
Sets the completions mode.- Parameters:
completions- the completions mode- Returns:
- this builder
-
tasksEnabled
Sets whether tasks are enabled.- Parameters:
tasksEnabled- whether tasks are enabled- Returns:
- this builder
-
tasksList
Sets whether task listing is enabled.- Parameters:
tasksList- whether task listing is enabled- Returns:
- this builder
-
tasksCancel
Sets whether task cancellation is enabled.- Parameters:
tasksCancel- whether task cancellation is enabled- Returns:
- this builder
-
tasksRequests
Sets whether task requests are enabled.- Parameters:
tasksRequests- whether task requests are enabled- Returns:
- this builder
-
tasksPageSize
Sets the tasks page size.- Parameters:
tasksPageSize- the tasks page size- Returns:
- this builder
-
tasksKeepAlive
Sets the tasks keep-alive duration.- Parameters:
tasksKeepAlive- the tasks keep-alive duration- Returns:
- this builder
-
logging
Sets whether logging is enabled.- Parameters:
logging- whether logging is enabled- Returns:
- this builder
-
build
Builds theCapabilitiesConfig.- Returns:
- the built
CapabilitiesConfig
-
completions
Enables completions (Mode.ON).- Returns:
- this builder
-
noCompletions
Disables completions (Mode.OFF).- Returns:
- this builder
-
logging
Enables logging.- Returns:
- this builder
-
tools
Enables tools with default settings.- Returns:
- this builder
-
tools
Enables tools with the specified list-changed setting.- Parameters:
listChanged- whether list change notifications are enabled- Returns:
- this builder
-
noTools
Disables tools (Mode.OFF).- Returns:
- this builder
-
resources
Enables resources with default settings.- Returns:
- this builder
-
resources
Enables resources with the specified subscribe and list-changed settings.- Parameters:
subscribe- whether resource subscriptions are enabledlistChanged- whether resources list change notifications are enabled- Returns:
- this builder
-
noResources
Disables resources (Mode.OFF).- Returns:
- this builder
-
prompts
Enables prompts with default settings.- Returns:
- this builder
-
prompts
Enables prompts with the specified list-changed setting.- Parameters:
listChanged- whether prompts list change notifications are enabled- Returns:
- this builder
-
noPrompts
Disables prompts (Mode.OFF).- Returns:
- this builder
-
noTasks
Disables tasks.- Returns:
- this builder
-
tasks
Enables tasks with default settings.- Returns:
- this builder
-
tasks
Enables tasks with the specified list, cancel, and requests settings.- Parameters:
list- whether task listing is enabledcancel- whether task cancellation is enabledrequests- whether task requests are enabled- Returns:
- this builder
-