fix: mirror params.taskId into Mcp-Name for tasks requests (SEP-2663) (#2613)
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com> Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
This commit is contained in:
parent
7b781ed4e2
commit
70de0c8b56
1 changed files with 184 additions and 45 deletions
|
|
@ -367,7 +367,7 @@ export function modernEnvelopeMeta(clientInfo?: Implementation): Record<string,
|
|||
* HTTP requests on the wire. `MCP-Protocol-Version` and `Mcp-Method` are
|
||||
* required on every modern *request* POST (notification POSTs are exempt);
|
||||
* `Mcp-Name` is additionally required for the methods that mirror
|
||||
* `params.name` / `params.uri`, and carries the `=?base64?…?=` sentinel
|
||||
* `params.name` / `params.uri` / `params.taskId`, and carries the `=?base64?…?=` sentinel
|
||||
* encoding the shipped client applies to it, so a name that is not a safe
|
||||
* plain-ASCII field value reaches the server exactly as that client would
|
||||
* send it rather than throwing in `Headers` construction.
|
||||
|
|
|
|||
Loading…
Reference in a new issue