mcpcompat

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeCancellation

func NormalizeCancellation(body []byte, protocolVersion string) ([]byte, bool)

NormalizeCancellation adds the request metadata required by the 2026-07-28 protocol when an SDK v1.7.0 client sends notifications/cancelled without it. The same SDK server rejects that notification with HTTP 400, which otherwise makes the client's entire logical connection unusable after cancellation.

Types

type RoundTripper

type RoundTripper struct {
	Base http.RoundTripper
}

RoundTripper applies NormalizeCancellation to outbound MCP requests.

func (*RoundTripper) RoundTrip

func (t *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL