Skip to main content
Glama

filesystem-mcp

by sylphxltd
error-utils.ts619 B
export function formatFileProcessingError( error: unknown, resolvedPath: string, filePath: string, // Removed projectRoot parameter entirely ): string { if (typeof error !== 'object' || error === null) { return `Failed to process file ${filePath}: ${String(error)}`; } const err = error as { code?: string; message?: string }; if (err.code === 'ENOENT') { return `File not found at resolved path: ${resolvedPath}`; } if (err.code === 'EACCES') { return `Permission denied for file: ${filePath}`; } return `Failed to process file ${filePath}: ${err.message ?? 'Unknown error'}`; }

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/sylphxltd/filesystem-mcp'

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