We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mattyatea/git-conflict-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
id.ts•351 B
import { createHash } from "crypto";
/**
* Generate a consistent ID for a file path.
* This ID should be used throughout the application to refer to this file.
* It is deterministic based on the file path.
*/
export function generateId(filePath: string): string {
return createHash("sha256").update(filePath).digest("hex").substring(0, 8);
}