mirror of
https://github.com/openai/codex.git
synced 2026-04-25 15:15:15 +00:00
69 lines
1.4 KiB
JSON
69 lines
1.4 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"ResourceContent": {
|
|
"anyOf": [
|
|
{
|
|
"properties": {
|
|
"_meta": true,
|
|
"mimeType": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"description": "The URI of this resource.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text",
|
|
"uri"
|
|
],
|
|
"type": "object"
|
|
},
|
|
{
|
|
"properties": {
|
|
"_meta": true,
|
|
"blob": {
|
|
"type": "string"
|
|
},
|
|
"mimeType": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"uri": {
|
|
"description": "The URI of this resource.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"blob",
|
|
"uri"
|
|
],
|
|
"type": "object"
|
|
}
|
|
],
|
|
"description": "Contents returned when reading a resource from an MCP server."
|
|
}
|
|
},
|
|
"properties": {
|
|
"contents": {
|
|
"items": {
|
|
"$ref": "#/definitions/ResourceContent"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"contents"
|
|
],
|
|
"title": "McpResourceReadResponse",
|
|
"type": "object"
|
|
} |