mcp: add an example customizing a nested type schema#470
Merged
findleyr merged 1 commit intomodelcontextprotocol:mainfrom Sep 17, 2025
Merged
mcp: add an example customizing a nested type schema#470findleyr merged 1 commit intomodelcontextprotocol:mainfrom
findleyr merged 1 commit intomodelcontextprotocol:mainfrom
Conversation
Add an example that demonstrates how to customize a nested type schema, which is a recurring problem for our users (see modelcontextprotocol#467). Fixes modelcontextprotocol#467 Updates modelcontextprotocol#368
jba
approved these changes
Sep 17, 2025
xcoulon
added a commit
to xcoulon/argocd-mcp-server
that referenced
this pull request
Mar 23, 2026
we need to stick to the mcp/go-sdk version 1.4.0 because the latest version (v1.4.1) upgraded to Go 1.25 which is not compatible with our Go version :/ Also, validate the schemas for the tools, panic via `log.Fatalf()` in the `init()` functions. See modelcontextprotocol/go-sdk#470 for more details on why we need to register an schema for the `metav1.Time` type (which uses the `time.Time` type as an embedded field) Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
xcoulon
added a commit
to codeready-toolchain/argocd-mcp-server
that referenced
this pull request
Mar 24, 2026
we need to stick to the mcp/go-sdk version 1.4.0 because the latest version (v1.4.1) upgraded to Go 1.25 which is not compatible with our Go version :/ Also, validate the schemas for the tools, panic via `log.Fatalf()` in the `init()` functions. See modelcontextprotocol/go-sdk#470 for more details on why we need to register an schema for the `metav1.Time` type (which uses the `time.Time` type as an embedded field) --------- Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add an example that demonstrates how to customize a nested type schema, which is a recurring problem for our users (see #467).
Fixes #467
Updates #368