mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Update MCP schema to be more conscise (#268499)
* Update MCP schema to be more conscise * Remove debug string
This commit is contained in:
@@ -37,12 +37,12 @@ export function applySettingsTools(server: McpServer, appService: ApplicationSer
|
||||
'vscode_automation_settings_add_user_settings',
|
||||
'Add multiple user settings at once',
|
||||
{
|
||||
settings: z.array(z.tuple([z.string(), z.string()])).describe('Array of [key, value] setting pairs')
|
||||
settings: z.array(z.array(z.string()).length(2)).describe('Array of [key, value] setting pairs')
|
||||
},
|
||||
async (args) => {
|
||||
const { settings } = args;
|
||||
const app = await appService.getOrCreateApplication();
|
||||
await app.workbench.settingsEditor.addUserSettings(settings);
|
||||
await app.workbench.settingsEditor.addUserSettings(settings as [string, string][]);
|
||||
return {
|
||||
content: [{
|
||||
type: 'text' as const,
|
||||
|
||||
Reference in New Issue
Block a user