verify-wire-encryption
Check if your Firebird database connection uses wire encryption to protect data in transit. This tool verifies encryption status for secure communication.
Instructions
Verifies if the current database connection is using wire encryption (requires native driver).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/database.ts:660-691 (handler)The handler function for 'verify-wire-encryption' checks environment variables (USE_NATIVE_DRIVER, WIRE_CRYPT) to determine if the database connection uses wire encryption and returns status information with recommendations.handler: async () => { logger.info("Verifying wire encryption status"); try { // Check if native driver is available const driverInfo = { hasNativeDriver: process.env.USE_NATIVE_DRIVER === 'true', wireEncryptionEnabled: process.env.WIRE_CRYPT === 'Enabled', driverType: process.env.USE_NATIVE_DRIVER === 'true' ? 'native' : 'pure-js', recommendation: process.env.USE_NATIVE_DRIVER !== 'true' ? 'Wire encryption requires the native driver. Set USE_NATIVE_DRIVER=true and install node-firebird-driver-native.' : 'Native driver is configured. Ensure WIRE_CRYPT=Enabled for encryption.' }; return { content: [{ type: "text", text: formatForClaude(driverInfo) }] }; } catch (error) { const errorResponse = wrapError(error); logger.error(`Error verifying wire encryption: ${errorResponse.error}`); return { content: [{ type: "text", text: formatForClaude(errorResponse) }] }; } }
- src/tools/database.ts:117-117 (schema)Zod input schema for the verify-wire-encryption tool, which takes no arguments.export const VerifyWireEncryptionArgsSchema = z.object({});
- src/tools/database.ts:655-692 (registration)Registration of the 'verify-wire-encryption' tool within the setupDatabaseTools function, adding it to the tools Map.tools.set("verify-wire-encryption", { name: "verify-wire-encryption", title: "Verify Wire Encryption", description: "Verifies if the current database connection is using wire encryption (requires native driver).", inputSchema: VerifyWireEncryptionArgsSchema, handler: async () => { logger.info("Verifying wire encryption status"); try { // Check if native driver is available const driverInfo = { hasNativeDriver: process.env.USE_NATIVE_DRIVER === 'true', wireEncryptionEnabled: process.env.WIRE_CRYPT === 'Enabled', driverType: process.env.USE_NATIVE_DRIVER === 'true' ? 'native' : 'pure-js', recommendation: process.env.USE_NATIVE_DRIVER !== 'true' ? 'Wire encryption requires the native driver. Set USE_NATIVE_DRIVER=true and install node-firebird-driver-native.' : 'Native driver is configured. Ensure WIRE_CRYPT=Enabled for encryption.' }; return { content: [{ type: "text", text: formatForClaude(driverInfo) }] }; } catch (error) { const errorResponse = wrapError(error); logger.error(`Error verifying wire encryption: ${errorResponse.error}`); return { content: [{ type: "text", text: formatForClaude(errorResponse) }] }; } } });