We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/peacockery-studio/outlook-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
/**
* Authentication module for Outlook MCP server
*/
import tokenManager from "./token-manager";
import { authTools } from "./tools";
/**
* Ensures the user is authenticated and returns an access token
*/
export async function ensureAuthenticated(forceNew = false): Promise<string> {
if (forceNew) {
throw new Error("Authentication required");
}
const accessToken = await tokenManager.getAccessToken();
if (!accessToken) {
throw new Error("Authentication required");
}
return accessToken;
}
export { tokenManager, authTools };
export default {
tokenManager,
authTools,
ensureAuthenticated,
};