Skip to main content
Glama

MCP TODO Checklist Server

by hevener10
storage.ts1.03 kB
import fs from 'fs/promises'; import path from 'path'; import { MergeRequestChecklist } from '../types/MergeRequestChecklist'; export class ChecklistStorage { private storagePath: string; constructor(basePath: string) { this.storagePath = path.join(basePath, 'checklists'); } async initialize(): Promise<void> { await fs.mkdir(this.storagePath, { recursive: true }); } async saveChecklist(checklist: MergeRequestChecklist): Promise<void> { const fileName = `${checklist.projectId}_${checklist.mrId}.json`; const filePath = path.join(this.storagePath, fileName); await fs.writeFile(filePath, JSON.stringify(checklist, null, 2)); } async getChecklist(projectId: string, mrId: string): Promise<MergeRequestChecklist | null> { try { const fileName = `${projectId}_${mrId}.json`; const filePath = path.join(this.storagePath, fileName); const content = await fs.readFile(filePath, 'utf-8'); return JSON.parse(content); } catch (error) { return null; } } }

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/hevener10/mcp-todo-checklist'

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