Skip to main content
Glama
oauth-authorization-server.ts1.01 kB
import express from 'express'; import { getConfig } from '../../../config.js'; /** * OAuth 2.0 Authorization Server Metadata * * Returns metadata about the authorization server including * available endpoints, supported flows, and capabilities. */ export function oauthAuthorizationServer(app: express.Application): void { app.get('/.well-known/oauth-authorization-server', (_req, res) => { const origin = getConfig().oauth.issuer; res.json({ issuer: origin, authorization_endpoint: `${origin}/oauth/authorize`, token_endpoint: `${origin}/oauth/token`, registration_endpoint: `${origin}/oauth/register`, response_types_supported: ['code'], grant_types_supported: ['authorization_code', 'refresh_token', 'client_credentials'], code_challenge_methods_supported: ['S256'], scopes_supported: [], token_endpoint_auth_methods_supported: ['client_secret_basic', 'client_secret_post'], subject_types_supported: ['public'], }); }); }

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/datalabs89/tableau-mcp'

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