cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::server::TaskOperationProcessorOptions Struct Reference

Options for the SDK server task processor. More...

#include <task_manager.hpp>

Public Attributes

std::size_t worker_count = 4
 Worker threads used to execute background operations.
 
std::size_t queue_size = 64
 Maximum queued background operations.
 
std::chrono::seconds default_timeout {300}
 Default timeout for task execution when a request omits ttl.
 
std::optional< std::int64_t > poll_interval
 Recommended polling interval exposed in created task snapshots.
 
std::optional< std::chrono::milliseconds > completed_task_ttl
 Optional age limit for terminal task records and stored results.
 
std::size_t max_completed_tasks = 128
 Maximum retained terminal task records.
 
std::size_t list_page_size = 0
 Maximum tasks returned by one tasks/list page. Zero means unbounded.
 
TaskStatusNotificationHook task_status_hook
 Optional hook for automatic notifications/tasks/status emission.
 
TaskProgressNotificationHook task_progress_hook
 Optional hook for automatic notifications/progress emission.
 
bool emit_progress_for_task_state_changes = true
 Emit progress updates from task state changes when a progress token exists.
 

Detailed Description

Options for the SDK server task processor.


The documentation for this struct was generated from the following file: