check_mount
Verify Proton Drive is mounted and accessible to ensure file operations can be performed using the Proton Drive MCP server.
Instructions
Check if Proton Drive is mounted and accessible
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:228-258 (handler)The handler function for the 'check_mount' tool. It checks if the Proton Drive directory exists using existsSync, then attempts to stat it for accessibility and directory status. Returns JSON info about mount status, path, platform, accessibility, etc.case 'check_mount': { const exists = existsSync(PROTON_DRIVE_PATH); let info: any = { mounted: exists, path: PROTON_DRIVE_PATH, platform: platform(), }; if (exists) { try { const stats = await stat(PROTON_DRIVE_PATH); info.accessible = true; info.isDirectory = stats.isDirectory(); } catch (e) { info.accessible = false; info.error = 'Cannot access Proton Drive directory'; } } else { info.accessible = false; info.suggestion = 'Please ensure Proton Drive is installed and running'; } return { content: [ { type: 'text', text: JSON.stringify(info, null, 2), }, ], }; }
- src/index.ts:124-131 (registration)Registration of the 'check_mount' tool in the ListTools handler, including its name, description, and empty input schema (no parameters required).{ name: 'check_mount', description: 'Check if Proton Drive is mounted and accessible', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:127-130 (schema)Input schema for 'check_mount' tool: an empty object (no input parameters).inputSchema: { type: 'object', properties: {}, },