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

@@ -9,7 +9,7 @@
"version": "0.1.0",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.17.3",
"@modelcontextprotocol/sdk": "^1.18.2",
"@playwright/mcp": "^0.0.37",
"cors": "^2.8.5",
"express": "^5.1.0",
@@ -27,9 +27,9 @@
}
},
"node_modules/@modelcontextprotocol/sdk": {
"version": "1.17.3",
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.17.3.tgz",
"integrity": "sha512-JPwUKWSsbzx+DLFznf/QZ32Qa+ptfbUlHhRLrBQBAFu9iI1iYvizM4p+zhhRDceSsPutXp4z+R/HPVphlIiclg==",
"version": "1.18.2",
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.18.2.tgz",
"integrity": "sha512-beedclIvFcCnPrYgHsylqiYJVJ/CI47Vyc4tY8no1/Li/O8U4BTlJfy6ZwxkYwx+Mx10nrgwSVrA7VBbhh4slg==",
"license": "MIT",
"dependencies": {
"ajv": "^6.12.6",

View File

@@ -12,7 +12,7 @@
"start-stdio": "npm run -s compile && node ./out/stdio.js"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.17.3",
"@modelcontextprotocol/sdk": "^1.18.2",
"@playwright/mcp": "^0.0.37",
"cors": "^2.8.5",
"express": "^5.1.0",

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,