Skip to main content
Glama

Dropbox MCP Server

generate-auth-url.ts810 B
import { config } from 'dotenv'; import { fileURLToPath } from 'url'; import * as path from 'path'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); config({ path: path.join(__dirname, '..', '.env') }); console.log('Environment variables:', { DROPBOX_APP_KEY: process.env.DROPBOX_APP_KEY, DROPBOX_APP_SECRET: process.env.DROPBOX_APP_SECRET, DROPBOX_REDIRECT_URI: process.env.DROPBOX_REDIRECT_URI }); import * as auth from './auth.js'; export function generateAuthUrl(): string { const { url, codeVerifier } = auth.generateAuthUrl(); console.log('\nAuthorization URL:', url); console.log('\nPlease visit this URL to authorize the application.'); // Store code verifier for later use in token exchange process.env.TEMP_CODE_VERIFIER = codeVerifier; return url; }

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/Albiemark/dbx-mcp-server'

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