Skip to main content
Glama
firstorderai

Authenticator App MCP Server

by firstorderai
cli.ts814 B
#!/usr/bin/env node import { config } from 'dotenv'; import { resolve } from 'path'; import { getServerConfig } from './config.js'; import { AuthenticatorMcpServer } from './mcp.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; // Load .env from the current working directory config({ path: resolve(process.cwd(), '.env') }); export async function startServer(): Promise<void> { const config = getServerConfig(); const server = new AuthenticatorMcpServer(config.accessToken); const transport = new StdioServerTransport(); await server.connect(transport); } // If we're being executed directly (not imported), start the server if (process.argv[1]) { startServer().catch((error) => { console.error('Failed to start server:', error); process.exit(1); }); }

Latest Blog Posts

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/firstorderai/authenticator_mcp'

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