MCPcopy Index your code
hub / github.com/modelcontextprotocol/go-sdk / NotifyProgress

Method NotifyProgress

mcp/server.go:1093–1095  ·  view source on GitHub ↗

NotifyProgress sends a progress notification from the server to the client associated with this session. This is typically used to report on the status of a long-running request that was initiated by the client.

(ctx context.Context, params *ProgressNotificationParams)

Source from the content-addressed store, hash-verified

1091// This is typically used to report on the status of a long-running request
1092// that was initiated by the client.
1093func (ss *ServerSession) NotifyProgress(ctx context.Context, params *ProgressNotificationParams) error {
1094 return handleNotify(ctx, notificationProgress, newServerRequest(ss, orZero[Params](params)))
1095}
1096
1097func newServerRequest[P Params](ss *ServerSession, params P) *ServerRequest[P] {
1098 return &ServerRequest[P]{Session: ss, Params: params}

Callers 6

Example_progressFunction · 0.45
TestEndToEndFunction · 0.45
testClientReplayFunction · 0.45

Calls 2

handleNotifyFunction · 0.85
newServerRequestFunction · 0.85

Tested by 5

Example_progressFunction · 0.36
TestEndToEndFunction · 0.36
testClientReplayFunction · 0.36