(options: {
readOnly: boolean;
localOnly: boolean;
experimentalTool: string[] | undefined;
})
| 59 | } |
| 60 | |
| 61 | async run(options: { |
| 62 | readOnly: boolean; |
| 63 | localOnly: boolean; |
| 64 | experimentalTool: string[] | undefined; |
| 65 | }): Promise<void> { |
| 66 | if (isTTY()) { |
| 67 | this.context.logger.info(INTERACTIVE_MESSAGE); |
| 68 | |
| 69 | return; |
| 70 | } |
| 71 | |
| 72 | const server = await createMcpServer( |
| 73 | { |
| 74 | workspace: this.context.workspace, |
| 75 | readOnly: options.readOnly, |
| 76 | localOnly: options.localOnly, |
| 77 | experimentalTools: options.experimentalTool, |
| 78 | }, |
| 79 | this.context.logger, |
| 80 | ); |
| 81 | const transport = new StdioServerTransport(); |
| 82 | await server.connect(transport); |
| 83 | } |
| 84 | } |
nothing calls this directly
no test coverage detected