Skip to main content
Glama
anyrxo
by anyrxo

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • Input schema for 'check_mount' tool: an empty object (no input parameters).
    inputSchema: { type: 'object', properties: {}, },

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/anyrxo/proton-drive-mcp'

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