Skip to content

Commit f3fef81

Browse files
authored
Fix bug with MarshalJSON for NotificationParams (#233)
Co-authored-by: Roman Gelembjuk <Roman Gelembjuk>
1 parent 3ba0c91 commit f3fef81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type NotificationParams struct {
132132
}
133133

134134
// MarshalJSON implements custom JSON marshaling
135-
func (p *NotificationParams) MarshalJSON() ([]byte, error) {
135+
func (p NotificationParams) MarshalJSON() ([]byte, error) {
136136
// Create a map to hold all fields
137137
m := make(map[string]interface{})
138138

0 commit comments

Comments
 (0)