Skip to main content
Glama

Task Trellis MCP

fileExists.ts383 B
import * as fs from "fs/promises"; import * as path from "path"; /** * Helper function to check if file exists */ export async function fileExists( projectRoot: string, relativePath: string, ): Promise<boolean> { try { const filePath = path.join(projectRoot, ".trellis", relativePath); await fs.access(filePath); return true; } 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