feat: HTTP Header Standardization for method and name (#907)
## Description Implements SEP-2243 (https://modelcontextprotocol.io/seps/2243-http-standardization) (HTTP Header Standardization) for Mcp-Method and Mcp-Name standard headers (x-mcp-param custom headers will be covvered in separate PR). Fixes #905
This commit is contained in:
parent
93a41b2cfa
commit
e01639a318
1 changed files with 798 additions and 10 deletions
|
|
@ -70,7 +70,7 @@ func (s *fakeStreamableServer) ServeHTTP(w http.ResponseWriter, req *http.Reques
|
|||
key := streamableRequestKey{
|
||||
httpMethod: req.Method,
|
||||
sessionID: req.Header.Get(sessionIDHeader),
|
||||
lastEventID: req.Header.Get("Last-Event-ID"), // TODO: extract this to a constant, like sessionIDHeader
|
||||
lastEventID: req.Header.Get(lastEventIDHeader),
|
||||
}
|
||||
var jsonrpcReq *jsonrpc.Request
|
||||
if req.Method == http.MethodPost {
|
||||
|
|
|
|||
Loading…
Reference in a new issue