Skip to content

chore(deps): bump github.com/mark3labs/mcp-go from 0.37.0 to 0.38.0 - #13

Merged
Slach merged 1 commit into
mainfrom
dependabot/go_modules/github.com/mark3labs/mcp-go-0.38.0
Aug 26, 2025
Merged

Slach merged 1 commit into
mainfrom
dependabot/go_modules/github.com/mark3labs/mcp-go-0.38.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 26, 2025

Copy link
Copy Markdown
Contributor

Bumps github.com/mark3labs/mcp-go from 0.37.0 to 0.38.0.

Release notes

Sourced from github.com/mark3labs/mcp-go's releases.

Release v0.38.0

What's Changed

New Contributors

Full Changelog: mark3labs/mcp-go@v0.37.0...v0.38.0

Commits
  • 35ebaa5 Add releases notification
  • 9f16336 fix: remove duplicate methods server.SetPrompts & server.SetResources (#542)
  • 8a18f59 feat: support creating tools using go-struct-style input schema (#534)
  • a3d34d9 feat: add missing SetPrompts, DeleteResources, and SetResources methods (#445)
  • 8a88d01 feat:add constants for resource content types (#489)
  • 9c5d303 fix CallToolResult json marshaling and unmarshaling: need structuredC… (#523)
  • 9393526 fix: resolve stdio transport race condition for concurrent tool calls (#529)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/mark3labs/mcp-go](https://github.com/mark3labs/mcp-go) from 0.37.0 to 0.38.0.
- [Release notes](https://github.com/mark3labs/mcp-go/releases)
- [Commits](mark3labs/mcp-go@v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: github.com/mark3labs/mcp-go
  dependency-version: 0.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Aug 26, 2025
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 17229825643

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 85.732%

Totals Coverage Status
Change from base Build 17130527432: 0.0%
Covered Lines: 2109
Relevant Lines: 2460

💛 - Coveralls

@Slach
Slach merged commit 62473e3 into main Aug 26, 2025
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/mark3labs/mcp-go-0.38.0 branch August 26, 2025 06:51
isushkov-akamai pushed a commit to isushkov-akamai/altinity-mcp that referenced this pull request Mar 30, 2026
…thub.com/mark3labs/mcp-go-0.38.0

chore(deps): bump github.com/mark3labs/mcp-go from 0.37.0 to 0.38.0
BorisTyshkevich added a commit that referenced this pull request May 15, 2026
Self-review #3 turned up four real bugs, three documentation drifts, and
three dead-code / consistency issues. No wire-shape change beyond the
bug fixes; all behaviour-affecting fixes have regression tests.

Bugs:

- **identityClaims comment lied** (#5-dup). The "intentionally unused"
  comment + bare `_ = identityClaims` next to a block that DOES read
  identityClaims.ExpiresAt (used to derive `expires_in`) was an invitation
  for a future "clean up unused vars" PR to silently drop the upstream
  identity validation. Comment rewritten to name the three jobs the
  validation actually does; underscore drop assigned.

- **cacheTTLFromHeader int64 overflow** (#7). `time.Duration(n) *
  time.Second` overflows when n > ~9.22e9, wrapping to a negative
  Duration that hit the "directive absent" sentinel branch and
  silently returned cimdDefaultCacheTTL (5m) instead of the intended
  cimdMaxCacheTTL (1h). Clamp n against int(cimdMaxCacheTTL/time.Second)
  before the multiply. Test rows added in TestCacheTTLFromHeader for
  max-age=9999999999 and max-age=int64.max.

- **upstream 200 OK with RFC 6749 error body mapped to 502 server_error**
  (#8). Non-RFC-compliant IdPs and test stubs that return HTTP 200 +
  {"error":"invalid_grant"} hit our "no usable token" branch → 502
  server_error. Replay-oracle contract assumes downstream sees
  invalid_grant. tokenResp struct gains Error / ErrorDescription
  fields; non-empty Error → downstream invalid_grant regardless of
  status. New TestOAuthTokenUpstream200WithErrorBody covers this.

- **Content-Type prefix-match too permissive** (#9). strings.HasPrefix
  accepted application/json-ld, application/jsonpatch+json, etc.
  Replaced with isApplicationJSON helper that splits on ";", trims,
  case-folds, and exact-matches "application/json". TestIsApplicationJSON
  covers the new behaviour.

UX / contract:

- **/oauth/register 404 → 410 Gone + JSON** (#11). Legacy DCR clients
  hitting the route now get an RFC 7591 §3.2.2-shaped error body
  pointing them at CIMD, not Go's bare text/plain 404. New
  handleOAuthRegisterRemoved handler. TestOAuthRegisterGone.

- **upstream_offline_access description rewritten** (#6). Previous
  desc tag claimed the flag "issues JWE-wrapped refresh tokens" —
  post-#115 it doesn't, and can't. Rewritten to explain the flag is
  upstream-scope-only and v1 issues no downstream refresh tokens
  regardless of its value.

Dead code:

- **#12 removals**: defaultRefreshTokenTTLSeconds (oauth_server.go),
  oauthRegistrationPath() method, OAuthConfig.RegistrationPath +
  YAML fixture + 2 test assertions, decodeStringSlice +
  TestDecodeStringSlice, statelessRegisteredClient.TokenEndpointAuthMethod
  (write-only field). statelessRegisteredClient is now one field.

- **#14 dec.UseNumber no-op + string copy**: oauthex.ClientRegistrationResponse
  has a custom UnmarshalJSON that bypasses outer-decoder settings, so
  UseNumber() was a no-op and strings.NewReader(string(body)) was a
  wasted copy. json.Unmarshal(body, &doc) directly.

Style:

- **Named upstream HTTP timeout** (#1). oauthUpstreamHTTPTimeout =
  10 * time.Second constant; both call sites use it.

Docs / comments:

- **oauthKidV1 comment** (#13). Said "client_id / refresh-token JWE
  artifacts" and "30-day window" — neither exists post-#115. Rewritten
  to name pending-auth (10 min) as the longest live legacy artifact and
  to indicate the SHA256(secret) fallback can be deleted in a follow-up
  after one rolling restart.

- **mustJWESecret error string**: said "OAuth client registration and
  forward-mode token wrapping" → now "JWE-wrapped pending-auth state
  and downstream auth-code minting".

- **oauth_server_test.go stale tombstone** removed.

- **oidcScopesForAdvertisement** doc no longer mentions DCR responses.

- **docs/oauth_authorization.md** banner explains the #115 cutover
  (DCR removed → CIMD only, no downstream refresh tokens, HA replay).

Tests added or strengthened: TestCacheTTLFromHeader (+2 overflow rows),
TestIsApplicationJSON (8 cases), TestValidateCIMDClientIDURL_Reject
(+data:/javascript:/file: scheme rejects), TestOAuthRegisterGone,
TestOAuthTokenRefreshGrantUnsupported, TestOAuthASMetadataShape,
TestOAuthTokenUpstream200WithErrorBody.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants