evaluateComplianceNeed
Determine if your healthcare application requires HIPAA compliance by analyzing data handling practices and identifying protected health information (PHI) usage.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes |
Implementation Reference
- server.ts:34-48 (registration)Full registration of the 'evaluateComplianceNeed' MCP tool, including description, empty input schema, and inline handler that returns HIPAA compliance decision text from the loaded hipaaData.server.tool( 'evaluateComplianceNeed', { description: 'Provides a decision flowchart and examples to determine if an application needs to be HIPAA compliant. Use this before starting any development.', schema: z.object({}), }, async () => { return { content: [{ type: 'text', text: hipaaData['do_i_need_to_be_hipaa_compliant?'] }] }; } );
- server.ts:8-18 (helper)Loads the hipaa-content.json file into hipaaData object, which provides the content returned by the evaluateComplianceNeed tool handler.const knowledgeBasePath = path.join(process.cwd(), 'hipaa-content.json'); let hipaaData; try { hipaaData = JSON.parse(fs.readFileSync(knowledgeBasePath, 'utf-8')); console.log('✅ HIPAA knowledge base loaded successfully'); } catch (error) { console.error(`FATAL ERROR: Could not load knowledge base from ${knowledgeBasePath}.`); console.error('Please ensure the hipaa-content.json file exists in the same directory.'); console.error('Error details:', error); process.exit(1); // Exit if the core data is missing }
- server.ts:36-39 (schema)Schema definition for the tool: empty object (no input parameters).{ description: 'Provides a decision flowchart and examples to determine if an application needs to be HIPAA compliant. Use this before starting any development.', schema: z.object({}), },
- server.ts:40-47 (handler)Handler function: returns a text content block with the key 'do_i_need_to_be_hipaa_compliant?' from hipaaData.async () => { return { content: [{ type: 'text', text: hipaaData['do_i_need_to_be_hipaa_compliant?'] }] }; }