MCPcopy Index your code
hub / github.com/angular/angular-cli / run

Method run

packages/angular/cli/src/commands/mcp/cli.ts:61–83  ·  view source on GitHub ↗
(options: {
    readOnly: boolean;
    localOnly: boolean;
    experimentalTool: string[] | undefined;
  })

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

isTTYFunction · 0.90
createMcpServerFunction · 0.90
infoMethod · 0.65

Tested by

no test coverage detected