You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade go-sdk to v1.6.0 and consolidate session-missing detection (#6017)
This module is the core MCP dependency in `gh-aw-mcpg`, and the repo was
one minor version behind on `modelcontextprotocol/go-sdk`. This PR
updates the SDK and tightens a small MCP transport code path called out
in the review by removing duplicated session-not-found string matching.
- **Dependency refresh**
- Bumps `github.com/modelcontextprotocol/go-sdk` from `v1.5.0` to
`v1.6.0`.
- Updates transitive module metadata/checksums (including
`github.com/google/jsonschema-go`).
- **Session-not-found detection cleanup**
- Introduces a shared constant for the backend session-missing message
in `internal/mcp/http_transport.go`.
- Reuses that constant in both helpers:
- `isSessionNotFoundError`
- `isSessionNotFoundHTTPResponse`
- Keeps behavior unchanged while removing duplicated literals.
- **SDK contract annotation update**
- Updates the bypass-validation contract note in
`internal/server/tool_registry.go` to reflect verification against
go-sdk `v1.6.0`.
```go
const (
HTTPTransportPlainJSON HTTPTransportType = "plain-json"
sessionNotFoundMessage = "session not found"
)
func isSessionNotFoundError(err error) bool {
if errors.Is(err, sdk.ErrSessionMissing) {
return true
}
return strings.Contains(strings.ToLower(err.Error()), sessionNotFoundMessage)
}
```
0 commit comments