mcpbeat

Dt Js Runtime

dynatrace/dt-js-runtime

Dynatrace server-side JS runtime — function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and the @dynatrace-sdk/* catalog.

40k tokens
context cost
the whole folder, loaded on every use
124
files
instructions only
0
copies elsewhere
how many repositories repackaged it
118
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Dynatrace/dynatrace-for-ai --skill dt-js-runtime

What comes with it

49 746 bytes besides the instruction
references/apis-and-modules.md
references/fetch.md
references/limits-and-restrictions.md
references/sdk.md
references/sdks/app-engine-registry/README.md
references/sdks/app-engine-registry/appEngineRegistryAppsClient.md
references/sdks/app-engine-registry/appEngineRegistrySchemaManifestClient.md
references/sdks/app-engine-registry/types.md
references/sdks/app-environment/README.md
references/sdks/app-environment/functions.md
references/sdks/app-environment/types.md
references/sdks/app-settings-v1/README.md
references/sdks/app-settings-v1/appSettingsObjectsClient.md
references/sdks/app-settings-v1/types.md
references/sdks/app-settings-v2/README.md
references/sdks/app-settings-v2/appSettingsObjectsClient.md
references/sdks/app-settings-v2/types.md
references/sdks/app-utils/README.md
references/sdks/automation-utils/README.md
references/sdks/automation-utils/constants.md
references/sdks/automation-utils/functions.md
references/sdks/automation-utils/types.md
references/sdks/automation/README.md
references/sdks/automation/actionExecutionsClient.md
references/sdks/automation/actionsSampleResultClient.md
references/sdks/automation/businessCalendarsClient.md
references/sdks/automation/eventTriggersClient.md
references/sdks/automation/executionsClient.md
references/sdks/automation/schedulesClient.md
references/sdks/automation/schedulingRulesClient.md
references/sdks/automation/settingsClient.md
references/sdks/automation/types.md
references/sdks/automation/versionClient.md
references/sdks/automation/webhookHandlersClient.md
references/sdks/automation/workflowsClient.md
references/sdks/bucket-management/README.md
references/sdks/bucket-management/bucketDefinitionsClient.md
references/sdks/bucket-management/types.md
references/sdks/classic-environment-v1/README.md
references/sdks/classic-environment-v1/cluster.md

The instruction itself

4 sections, as written by the author

Dynatrace JavaScript Runtime

The Dynatrace JS runtime is a server-side AppEngine sandbox that executes JavaScript/TypeScript.

Function contract

Every entry point must export a default async function:

export default async function () {
  // ...
  return result;
}

ES module syntax required. TypeScript accepted (type annotations, interfaces, generics). No other export shape is supported.

References

Start here, then load only the file you need.

| File | When to load |

|------|-------------|

| references/limits-and-restrictions.md | Timeout / memory / I/O quotas; what's forbidden (eval, WebSocket, sockets, filesystem) |

| references/apis-and-modules.md | Which Web APIs and Node.js compat modules are available (fetch, crypto, streams, buffer, …) |

| references/fetch.md | Calling internal /platform/... APIs or external URLs, credential vault, outbound allowlist |

| references/sdk.md | Any @dynatrace-sdk/* package — the index routes you to the right per-SDK file |

Running a function with dtctl

Use dtctl exec function to run JS runtime code without deploying an app.

# Run inline code
dtctl exec function --code 'export default async function() { return "hello" }'

# Run from file
dtctl exec function -f script.js

# Pass JSON input — accessed as event.payload inside the function
dtctl exec function -f script.js --payload '{"key":"value"}'

The function may accept an optional event parameter:

export default async function(event) {
  const { payload } = event;   // from --payload
  // event.environmentId also available
  return payload;
}

Load the dynatrace-control skill for authentication setup, context switching, and the full exec function reference.

How to use it

Copy the folder

Take dynatrace/dt-js-runtime from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.