Skip to content

Commit df3bf26

Browse files
fix: omit handlers in serialization
1 parent e9b0dc5 commit df3bf26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mcp/prompts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type PromptArgument struct {
6969
// If true, clients must include this argument when calling prompts/get.
7070
Required bool `json:"required,omitempty"`
7171
// Optional CompletionHandlerFunc for autocompleting the argument value.
72-
CompletionHandler *CompletionHandlerFunc `json:"completionHandler,omitempty"`
72+
CompletionHandler *CompletionHandlerFunc `json:"-"`
7373
}
7474

7575
// Role represents the sender or recipient of messages and data in a

mcp/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type URITemplate struct {
8181
*uritemplate.Template
8282

8383
// Optional mapping of URI template arguments to CompletionHandlerFunc for autocompleting each argument's value.
84-
ArgumentCompletionHandlers map[string]CompletionHandlerFunc `json:"argumentCompletionHandlers,omitempty"`
84+
ArgumentCompletionHandlers map[string]CompletionHandlerFunc `json:"-"`
8585
}
8686

8787
func (t *URITemplate) MarshalJSON() ([]byte, error) {

0 commit comments

Comments
 (0)