GetBehaviorDefinition
Retrieve RAP Behavior Definition (BDEF) source code (requires ~NW 7.54 / S/4HANA)
Read ABAP source out of a SAP system into the conversation — programs, classes, interfaces, includes, function modules, CDS views and RAP artefacts — along with table definitions and a capped read of their contents.
LABSCO SUMMARY
Every tool starts with Get or Search — nothing activates, transports or writes — so a wrong call costs a read against the system and nothing else. The split of the tool set follows how ABAP is actually stored: a function module is retrievable separately from its group, an include separately from the program that uses it, which is what lets a model assemble the full picture from parts. Only one tool returns business data rather than code, and it caps rows rather than streaming them.
A read-only client for SAP's ABAP Development Tools services, retrieving source and dictionary objects from one system and client over its ADT endpoints.
Node and four values for the system you are pointing at: SAP_URL, SAP_USERNAME, SAP_PASSWORD and SAP_CLIENT, with SAP_LANGUAGE optional. Two things on the SAP side decide whether it answers at all: the /sap/bc/adt service has to be active in SICF, and the user needs the authorizations for ADT. A system behind a self-signed certificate needs TLS_REJECT_UNAUTHORIZED set. Behaviour and service definitions need roughly NetWeaver 7.54 or S/4HANA; on older systems those objects do not exist to fetch. MIT.
One command plus credentials — npx -y mcp-abap-adt, then supply credentials
USE CASES
Read the program source, then the includes it pulls in and the classes it calls, so the whole unit of behaviour is in front of you rather than one file of it.
Find the object by name when you only half remember it, read the module itself, then read the group around it for the shared data and the other modules that touch it.
Read the table definition, take a capped sample of the rows to see the shape of real data, and follow the structure behind the fields you do not recognise.
Read the CDS view as DDL source, then the behaviour definition and the service definition, which together say what the service exposes and what it allows.
Read the transaction's details to see what it starts, then the package it belongs to, and search for the neighbouring objects that make up the same functional area.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
GetBehaviorDefinitionRetrieve RAP Behavior Definition (BDEF) source code (requires ~NW 7.54 / S/4HANA)
GetCDSViewRetrieve CDS view (DDL source) source code
GetClassRetrieve ABAP class source code
GetFunctionRetrieve ABAP Function Module source code
GetFunctionGroupRetrieve ABAP Function Group source code
GetIncludeRetrieve ABAP Include Source Code
GetInterfaceRetrieve ABAP interface source code
GetPackageRetrieve ABAP package details
GetProgramRetrieve ABAP program source code
GetServiceDefinitionRetrieve RAP Service Definition (SRVD) source code (requires ~NW 7.54 / S/4HANA)
GetStructureRetrieve ABAP Structure
GetTableRetrieve ABAP table structure
GetTableContentsRetrieve contents of an ABAP table
GetTransactionRetrieve ABAP transaction details
GetTypeInfoRetrieve ABAP type information
SearchObjectSearch for ABAP objects using quick search
BEFORE YOU INSTALL
16 tools when we connected. Every tool is read-only (Get* or SearchObject); none writes ABAP source back to the system.
CONTEXT COST
Rated by the size of the 16 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y mcp-abap-adtAdd Server → Spotlight tab → mcp-abap-adt (FLUJO fetches the npm package and opens the Local Server tab for URL / Username / Password)
{
"mcpServers": {
"mcp-abap-adt": {
"command": "npx",
"args": [
"-y",
"mcp-abap-adt"
],
"env": {
"SAP_URL": "<YOUR_SAP_SYSTEM_URL>:8000",
"SAP_USERNAME": "<YOUR_SAP_USERNAME>",
"SAP_PASSWORD": "<YOUR_SAP_PASSWORD>",
"SAP_CLIENT": "100"
},
"disabled": false,
"autoApprove": []
}
}
}{
"mcpServers": {
"mcp-abap-adt": {
"command": "npx",
"args": [
"-y",
"mcp-abap-adt"
],
"env": {
"SAP_URL": "<YOUR_SAP_SYSTEM_URL>:8000",
"SAP_USERNAME": "<YOUR_SAP_USERNAME>",
"SAP_PASSWORD": "<YOUR_SAP_PASSWORD>",
"SAP_CLIENT": "100"
}
}
}
}{
"mcpServers": {
"mcp-abap-adt": {
"type": "http",
"url": "http://localhost:4200/mcp-proxy/mcp-abap-adt"
}
}
}