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

Method createTask

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

* Creates a new task with the given creation parameters. * The implementation generates a unique taskId and createdAt timestamp. * * @param taskParams - The task creation parameters from the request * @returns The created task object

(taskParams: CreateTaskOptions)

Source from the content-addressed store, hash-verified

186 * @returns The created task object
187 */
188 createTask(taskParams: CreateTaskOptions): Promise<Task>;
189
190 /**
191 * Gets the current status of a task.

Callers 13

createTaskFunction · 0.65
createTaskFunction · 0.65
index.test.tsFile · 0.65
protocol.test.tsFile · 0.65
createTaskFunction · 0.65
index.test.tsFile · 0.65
mcp.test.tsFile · 0.65
in-memory.test.tsFile · 0.65
requestTaskStoreFunction · 0.65
executeToolHandlerMethod · 0.65

Implementers 1

InMemoryTaskStoresrc/experimental/tasks/stores/in-memor

Calls

no outgoing calls

Tested by 3

createTaskFunction · 0.52
createTaskFunction · 0.52
createTaskFunction · 0.52