Skip to main content
Glama
auth-cli.js942 B
#!/usr/bin/env node /** * CLI tool to manually trigger authentication. * Run this first to log in and save session. * Usage: npm run auth */ import { getToken, getTokenExpiry } from './auth.js'; async function main() { console.log('Starting D2L authentication...'); console.log('A browser window will open. Please log in to Brightspace.'); console.log(''); try { const token = await getToken(); const expiry = new Date(getTokenExpiry()); console.log(''); console.log('Authentication successful!'); console.log(`Token expires at: ${expiry.toLocaleString()}`); console.log(''); console.log('Your session has been saved. The MCP server will use it automatically.'); console.log('Token (first 50 chars):', token.substring(0, 50) + '...'); } catch (error) { console.error('Authentication failed:', error); process.exit(1); } } main();

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/General-Mudkip/d2l-mcp-server'

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