final | |
|---|---|
implements |
MiddlewareInterface |
Rejects a tools/call whose Mcp-Param-{Name} headers disagree with the arguments in its body. The spec requires any server that processes the body to validate the mirrored headers against it, so an
intermediary routing on a header value cannot disagree with what the server executes. Bindings are read
from the tool inputSchema declarations once and cached, and the cache is dropped whenever a
ListChangeSourceInterface store reports that its listing changed.
| Methods | ||
|---|---|---|
public
|
__construct(
ToolStoreInterface $store,
ResponseFactoryInterface $responseFactory,
StreamFactoryInterface $streamFactory,
LoggerInterface $logger = new NullLogger(),
)
|
# |
public
|
process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
# |