Skip to main content
Glama

Task Trellis MCP

readObjectFile.ts540 B
import * as fs from "fs/promises"; import * as path from "path"; import { parse } from "yaml"; /** * Reads and parses object file */ export async function readObjectFile( projectRoot: string, relativePath: string, ) { const filePath = path.join(projectRoot, ".trellis", relativePath); const content = await fs.readFile(filePath, "utf-8"); const [, frontmatter, ...bodyParts] = content.split("---\n"); return { yaml: parse(frontmatter), body: bodyParts.join("---\n").trim(), raw: content, exists: true, }; }

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