internal/mcp: implement ping, and test request interleaving
Also validate that requests observe the lifecycle rules defined in the spec. Change-Id: I302282f81e053e76926e0bb295f7dbf8d526f02d Reviewed-on: https://go-review.googlesource.com/c/tools/+/667575 Reviewed-by: Jonathan Amsterdam <jba@google.com> Commit-Queue: Robert Findley <rfindley@google.com> Auto-Submit: Robert Findley <rfindley@google.com> TryBot-Bypass: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
ef446f82d7
commit
fe938f6eb7
1 changed files with 81 additions and 18 deletions
|
|
@ -41,6 +41,9 @@ func TestSSEServer(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := sc.Ping(ctx); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
cc := <-clients
|
||||
gotHi, err := sc.CallTool(ctx, "greet", hiParams{"user"})
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue