MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / getTask

Method getTask

src/shared/protocol.ts:197–197  ·  view source on GitHub ↗

* Gets the current status of a task. * * @param taskId - The task identifier * @returns The task object * @throws If the task does not exist

(taskId: string)

Source from the content-addressed store, hash-verified

195 * @throws If the task does not exist
196 */
197 getTask(taskId: string): Promise<Task>;
198
199 /**
200 * Stores the result of a task and sets its final status.

Callers 15

getTaskFunction · 0.65
getTaskFunction · 0.65
index.test.tsFile · 0.65
protocol.test.tsFile · 0.65
getTaskFunction · 0.65
index.test.tsFile · 0.65
mcp.test.tsFile · 0.65
in-memory.test.tsFile · 0.65
constructorFunction · 0.65
handleTaskResultFunction · 0.65

Implementers 1

InMemoryTaskStoresrc/experimental/tasks/stores/in-memor

Calls

no outgoing calls

Tested by 3

getTaskFunction · 0.52
getTaskFunction · 0.52
getTaskFunction · 0.52