Skip to main content
Glama

Dynatrace MCP Server

Official
call-app-function.ts701 B
import { HttpClient } from '@dynatrace-sdk/http-client'; /** Helper function to call an app-function via platform-api */ export const callAppFunction = async (dtClient: HttpClient, appId: string, functionName: string, payload: any) => { console.error(`Sending payload ${JSON.stringify(payload)}`); const response = await dtClient.send({ url: `/platform/app-engine/app-functions/v1/apps/${appId}/api/${functionName}`, method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, body: payload, statusValidator: (status: number) => { return [200].includes(status); }, }); return await response.body('json'); };

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/dynatrace-oss/dynatrace-mcp'

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