MCPcopy Create free account
hub / github.com/github/copilot-sdk / assertMCPAuthInterest

Function assertMCPAuthInterest

go/client_test.go:1659–1667  ·  view source on GitHub ↗
(t *testing.T, request recordedRequest)

Source from the content-addressed store, hash-verified

1657}
1658
1659func assertMCPAuthInterest(t *testing.T, request recordedRequest) {
1660 t.Helper()
1661 if request.Method != "session.eventLog.registerInterest" {
1662 t.Fatalf("expected registerInterest request, got %s", request.Method)
1663 }
1664 if request.Params["eventType"] != "mcp.oauth_required" {
1665 t.Fatalf("expected mcp.oauth_required interest, got %v", request.Params["eventType"])
1666 }
1667}
1668
1669func assertCreateRequestPermission(t *testing.T, requests []recordedRequest) {
1670 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…