MCPcopy
hub / github.com/claude-code-best/claude-code / doctorHandler

Function doctorHandler

src/cli/handlers/util.tsx:69–89  ·  view source on GitHub ↗
(root: Root)

Source from the content-addressed store, hash-verified

67}
68
69export async function doctorHandler(root: Root): Promise<void> {
70 logEvent('tengu_doctor_command', {});
71
72 await new Promise<void>(resolve => {
73 root.render(
74 <AppStateProvider>
75 <KeybindingSetup>
76 <MCPConnectionManager dynamicMcpConfig={undefined} isStrictMcpConfig={false}>
77 <DoctorWithPlugins
78 onDone={() => {
79 void resolve();
80 }}
81 />
82 </MCPConnectionManager>
83 </KeybindingSetup>
84 </AppStateProvider>,
85 );
86 });
87 root.unmount();
88 process.exit(0);
89}
90
91// install handler
92export async function installHandler(target: string | undefined, options: { force?: boolean }): Promise<void> {

Callers 1

runFunction · 0.85

Calls 4

logEventFunction · 0.85
unmountMethod · 0.80
resolveFunction · 0.50
renderMethod · 0.45

Tested by

no test coverage detected