chore: Make debug MCP install keyboard shortcut only (#742)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user