mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
First pass at disabling tools that aren't useful for this MCP flow (#263298)
* First pass at disabling tools that aren't useful for this MCP flow And enable the multiplexer server * revert that * revert that * revert that * disable a couple more * add a start to improve model behavior & rewrite prompt file
This commit is contained in:
committed by
GitHub
parent
ced2626aba
commit
7a46ac4d80
@@ -11,38 +11,39 @@ import { z } from 'zod';
|
||||
* Task Tools
|
||||
*/
|
||||
export function applyTaskTools(server: McpServer, app: Application) {
|
||||
server.tool(
|
||||
'vscode_automation_task_assert_tasks',
|
||||
'Assert that specific tasks exist with given properties',
|
||||
{
|
||||
filter: z.string().describe('Filter string for tasks'),
|
||||
expected: z.array(z.object({
|
||||
label: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
command: z.string().optional(),
|
||||
identifier: z.string().optional(),
|
||||
group: z.string().optional(),
|
||||
isBackground: z.boolean().optional(),
|
||||
promptOnClose: z.boolean().optional(),
|
||||
icon: z.object({
|
||||
id: z.string().optional(),
|
||||
color: z.string().optional()
|
||||
}).optional(),
|
||||
hide: z.boolean().optional()
|
||||
})).describe('Array of expected task properties'),
|
||||
type: z.enum(['run', 'configure']).describe('Type of task operation')
|
||||
},
|
||||
async (args) => {
|
||||
const { filter, expected, type } = args;
|
||||
await app.workbench.task.assertTasks(filter, expected, type);
|
||||
return {
|
||||
content: [{
|
||||
type: 'text' as const,
|
||||
text: `Asserted ${expected.length} tasks for ${type} with filter: "${filter}"`
|
||||
}]
|
||||
};
|
||||
}
|
||||
);
|
||||
// Seems too niche
|
||||
// server.tool(
|
||||
// 'vscode_automation_task_assert_tasks',
|
||||
// 'Assert that specific tasks exist with given properties',
|
||||
// {
|
||||
// filter: z.string().describe('Filter string for tasks'),
|
||||
// expected: z.array(z.object({
|
||||
// label: z.string().optional(),
|
||||
// type: z.string().optional(),
|
||||
// command: z.string().optional(),
|
||||
// identifier: z.string().optional(),
|
||||
// group: z.string().optional(),
|
||||
// isBackground: z.boolean().optional(),
|
||||
// promptOnClose: z.boolean().optional(),
|
||||
// icon: z.object({
|
||||
// id: z.string().optional(),
|
||||
// color: z.string().optional()
|
||||
// }).optional(),
|
||||
// hide: z.boolean().optional()
|
||||
// })).describe('Array of expected task properties'),
|
||||
// type: z.enum(['run', 'configure']).describe('Type of task operation')
|
||||
// },
|
||||
// async (args) => {
|
||||
// const { filter, expected, type } = args;
|
||||
// await app.workbench.task.assertTasks(filter, expected, type);
|
||||
// return {
|
||||
// content: [{
|
||||
// type: 'text' as const,
|
||||
// text: `Asserted ${expected.length} tasks for ${type} with filter: "${filter}"`
|
||||
// }]
|
||||
// };
|
||||
// }
|
||||
// );
|
||||
|
||||
server.tool(
|
||||
'vscode_automation_task_configure',
|
||||
|
||||
Reference in New Issue
Block a user