mcp: ensure meta is not skipped on blob ResourceContents (#96)
I noticed this while working on #95. Seems Meta was accidentally skipped in the custom wire format struct.
This commit is contained in:
parent
c6b229c855
commit
328a25d503
1 changed files with 6 additions and 0 deletions
|
|
@ -187,10 +187,12 @@ func (r ResourceContents) MarshalJSON() ([]byte, error) {
|
|||
URI string `json:"uri,omitempty"`
|
||||
MIMEType string `json:"mimeType,omitempty"`
|
||||
Blob []byte `json:"blob"`
|
||||
Meta Meta `json:"_meta,omitempty"`
|
||||
}{
|
||||
URI: r.URI,
|
||||
MIMEType: r.MIMEType,
|
||||
Blob: r.Blob,
|
||||
Meta: r.Meta,
|
||||
}
|
||||
return json.Marshal(br)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue