Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/mcp/src/automationTools/explorer.ts
3520 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
7
import { ApplicationService } from '../application';
8
9
/**
10
* Explorer and File Management Tools
11
*/
12
export function applyExplorerTools(server: McpServer, appService: ApplicationService): RegisteredTool[] {
13
const tools: RegisteredTool[] = [];
14
15
// Playwright can probably figure this out
16
// server.tool(
17
// 'vscode_automation_explorer_open',
18
// 'Open the file explorer viewlet',
19
// async () => {
20
// await app.workbench.explorer.openExplorerView();
21
// return {
22
// content: [{
23
// type: 'text' as const,
24
// text: 'Opened file explorer'
25
// }]
26
// };
27
// }
28
// );
29
30
return tools;
31
}
32
33