Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for the stateless streamable-HTTP entrypoint (dist/http.js). It listens on this port with a /healthz endpoint and has no auth of its own.8080
KLARNA_ENVNoKlarna environment: `playground` or `production`. Point it at `production` only after you have watched the tools behave on test orders.playground
KLARNA_REGIONNoKlarna region: `eu`, `na` or `oc`.eu
KLARNA_API_KEYNoAlternative to KLARNA_USERNAME and KLARNA_PASSWORD: a `klarna_<live|test>_api_...` key, sent as `Authorization: Basic <API key>` as Klarna documents it.
KLARNA_PASSWORDNoAPI credential password (the API key or shared secret). Used together with KLARNA_USERNAME.
KLARNA_USERNAMENoAPI credential username (a UUID shown next to the API key when you create the credential in the Klarna Merchant Portal). Used together with KLARNA_PASSWORD.
KLARNA_ENABLE_WRITESNoSet to `true` (exactly `true`) to register the write tools (capture, refund, extend authorization, cancel, release remaining authorization). The server is read-only by default and the write tools do not exist unless this is set.false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources