final | |
|---|---|
readonly | |
extends |
AbstractPaginatedStore<ToolEntry> |
implements |
ToolStoreInterface |
In-memory implementation of ToolStoreInterface.
| Methods | ||
|---|---|---|
public
|
__construct(
array<non-empty-string, ToolEntry> $entries = [],
int $pageSize = self::DEFAULT_PAGE_SIZE,
SchemaValidatorInterface $validator = new OpisSchemaValidator(),
)
|
# |
public
|
list(?Cursor $cursor): ListToolsResult
|
# |
public
|
call(string $name, ?array $arguments, ServerContext $context): CallToolResult
|
# |
| Methods inherited from Nexus\Mcp\Server\AbstractPaginatedStore |
|---|
paginate() |
| Constants | |||
|---|---|---|---|
protected
|
string |
STORE_LABEL = 'Tool store'
|
# |
| Constants inherited from Nexus\Mcp\Server\AbstractPaginatedStore |
|---|
|
| Properties inherited from Nexus\Mcp\Server\AbstractPaginatedStore |
|---|
$entries, $pageSize |