Skip to content

McpTask

Defined in: src/mcp/task-types.ts:17

Operational metadata shared by every MCP task state.

taskId: string;

Defined in: src/mcp/task-types.ts:19

Stable server-generated task identifier.


status: McpTaskStatus;

Defined in: src/mcp/task-types.ts:20


optional statusMessage?: string;

Defined in: src/mcp/task-types.ts:21


createdAt: string;

Defined in: src/mcp/task-types.ts:23

ISO 8601 timestamp at which the task was created.


lastUpdatedAt: string;

Defined in: src/mcp/task-types.ts:25

ISO 8601 timestamp at which the task was last updated.


ttlMs: number;

Defined in: src/mcp/task-types.ts:27

Retention duration from creation in milliseconds, or null for unlimited retention.


optional pollIntervalMs?: number;

Defined in: src/mcp/task-types.ts:29

Server-suggested polling interval in milliseconds.