Skip to main content
Glama

Task Trellis MCP

folderExists.ts444 B
import * as fs from "fs/promises"; import * as path from "path"; /** * Helper function to check if folder exists within .trellis directory */ export async function folderExists( projectRoot: string, relativePath: string, ): Promise<boolean> { try { const folderPath = path.join(projectRoot, ".trellis", relativePath); const stats = await fs.stat(folderPath); return stats.isDirectory(); } catch { return false; } }

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/langadventurellc/task-trellis-mcp'

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