Skip to content

Commit 60620cd

Browse files
committed
Fix minor issues
- Consolidated TaskInfo and Task types for tasks/list - Fixed a type
1 parent a4f8c07 commit 60620cd

File tree

4 files changed

+4
-81
lines changed

4 files changed

+4
-81
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The design of tasks may evolve in future protocol versions.
1313

1414
</Note>
1515

16-
The Model Context Protcol (MCP) allows requestors (which can be either clients or servers, depending on the direction of communication) to augment their requests with **tasks**. Tasks are durable state machines that carry information about the underlying execution state of the request they wrap, and are intended for requestor polling and deferred result retrieval. Each task is uniquely identifiable by a receiver-generated **task ID**.
16+
The Model Context Protocol (MCP) allows requestors (which can be either clients or servers, depending on the direction of communication) to augment their requests with **tasks**. Tasks are durable state machines that carry information about the underlying execution state of the request they wrap, and are intended for requestor polling and deferred result retrieval. Each task is uniquely identifiable by a receiver-generated **task ID**.
1717

1818
## User Interaction Model
1919

docs/specification/draft/schema.mdx

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

schema/draft/schema.json

Lines changed: 1 addition & 37 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: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,50 +1329,13 @@ export interface ListTasksRequest extends PaginatedRequest {
13291329
method: "tasks/list";
13301330
}
13311331

1332-
/**
1333-
* A summary of a task's state, as returned by tasks/list.
1334-
*
1335-
* @category tasks/list
1336-
*/
1337-
export interface TaskInfo {
1338-
/**
1339-
* The task identifier.
1340-
*/
1341-
taskId: string;
1342-
1343-
/**
1344-
* Current task state.
1345-
*/
1346-
status: TaskStatus;
1347-
1348-
/**
1349-
* ISO 8601 timestamp when the task was created.
1350-
*/
1351-
createdAt: string;
1352-
1353-
/**
1354-
* Retention duration from creation in milliseconds, null for unlimited.
1355-
*/
1356-
ttl: number | null;
1357-
1358-
/**
1359-
* Suggested polling interval in milliseconds.
1360-
*/
1361-
pollInterval?: number;
1362-
1363-
/**
1364-
* Error message if status is "failed".
1365-
*/
1366-
error?: string;
1367-
}
1368-
13691332
/**
13701333
* The response to a tasks/list request.
13711334
*
13721335
* @category tasks/list
13731336
*/
13741337
export interface ListTasksResult extends PaginatedResult {
1375-
tasks: TaskInfo[];
1338+
tasks: Task[];
13761339
}
13771340

13781341
/**

0 commit comments

Comments
 (0)