We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/eugeneyvt/logseq-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
auth-validation.ts•382 B
/**
* Validate API token format
*/
export function validateApiToken(token: string): boolean {
// Basic validation - token should be alphanumeric with dots, underscores, hyphens
const tokenRegex = /^[a-zA-Z0-9._-]+$/;
if (!tokenRegex.test(token)) {
return false;
}
// Token should be reasonably long
if (token.length < 8) {
return false;
}
return true;
}