chore: Make debug MCP install keyboard shortcut only (#742)

This commit is contained in:
Alex Hancock
2025-01-25 22:17:09 -05:00
committed by GitHub
parent d1ee6f601e
commit 9e3b2d1edb
+3 -8
View File
@@ -426,11 +426,8 @@ app.whenReady().then(async () => {
}) })
); );
fileMenu.submenu.append( // Register global shortcut for Install MCP Extension
new MenuItem({ globalShortcut.register('Shift+Command+Y', () => {
label: 'Install MCP Extension',
accelerator: 'Shift+Command+Y',
click() {
const defaultUrl = const defaultUrl =
'goose://extension?cmd=npx&arg=-y&arg=%40modelcontextprotocol%2Fserver-github&id=github&name=GitHub&description=Repository%20management%2C%20file%20operations%2C%20and%20GitHub%20API%20integration&env=GITHUB_TOKEN%3DGitHub%20personal%20access%20token'; 'goose://extension?cmd=npx&arg=-y&arg=%40modelcontextprotocol%2Fserver-github&id=github&name=GitHub&description=Repository%20management%2C%20file%20operations%2C%20and%20GitHub%20API%20integration&env=GITHUB_TOKEN%3DGitHub%20personal%20access%20token';
@@ -513,9 +510,7 @@ app.whenReady().then(async () => {
} }
}); });
} }
}, });
})
);
} }
Menu.setApplicationMenu(menu); Menu.setApplicationMenu(menu);