MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / cancelTask

Function cancelTask

client/src/lib/hooks/useConnection.ts:1160–1168  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

1158 };
1159
1160 const cancelTask = async (taskId: string) => {
1161 return makeRequest(
1162 {
1163 method: "tasks/cancel",
1164 params: { taskId },
1165 },
1166 CancelTaskResultSchema,
1167 );
1168 };
1169
1170 const listTasks = async (cursor?: string) => {
1171 return makeRequest(

Callers 1

handleCancelFunction · 0.50

Calls 1

makeRequestFunction · 0.85

Tested by

no test coverage detected