internal/mcp: add NotifyProgress
This CL adds a NotifyProgress function and a ProgressNotificationHandler to enable progress sending and handling. Subsequent CL's to follow to handle progress updates for other methods such as list or readresource. Change-Id: Ifcc422e6f6231d7d773d5432c1cf64032d796709 Reviewed-on: https://go-review.googlesource.com/c/tools/+/681116 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
This commit is contained in:
parent
6a6c44171c
commit
11b17f5858
1 changed files with 78 additions and 5 deletions
|
|
@ -142,6 +142,10 @@ var declarations = config{
|
|||
Name: "-",
|
||||
Fields: config{"Params": {Name: "PromptListChangedParams"}},
|
||||
},
|
||||
"ProgressNotification": {
|
||||
Name: "-",
|
||||
Fields: config{"Params": {Name: "ProgressNotificationParams"}},
|
||||
},
|
||||
"ProgressToken": {Name: "-", Substitute: "any"}, // null|number|string
|
||||
"RequestId": {Name: "-", Substitute: "any"}, // null|number|string
|
||||
"ReadResourceRequest": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue