Skip to content

Commit 2c75249

Browse files
committed
add CustomClientNotification to client_json_rpc_message_schema.json and client_json_rpc_message_schema_current.json
1 parent 56347d8 commit 2c75249

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

crates/rmcp/tests/test_message_schema/client_json_rpc_message_schema.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,19 @@
396396
"content"
397397
]
398398
},
399+
"CustomClientNotification": {
400+
"description": "A catch-all notification the client can use to send custom messages to a server.\n\nThis preserves the raw `method` name and `params` payload so handlers can\ndeserialize them into domain-specific types.",
401+
"type": "object",
402+
"properties": {
403+
"method": {
404+
"type": "string"
405+
},
406+
"params": true
407+
},
408+
"required": [
409+
"method"
410+
]
411+
},
399412
"ElicitationAction": {
400413
"description": "Represents the possible actions a user can take in response to an elicitation request.\n\nWhen a server requests user input through elicitation, the user can:\n- Accept: Provide the requested information and continue\n- Decline: Refuse to provide the information but continue the operation\n- Cancel: Stop the entire operation",
401414
"oneOf": [
@@ -636,6 +649,9 @@
636649
},
637650
{
638651
"$ref": "#/definitions/NotificationNoParam2"
652+
},
653+
{
654+
"$ref": "#/definitions/CustomClientNotification"
639655
}
640656
],
641657
"required": [

crates/rmcp/tests/test_message_schema/client_json_rpc_message_schema_current.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,19 @@
396396
"content"
397397
]
398398
},
399+
"CustomClientNotification": {
400+
"description": "A catch-all notification the client can use to send custom messages to a server.\n\nThis preserves the raw `method` name and `params` payload so handlers can\ndeserialize them into domain-specific types.",
401+
"type": "object",
402+
"properties": {
403+
"method": {
404+
"type": "string"
405+
},
406+
"params": true
407+
},
408+
"required": [
409+
"method"
410+
]
411+
},
399412
"ElicitationAction": {
400413
"description": "Represents the possible actions a user can take in response to an elicitation request.\n\nWhen a server requests user input through elicitation, the user can:\n- Accept: Provide the requested information and continue\n- Decline: Refuse to provide the information but continue the operation\n- Cancel: Stop the entire operation",
401414
"oneOf": [
@@ -636,6 +649,9 @@
636649
},
637650
{
638651
"$ref": "#/definitions/NotificationNoParam2"
652+
},
653+
{
654+
"$ref": "#/definitions/CustomClientNotification"
639655
}
640656
],
641657
"required": [

0 commit comments

Comments
 (0)