Skip to content

Commit 23b804b

Browse files
committed
test: add required Mcp-Method and Mcp-Name headers to streamable integration tests
1 parent 4beb079 commit 23b804b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

mcp/streamable_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3413,6 +3413,10 @@ func TestStreamableStateless_NewProtocolSession_NoFakeInit(t *testing.T) {
34133413
httpReq.Header.Set("Content-Type", "application/json")
34143414
httpReq.Header.Set("Accept", "application/json, text/event-stream")
34153415
httpReq.Header.Set(protocolVersionHeader, protocolVersion20260630)
3416+
// >= 2026-06-30 also requires the Mcp-Method and Mcp-Name standard
3417+
// headers (see streamable_headers.go).
3418+
httpReq.Header.Set(methodHeader, "tools/call")
3419+
httpReq.Header.Set(nameHeader, "capture")
34163420

34173421
resp, err := http.DefaultClient.Do(httpReq)
34183422
if err != nil {

0 commit comments

Comments
 (0)