You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(capabilities): add extensions field for SEP-1724 (#643)
Add support for MCP extension capabilities in both ClientCapabilities
and ServerCapabilities structs, as specified in SEP-1724.
Changes:
- Add ExtensionCapabilities type alias (BTreeMap<String, JsonObject>)
- Add 'extensions' field to ClientCapabilities struct
- Add 'extensions' field to ServerCapabilities struct
- Update builder macros and impl blocks for both structs
- Add comprehensive tests for extension capabilities
- Update JSON schema test fixtures
This enables clients to advertise extension support during initialize,
such as:
{
"capabilities": {
"extensions": {
"io.modelcontextprotocol/ui": {
"mimeTypes": ["text/html;profile=mcp-app"]
}
}
}
}
Closes#530
Copy file name to clipboardExpand all lines: crates/rmcp/tests/test_message_schema/client_json_rpc_message_schema.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -296,6 +296,17 @@
296
296
"additionalProperties": true
297
297
}
298
298
},
299
+
"extensions": {
300
+
"description": "Optional MCP extensions that the client supports (SEP-1724).\nKeys are extension identifiers (e.g., `\"io.modelcontextprotocol/ui\"`),\nvalues are per-extension settings objects. An empty object indicates\nsupport with no settings.",
Copy file name to clipboardExpand all lines: crates/rmcp/tests/test_message_schema/client_json_rpc_message_schema_current.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -296,6 +296,17 @@
296
296
"additionalProperties": true
297
297
}
298
298
},
299
+
"extensions": {
300
+
"description": "Optional MCP extensions that the client supports (SEP-1724).\nKeys are extension identifiers (e.g., `\"io.modelcontextprotocol/ui\"`),\nvalues are per-extension settings objects. An empty object indicates\nsupport with no settings.",
Copy file name to clipboardExpand all lines: crates/rmcp/tests/test_message_schema/server_json_rpc_message_schema.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2369,6 +2369,17 @@
2369
2369
"additionalProperties": true
2370
2370
}
2371
2371
},
2372
+
"extensions": {
2373
+
"description": "Optional MCP extensions that the server supports (SEP-1724).\nKeys are extension identifiers (e.g., `\"io.modelcontextprotocol/apps\"`),\nvalues are per-extension settings objects. An empty object indicates\nsupport with no settings.",
Copy file name to clipboardExpand all lines: crates/rmcp/tests/test_message_schema/server_json_rpc_message_schema_current.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2369,6 +2369,17 @@
2369
2369
"additionalProperties": true
2370
2370
}
2371
2371
},
2372
+
"extensions": {
2373
+
"description": "Optional MCP extensions that the server supports (SEP-1724).\nKeys are extension identifiers (e.g., `\"io.modelcontextprotocol/apps\"`),\nvalues are per-extension settings objects. An empty object indicates\nsupport with no settings.",
0 commit comments