mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-03 15:29:23 +00:00
Update MCP schema to be more conscise (#268499)
* Update MCP schema to be more conscise * Remove debug string
This commit is contained in:
8
test/mcp/package-lock.json
generated
8
test/mcp/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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