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

Function getTask

test/server/index.test.ts:2267–2273  ·  view source on GitHub ↗
(_args, extra)

Source from the content-addressed store, hash-verified

2265 return { task };
2266 },
2267 async getTask(_args, extra) {
2268 const task = await extra.taskStore.getTask(extra.taskId);
2269 if (!task) {
2270 throw new Error(`Task ${extra.taskId} not found`);
2271 }
2272 return task;
2273 },
2274 async getTaskResult(_args, extra) {
2275 const result = await extra.taskStore.getTaskResult(extra.taskId);
2276 return result as { content: Array<{ type: 'text'; text: string }> };

Callers

nothing calls this directly

Calls 1

getTaskMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…