Skip to main content
Glama
jackalterman

Windows Diagnostics MCP Server

by jackalterman

find_orphaned_entries

Identify and locate registry entries that reference files no longer present on the system to optimize Windows diagnostics and system stability.

Instructions

Find orphaned registry entries pointing to non-existent files

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that runs a PowerShell script to find orphaned registry entries and returns formatted markdown results.
      export async function findOrphanedEntries() {
        const result = await runPowerShellScript(REGISTRY_SCRIPT, { FindOrphaned: true, JsonOutput: true }) as AllTypes.RegistryDiagnosticResults;
        return {
          content: [
            {
              type: 'text',
              text: `# Orphaned Registry Entries
    
    ${result.OrphanedEntries && result.OrphanedEntries.length > 0 ? result.OrphanedEntries.map(o => `- **Path**: ${o.Path}
      **Type**: ${o.Type}`).join('\n\n') : 'No orphaned entries found.'}`,
            },
          ],
        };
      }
  • Tool schema definition in the ListTools response, including name, description, and empty input schema (no parameters required).
    {
      name: 'find_orphaned_entries',
      description: 'Find orphaned registry entries pointing to non-existent files',
      inputSchema: {
        type: 'object',
        properties: {},
      }
    },
  • src/index.ts:555-556 (registration)
    Dispatch/registration of the tool handler in the CallToolRequestSchema switch statement, calling registry.findOrphanedEntries().
    case 'find_orphaned_entries':
      return await registry.findOrphanedEntries();

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jackalterman/windows-diagnostic-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server