feat: add "theme" to Icon (#766)
* feat: add theme field to Icon * fix: update IconThem crates/rmcp/src/model.rs (non_exhaustive) Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com> * fix: update IconThem crates/rmcp/src/model.rs (eq, hash) Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com> * fix: update docs with full descriptions of theme from mcp spec --------- Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
This commit is contained in:
parent
6a3b32d3ab
commit
0b36a84f05
4 changed files with 140 additions and 0 deletions
|
|
@ -720,12 +720,38 @@
|
|||
"src": {
|
||||
"description": "A standard URI pointing to an icon resource",
|
||||
"type": "string"
|
||||
},
|
||||
"theme": {
|
||||
"description": "Optional specifier for the theme this icon is designed for\nIf not provided, the client should assume the icon can be used with any theme.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/IconTheme"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"src"
|
||||
]
|
||||
},
|
||||
"IconTheme": {
|
||||
"description": "Icon themes supported by the MCP specification",
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a light background",
|
||||
"type": "string",
|
||||
"const": "light"
|
||||
},
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a dark background",
|
||||
"type": "string",
|
||||
"const": "dark"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Implementation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
|
|
@ -720,12 +720,38 @@
|
|||
"src": {
|
||||
"description": "A standard URI pointing to an icon resource",
|
||||
"type": "string"
|
||||
},
|
||||
"theme": {
|
||||
"description": "Optional specifier for the theme this icon is designed for\nIf not provided, the client should assume the icon can be used with any theme.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/IconTheme"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"src"
|
||||
]
|
||||
},
|
||||
"IconTheme": {
|
||||
"description": "Icon themes supported by the MCP specification",
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a light background",
|
||||
"type": "string",
|
||||
"const": "light"
|
||||
},
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a dark background",
|
||||
"type": "string",
|
||||
"const": "dark"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Implementation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
|
|
@ -1090,12 +1090,38 @@
|
|||
"src": {
|
||||
"description": "A standard URI pointing to an icon resource",
|
||||
"type": "string"
|
||||
},
|
||||
"theme": {
|
||||
"description": "Optional specifier for the theme this icon is designed for\nIf not provided, the client should assume the icon can be used with any theme.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/IconTheme"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"src"
|
||||
]
|
||||
},
|
||||
"IconTheme": {
|
||||
"description": "Icon themes supported by the MCP specification",
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a light background",
|
||||
"type": "string",
|
||||
"const": "light"
|
||||
},
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a dark background",
|
||||
"type": "string",
|
||||
"const": "dark"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Implementation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
|
|
@ -1092,12 +1092,38 @@
|
|||
"src": {
|
||||
"description": "A standard URI pointing to an icon resource",
|
||||
"type": "string"
|
||||
},
|
||||
"theme": {
|
||||
"description": "Optional specifier for the theme this icon is designed for\nIf not provided, the client should assume the icon can be used with any theme.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/IconTheme"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"src"
|
||||
]
|
||||
},
|
||||
"IconTheme": {
|
||||
"description": "Icon themes supported by the MCP specification",
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a light background",
|
||||
"type": "string",
|
||||
"const": "light"
|
||||
},
|
||||
{
|
||||
"description": "Indicates the icon is designed to be used with a dark background",
|
||||
"type": "string",
|
||||
"const": "dark"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Implementation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue