Skip to content

Commit db72c2e

Browse files
committed
[Server] Merge the twoAskProtocol() docblocks, note returning to a single key
1 parent f34bb11 commit db72c2e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/handlers/input-required.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ Pass a list of keys instead of one, and the first key signs while every key veri
150150
->setRequestState([$_ENV['MCP_REQUEST_STATE_KEY'], $_ENV['MCP_REQUEST_STATE_KEY_PREVIOUS']], ttl: 600)
151151
```
152152

153+
Every entry must be a key: once the rotation is done, go back to a single key instead of
154+
leaving an unset variable in the list.
155+
153156
A state names no key, so the wire format does not change and a single key is a ring of one.
154157
To rotate without failing the calls in flight:
155158

‎tests/Unit/Server/Stateless/StatelessProtocolTest.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,7 @@ public function testUndeclaredGatewayElicitationIsRefused(): void
586586
/**
587587
* A handler asking twice: the second round has to remember the first
588588
* round's answer, which is what the `requestState` is for.
589-
*/
590-
/**
589+
*
591590
* @param string|list<string>|null $key the signing key or key ring, a fixed test key by default
592591
*/
593592
private static function twoAskProtocol(bool $signed = true, ?RequestStateBinderInterface $binder = null, string|array|null $key = null): StatelessProtocol

0 commit comments

Comments
 (0)