Skip to content

Commit 13c6835

Browse files
committed
Add optional statusMessage field
1 parent 33c3215 commit 13c6835

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ To create a task, requestors send a request with the `modelcontextprotocol.io/ta
122122
"result": {
123123
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
124124
"status": "working",
125+
"statusMessage": "The operation is now in progress.",
125126
"keepAlive": 60000,
126127
"pollInterval": 5000,
127128
"_meta": {
@@ -163,6 +164,7 @@ To retrieve the state of a task, requestors send a `tasks/get` request:
163164
"keepAlive": 30000,
164165
"pollInterval": 5000,
165166
"status": "working",
167+
"statusMessage": "The operation is now in progress.",
166168
"_meta": {
167169
"modelcontextprotocol.io/related-task": {
168170
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"

docs/specification/draft/schema.mdx

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,11 @@ export interface Task {
12251225
*/
12261226
status: TaskStatus;
12271227

1228+
/**
1229+
* Current task state message, optional.
1230+
*/
1231+
statusMessage?: string;
1232+
12281233
/**
12291234
* Actual retention duration in milliseconds, null for unlimited.
12301235
*/

0 commit comments

Comments
 (0)