MCPcopy Index your code
hub / github.com/codeaashu/claude-code / doctorHandler

Function doctorHandler

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

Source from the content-addressed store, hash-verified

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

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