We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tableau/tableau-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
getSiteLuidFromAccessToken.ts•475 B
/**
* Extracts the site LUID from a Tableau access token.
* The access token format is: part0|part1|siteLuid|...
*
* @param accessToken - The Tableau access token
* @returns The site LUID, or empty string if it cannot be extracted
*/
export function getSiteLuidFromAccessToken(accessToken: string | undefined): string {
if (!accessToken) {
return '';
}
const parts = accessToken.split('|');
if (parts.length < 3) {
return '';
}
return parts[2];
}