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

Function emitTaskStatus

client/src/lib/hooks/useConnection.ts:854–866  ·  view source on GitHub ↗
(task: Task)

Source from the content-addressed store, hash-verified

852 };
853
854 const emitTaskStatus = async (task: Task) => {
855 // Best-effort; task status notifications are optional.
856 try {
857 const notification: ClientNotification = {
858 method: "notifications/tasks/status",
859 params: task,
860 } as unknown as ClientNotification;
861 await client.notification(notification);
862 pushHistory(notification);
863 } catch (e) {
864 console.warn("Failed to send notifications/tasks/status", e);
865 }
866 };
867
868 const upsertReceiverTask = async (task: Task) => {
869 // Update task record and emit status notification.

Callers 3

upsertReceiverTaskFunction · 0.85
createReceiverTaskFunction · 0.85
connectFunction · 0.85

Calls 1

pushHistoryFunction · 0.85

Tested by

no test coverage detected