Update MCP schema to be more conscise (#268499)

* Update MCP schema to be more conscise

* Remove debug string
This commit is contained in:
Logan Ramos
2025-09-26 12:52:18 -04:00
committed by GitHub
parent 5b60de5262
commit 02a22c8d39
3 changed files with 7 additions and 7 deletions

View File

@@ -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,