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

Function getTask

test/client/index.test.ts:2389–2395  ·  view source on GitHub ↗
(_args, extra)

Source from the content-addressed store, hash-verified

2387 return { task };
2388 },
2389 async getTask(_args, extra) {
2390 const task = await extra.taskStore.getTask(extra.taskId);
2391 if (!task) {
2392 throw new Error(`Task ${extra.taskId} not found`);
2393 }
2394 return task;
2395 },
2396 async getTaskResult(_args, extra) {
2397 const result = await extra.taskStore.getTaskResult(extra.taskId);
2398 return result as { content: Array<{ type: 'text'; text: string }> };

Callers 1

waitForTaskStatusFunction · 0.50

Calls 1

getTaskMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…