mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-25 12:16:07 +00:00
* 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
17 lines
757 B
TypeScript
17 lines
757 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
import { getServer } from './multiplex';
|
|
|
|
const transport: StdioServerTransport = new StdioServerTransport();
|
|
(async () => {
|
|
const server = await getServer();
|
|
await server.connect(transport);
|
|
})().catch(err => {
|
|
transport.close();
|
|
console.error('Error occurred while connecting to server:', err);
|
|
process.exit(1);
|
|
});
|