| Methods |
public
|
__construct(
TaskStoreInterface $store = new InMemoryTaskStore(),
array<non-empty-string, ToolTaskPolicy> $toolPolicies = [],
null|int $defaultTtlMs = 300_000,
int $defaultPollIntervalMs = 1_000,
LoggerInterface $logger = new NullLogger(),
int<1, max> $maxRunningTasks = self::DEFAULT_MAX_RUNNING_TASKS,
)
Parameters
| $toolPolicies |
Keyed by tool name, absence meaning always-synchronous
|
| $defaultTtlMs |
Retention after a terminal transition, null for unlimited
|
| $maxRunningTasks |
Tasks running at once before a further one is refused
|
|
#
|
public
|
getIdentifier(): string
The {vendor-prefix}/{name} capability identifier, e.g. "io.modelcontextprotocol/tasks".
The {vendor-prefix}/{name} capability identifier, e.g. "io.modelcontextprotocol/tasks".
Implements
|
#
|
public
|
getSettings(): array
Settings advertised under capabilities.extensions[identifier], empty meaning supported with none.
Settings advertised under capabilities.extensions[identifier], empty meaning supported with none.
Implements
|
#
|
public
|
getRequests(): array
|
#
|
public
|
getNotifications(): array
|
#
|
public
|
getRequestHandlers(): array
Handlers for getRequests(), keyed by the method each class declares.
Handlers for getRequests(), keyed by the method each class declares.
Implements
|
#
|
public
|
getNotificationHandlers(): array
Handlers for getNotifications(), keyed by the method each class declares.
Handlers for getNotifications(), keyed by the method each class declares.
Implements
|
#
|
public
|
getRequestHandlerDecorators(): array
Decorator closures keyed by the spec-registry request method they wrap.
Decorator closures keyed by the spec-registry request method they wrap.
Implements
|
#
|