Repository navigation
build: update mcp-go-sdk version to v1.4.0 #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
xcoulon
merged 2 commits into
codeready-toolchain:master
from
xcoulon:mcp-go-sdk-v1.4.0
Mar 24, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,15 +1,17 @@ | ||||||
| module github.com/codeready-toolchain/argocd-mcp-server | ||||||
|
|
||||||
| go 1.24.13 | ||||||
| go 1.24.6 | ||||||
|
|
||||||
| toolchain go1.24.13 | ||||||
|
|
||||||
| require ( | ||||||
| github.com/argoproj/argo-cd/v3 v3.1.11 | ||||||
| github.com/argoproj/gitops-engine v0.7.1-0.20250905160054-e48120133eec | ||||||
| github.com/codeready-toolchain/mcp-common v0.0.0-20260311065550-14ceedd27660 | ||||||
| github.com/codeready-toolchain/toolchain-e2e v0.0.0-20260112152755-eb77a8e22ccb | ||||||
| github.com/google/jsonschema-go v0.3.0 | ||||||
| github.com/google/jsonschema-go v0.4.2 | ||||||
| github.com/h2non/gock v1.2.0 | ||||||
| github.com/modelcontextprotocol/go-sdk v1.2.0 | ||||||
| github.com/modelcontextprotocol/go-sdk v1.4.0 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, let me open another PR for to upgrade to github.com/modelcontextprotocol/go-sdk v1.4.1 and hence, to Go 1.25 |
||||||
| github.com/prometheus/client_golang v1.22.0 | ||||||
| github.com/spf13/cobra v1.10.1 | ||||||
| github.com/spf13/pflag v1.0.9 | ||||||
|
|
@@ -65,7 +67,7 @@ require ( | |||||
| github.com/gobwas/glob v0.2.3 // indirect | ||||||
| github.com/gogo/protobuf v1.3.2 // indirect | ||||||
| github.com/golang-jwt/jwt/v4 v4.5.2 // indirect | ||||||
| github.com/golang-jwt/jwt/v5 v5.2.2 // indirect | ||||||
| github.com/golang-jwt/jwt/v5 v5.3.0 // indirect | ||||||
| github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect | ||||||
| github.com/google/btree v1.1.3 // indirect | ||||||
| github.com/google/gnostic-models v0.6.9 // indirect | ||||||
|
|
@@ -113,6 +115,8 @@ require ( | |||||
| github.com/redis/go-redis/v9 v9.8.0 // indirect | ||||||
| github.com/robfig/cron/v3 v3.0.2-0.20210106135023-bc59245fe10e // indirect | ||||||
| github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||||||
| github.com/segmentio/asm v1.1.3 // indirect | ||||||
| github.com/segmentio/encoding v0.5.4 // indirect | ||||||
| github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect | ||||||
| github.com/sirupsen/logrus v1.9.3 // indirect | ||||||
| github.com/skeema/knownhosts v1.3.1 // indirect | ||||||
|
|
@@ -131,7 +135,7 @@ require ( | |||||
| golang.org/x/net v0.48.0 // indirect | ||||||
| golang.org/x/oauth2 v0.34.0 // indirect | ||||||
| golang.org/x/sync v0.19.0 // indirect | ||||||
| golang.org/x/sys v0.39.0 // indirect | ||||||
| golang.org/x/sys v0.40.0 // indirect | ||||||
| golang.org/x/term v0.38.0 // indirect | ||||||
| golang.org/x/text v0.32.0 // indirect | ||||||
| golang.org/x/time v0.12.0 // indirect | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security: mcp-go-sdk v1.4.0 has known HIGH severity vulnerabilities.
The static analysis tools have flagged two HIGH severity vulnerabilities in
github.com/modelcontextprotocol/go-sdkv1.4.0:GHSA-89xv-2j6f-qhc8 (CSRF): "The Go SDK's Streamable HTTP transport accepted browser-generated cross-site POST requests without validating the Origin header and without requiring …"
GHSA-q382-vc8q-7jhj (JSON Key Collusion): "The Model Context Protocol (MCP) Go SDK, via its dependency on segmentio/encoding, is vulnerable to JSON Key Collusion. The JSON parser improperly handles null Unicode characters during struct field mapping, allowing attackers to smuggle overriding keys past security filters and manipulate backend application logic."
Both vulnerabilities are fixed in v1.4.1. While the PR description notes v1.4.1 requires Go 1.25, consider:
go.moddocumenting this known limitation🧰 Tools
🪛 OSV Scanner (2.3.3)
[HIGH] 14-14: github.com/modelcontextprotocol/go-sdk 1.4.0: Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk
(GHSA-89xv-2j6f-qhc8)
[HIGH] 14-14: github.com/modelcontextprotocol/go-sdk 1.4.0: Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk
(GHSA-q382-vc8q-7jhj)
🤖 Prompt for AI Agents