Connect SAP
The apps reach SAP through the MCP server of the Skybuffer AI Add-on, connected in LibreChat. The chat uses the same connection, so one setup serves both.
One MCP server per SAP system
Section titled “One MCP server per SAP system”Register the MCP server of each SAP system in librechat.yaml. Do not add it in the browser: a server added there is
visible only to the user who added it. The configuration, with the timeouts that SAP needs, is in step 3 of
Skybuffer Apps in LibreChat.
Each user’s own SAP user
Section titled “Each user’s own SAP user”Connect the MCP server with OAuth 2.0. Every call, from an app or from the chat, then runs under the user’s own SAP user, and SAP’s authorizations decide what the user may read and change.
Each user connects once: in a chat, choose the SAP server, then Connect, sign in to SAP and press Allow. Until then, the apps report that SAP is not connected. LibreChat keeps and refreshes the tokens. See OAuth configuration for the SAP MCP server.
A technical user, one SAP user for everybody, is for a first test only: every user then reads and changes SAP as that user, and the Launchpad shows that user’s apps.
The server names the apps look for
Section titled “The server names the apps look for”Each app names the SAP systems it needs in its settings (mcp.servers in app/app.env.js) and lists the tools it calls
on each. LibreChat shows the name next to each installed app, as its MCP connection. The delivered packages use these
names, which come from the Skybuffer demo systems the apps were built on:
| Server name in the package | Apps |
|---|---|
SAP ERD |
All apps except the four planning apps |
SAP SH2 S4HANA |
Demand History Desk, Demand Planning Grid, Demand Review Cockpit, Raw Material Desk |
The name does not limit where an app runs: every app runs on SAP ECC 6.0 and on SAP S/4HANA, because the Skybuffer AI Add-on brings the tools the apps use for both systems. LibreChat connects each name to one of its MCP servers:
- Auto: the server registered under that name, as the HOW-TO shows for the server
sap-erdwith the titleSAP ERD. - A server of your choice for one app: in Settings → Apps, open Models and connections under the app and choose the server under Connections.
- One server for all apps: turn on One MCP server for all apps in Settings → Apps, for example when you have one SAP system.
You can also rename the server in the package before you upload it:
python3 source/build/make_package.py server "SAP ERD" "<your server name>"An app that works with two systems lists both, each with its own tools, and each call goes to the server that lists the tool. The MCP server of a non-SAP system can be added to an app the same way.
The tools the apps call
Section titled “The tools the apps call”The tools come with the Skybuffer AI Add-on and have to be active on the MCP server of the SAP system. In LibreChat, Settings → Apps → Models and connections → Show the tools lists the tools of each app. Apps whose tools can change SAP are marked “changes data”; each such change runs as a test first or asks the user to confirm.
The chat uses the same server with all of its tools, not only those of the apps. See Tools Beyond the Apps.