We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dynatrace-oss/dynatrace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { requestOAuthToken } from './dynatrace-oauth-base';
import { OAuthTokenResponse } from './types';
/**
* Uses the provided oauth Client ID and Secret and requests a token via client-credentials flow
* @param clientId - OAuth Client ID for Dynatrace
* @param clientSecret - OAuth Client Secret for Dynatrace
* @param ssoBaseURL - SSO Base URL (e.g., sso.dynatrace.com)
* @param scopes - List of requested scopes
* @returns Response of the OAuth Endpoint (which, in the best case includes a token)
*/
export const requestTokenForClientCredentials = async (
clientId: string,
clientSecret: string,
ssoBaseURL: string,
scopes: string[],
): Promise<OAuthTokenResponse> => {
return requestOAuthToken(ssoBaseURL, {
grant_type: 'client_credentials',
client_id: clientId,
client_secret: clientSecret,
scope: scopes.join(' '),
});
};