getSecurityRuleSafeguards
Identify required administrative, physical, and technical safeguards under HIPAA Security Rule to protect electronic protected health information (ePHI) in healthcare applications.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes |
Implementation Reference
- server.ts:100-107 (handler)The handler function for the 'getSecurityRuleSafeguards' tool, which returns the content of the HIPAA Security Rule safeguards from the loaded knowledge base JSON.async () => { return { content: [{ type: 'text', text: hipaaData['hipaa_security_rule'] }] }; }
- server.ts:96-99 (schema)The input schema and description for the 'getSecurityRuleSafeguards' tool (no input parameters required).{ description: 'Provides a developer-focused guide to the Administrative, Physical, and Technical Safeguards of the HIPAA Security Rule.', schema: z.object({}), },
- server.ts:94-108 (registration)Registers the 'getSecurityRuleSafeguards' tool on the MCP server instance.server.tool( 'getSecurityRuleSafeguards', { description: 'Provides a developer-focused guide to the Administrative, Physical, and Technical Safeguards of the HIPAA Security Rule.', schema: z.object({}), }, async () => { return { content: [{ type: 'text', text: hipaaData['hipaa_security_rule'] }] }; } );
- server.ts:8-18 (helper)Loads the hipaa-content.json knowledge base file, which provides the 'hipaa_security_rule' content used by the 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 }