We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gergelyszerovay/mcp-id-date'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
writeCounterFile.ts•406 B
import { promises as fs } from 'fs';
/**
* Writes the counter value to a file
*
* @param counterFilePath - Path to the counter file
* @param value - The counter value to write
* @returns Promise that resolves when the write is complete
*/
export async function writeCounterFile(counterFilePath: string, value: number): Promise<void> {
await fs.writeFile(counterFilePath, String(value), 'utf8');
}