From 2d63aa1c2ff8fa7032fdc8e519931c8c59c67159 Mon Sep 17 00:00:00 2001 From: Luca Chang Date: Thu, 28 May 2026 13:02:15 -0700 Subject: [PATCH] chore: port ResultType fix https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2773 --- docs/specification/draft/tasks.mdx | 2 +- seps/2663-tasks-extension.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/specification/draft/tasks.mdx b/docs/specification/draft/tasks.mdx index aa73a28..0c5a393 100644 --- a/docs/specification/draft/tasks.mdx +++ b/docs/specification/draft/tasks.mdx @@ -98,7 +98,7 @@ A request that is eligible for task-augmentation may return one of two distinct ```typescript // "task" is introduced by this extension. -type ResultType = "complete" | "input_required" | "task"; +type ResultType = "complete" | "input_required" | "task" | string; ``` Servers **MUST** set `resultType` to `"task"` when returning a `CreateTaskResult` so that clients can distinguish it from a standard result. Servers **MUST NOT** set `resultType` to `"task"` on result types other than `CreateTaskResult`. diff --git a/seps/2663-tasks-extension.md b/seps/2663-tasks-extension.md index 9f9012f..28f6c06 100644 --- a/seps/2663-tasks-extension.md +++ b/seps/2663-tasks-extension.md @@ -122,7 +122,7 @@ A request that is eligible for task-augmentation may return one of two distinct ```typescript // "task" is introduced by this extension. -type ResultType = "complete" | "input_required" | "task"; +type ResultType = "complete" | "input_required" | "task" | string; ``` Servers **MUST** set `resultType` to `"task"` when returning a `CreateTaskResult` so that clients can distinguish it from a standard result. Servers **MUST NOT** set `resultType` to `"task"` on result types other than `CreateTaskResult`.