Skip to main content
Glama
oauth-protected-resource.ts683 B
import express from 'express'; import { getConfig } from '../../../config.js'; import { serverName } from '../../../server.js'; /** * OAuth 2.0 Protected Resource Metadata * * Returns metadata about the protected resource and its * authorization servers. Client discovers this URL from * WWW-Authenticate header in 401 response. */ export function oauthProtectedResource(app: express.Application): void { app.get('/.well-known/oauth-protected-resource', (_req, res) => { const issuer = getConfig().oauth.issuer; res.json({ resource: `${issuer}/${serverName}`, authorization_servers: [issuer], bearer_methods_supported: ['header'], }); }); }

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