public
|
__construct(
RequestHandlerInterface $handler,
list<non-empty-string> $allowedOrigins,
ResponseFactoryInterface $responseFactory,
StreamFactoryInterface $streamFactory,
list<non-empty-string> $allowedHosts = [],
null|int $maxBodyBytes = null,
null|ToolStoreInterface $toolStore = null,
LoggerInterface $logger = new NullLogger(),
null|MiddlewareInterface $authentication = null,
)
Parameters
| $allowedOrigins |
Origins permitted to reach the endpoint, or ['*'] to allow any
|
| $allowedHosts |
Hosts permitted to reach the endpoint (empty disables Host validation), or ['*'] to allow any
|
| $maxBodyBytes |
Request body byte cap, or null to leave the body uncapped
|
| $toolStore |
The served tool store, enabling Mcp-Param-{Name} validation
|
| $authentication |
Bearer token enforcement, making the endpoint an OAuth resource server
|
|
#
|