Skip to content

App Settings

Every app reads its settings from app/app.env.js in its package when it opens. The defaults in the delivered packages come from the Skybuffer demo system; set them for your organization before you upload a package. The page of each app lists its own business defaults.

Section Keys What they set
app id, version, name, lineOfBusiness, lineOfBusinessText, description, tagline, languages Who the app is. Keep id. The name and description show in the app’s header.
mcp.servers id, name, system, description, tools The SAP systems the app calls and the tools it calls on each. name is the server name LibreChat connects; see Connect SAP.
ai provider, model, endpoint, images, reader, label The AI model for the app’s AI features; see Choose the AI Models. Leave apiKey empty.
defaults Different for each app The business defaults, such as the company code, the plant, the delivery block, thresholds, and the app’s Launchpad ID (launchpadAppId).
support contact Whom users should contact when SAP cannot be reached, for example “your SAP support team”.
links App ID and address The addresses of related apps, by their Launchpad app ID. In LibreChat an app’s address ends in /apps/<app>. The packages ship them empty.

A shortened example:

window.SKYBUFFER_APP_ENV = {
"app": { "id": "ap-cockpit", "name": "AP Cockpit", "lineOfBusiness": "FI-AP" },
"mcp": {
"servers": [
{ "id": "sap", "name": "SAP ERD", "system": "SAP ERD",
"tools": ["get_po_release_worklist", "get_invoice_inbox", "simulate_payment_run"] }
]
},
"ai": { "provider": "host", "label": "AI assistant" },
"defaults": { "companyCode": "1000", "plant": "1000", "launchpadAppId": "AP_COCKPIT" },
"support": { "contact": "your SAP support team" },
"links": { "AP_INVOICE_DISPUTE_DESK": "https://librechat.example.com/apps/invoice-dispute-desk" }
};
  1. Unpack the package and change app/app.env.js.
  2. After a change to mcp or ai, update the capabilities: python3 source/build/make_package.py caps.
  3. Check the package against its settings: python3 source/build/make_package.py check.
  4. Build the ZIP with python3 source/build/make_package.py zip and upload it in Settings → Apps.

The build tools need Python 3.8 or later, without other packages.

  • app.env.js is loaded by the browser. Never put passwords or keys in it.
  • Where a launchpad provider reads the same setting from a parameter variable in SAP, keep both equal, for example the delivery block of the Sales Order Release Desk. See Launchpad and Authorizations.
  • Keep a note of what you changed, so that you can apply it again to the next version of the app.