Skip to content

Commit 592661e

Browse files
authored
mcp: add a skip action to autostart (microsoft#263307)
Closes microsoft#263306
1 parent 36559a0 commit 592661e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/vs/workbench/contrib/mcp/common/mcpService.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,14 @@ export class McpService extends Disposable implements IMcpService {
8888
cancellable: true,
8989
delay: 5_000,
9090
total: todo.length,
91-
buttons: [localize('mcp.autostart.configure', 'Configure MCP Autostart')]
91+
buttons: [
92+
localize('mcp.autostart.send', 'Skip Waiting'),
93+
localize('mcp.autostart.configure', 'Configure'),
94+
]
9295
},
9396
report => {
9497
const remaining = new Set(todo);
95-
const doReport = () => report.report({ message: localize('mcp.autostart.progress', 'Starting MCP server: {0}', [...remaining].map(r => r.definition.label).join(', ')), total: todo.length, increment: 1 });
98+
const doReport = () => report.report({ message: localize('mcp.autostart.progress', 'Waiting for MCP server "{0}" to start...', [...remaining].map(r => r.definition.label).join('", "')), total: todo.length, increment: 1 });
9699
doReport();
97100
return Promise.all(todo.map(async server => {
98101
await startServerAndWaitForLiveTools(server, { interaction }, cts.token);
@@ -101,7 +104,7 @@ export class McpService extends Disposable implements IMcpService {
101104
}));
102105
},
103106
btn => {
104-
if (btn === 0) {
107+
if (btn === 1) {
105108
this.commandService.executeCommand('workbench.action.openSettings', mcpAutoStartConfig);
106109
}
107110
cts.cancel();

0 commit comments

Comments
 (0)