fix(nvim-core): implement empty resource and prompt list stubs for strict MCP client compatibility

This commit is contained in:
Riz Ashraf committed 2026-09-27 21:59:55 +01:00
1 parent 36e35d4fbd
commit 52c4c7c479
1 file changed
+26
+26
View File
@@ -774,6 +774,32 @@ pub async fn run_mcp_loop(app_name: &str, app_version: &str) {
.await;
}
"notifications/initialized" => {}
"resources/list" => {
send_response(JsonRpcResponse {
jsonrpc: "2.0".to_string(),
id,
result: Some(json!({"resources": []})),
error: None,
}).await;
}
"resources/templates/list" => {
send_response(JsonRpcResponse {
jsonrpc: "2.0".to_string(),
id,
result: Some(json!({"resourceTemplates": []})),
error: None,
}).await;
}
"prompts/list" => {
send_response(JsonRpcResponse {
jsonrpc: "2.0".to_string(),
id,
result: Some(json!({"prompts": []})),
error: None,
}).await;
}
"tools/list" => {
send_response(JsonRpcResponse {
jsonrpc: "2.0".to_string(),