Skip to content

Commit 3579aa1

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

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
@@ -106,6 +106,9 @@ Pass a list of keys instead of one, and the first key signs while every key veri
106106
->setRequestState([$_ENV['MCP_REQUEST_STATE_KEY'], $_ENV['MCP_REQUEST_STATE_KEY_PREVIOUS']], ttl: 600)
107107
```
108108

109+
Every entry must be a key: once the rotation is done, go back to a single key instead of
110+
leaving an unset variable in the list.
111+
109112
A state names no key, so the wire format does not change and a single key is a ring of one.
110113
To rotate without failing the calls in flight:
111114

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,7 @@ public function testUndeclaredGatewayElicitationIsRefused(): void
576576
/**
577577
* A handler asking twice: the second round has to remember the first
578578
* round's answer, which is what the `requestState` is for.
579-
*/
580-
/**
579+
*
581580
* @param string|list<string>|null $key the signing key or key ring, a fixed test key by default
582581
*/
583582
private static function twoAskProtocol(bool $signed = true, string|array|null $key = null): StatelessProtocol

0 commit comments

Comments
 (0)