get_registry_health
Assess Windows registry health to identify issues affecting system stability and performance. Integrates with the Windows Diagnostics MCP Server for detailed system analysis.
Instructions
Get an overall registry health assessment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/registry.ts:102-119 (handler)The handler function that runs a PowerShell script to get registry health assessment and formats the results into MCP content.export async function getRegistryHealth() { const result = await runPowerShellScript(REGISTRY_SCRIPT, { JsonOutput: true }) as AllTypes.RegistryDiagnosticResults; return { content: [ { type: 'text', text: `# Registry Health Assessment - **Score**: ${result.RegistryHealth?.Score}/100 - **Rating**: ${result.RegistryHealth?.Rating} - **Issues Found**: ${result.RegistryHealth?.IssuesFound} ## Recommendations ${result.RegistryHealth && result.RegistryHealth.Recommendations && result.RegistryHealth.Recommendations.length > 0 ? result.RegistryHealth.Recommendations.map(r => `- ${r}`).join('\n\n') : 'No recommendations.'}`, }, ], }; }
- src/index.ts:162-167 (schema)Input schema definition for the tool, specifying no required parameters.name: 'get_registry_health', description: 'Get an overall registry health assessment', inputSchema: { type: 'object', properties: {}, }
- src/index.ts:557-558 (registration)Tool dispatch registration in the CallToolRequestSchema handler, calling the registry.getRegistryHealth() function.case 'get_registry_health': return await registry.getRegistryHealth();