Skip to main content
Glama
Leonkhchen

abap-adt-mcp

by Leonkhchen

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SAP_URLYesThe SAP system URL, e.g., https://host:44300
SAP_USERYesSAP username
SAP_CLIENTNoSAP client, e.g., 100
SAP_LANGUAGENoLogin languageEN
SAP_PASSWORDYesSAP password
ABAP_MCP_READONLYNoWhen true, write tools are not registeredfalse
ABAP_MCP_AUDIT_LOGNoPath to audit log file for write operations(disabled)
ABAP_MCP_SYSTEM_ROLENodev/qa/prod; prod forces read-onlydev
ABAP_MCP_ALLOWED_PREFIXESNoAllowed object name prefixes for write operationsZ,Y,$
ABAP_MCP_MAX_SOURCE_LINESNoMaximum lines returned by read_source5000
ABAP_MCP_ALLOW_SELF_SIGNEDNoAllow self-signed certificates (internal dev only)false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ping_systemA

測試與 SAP 系統的 ADT 連線是否正常,回傳系統 URL、登入帳號與目前的安全模式。連線異常時會回傳診斷建議。建議在開始任何工作前先呼叫一次。

search_objectsA

以名稱(支援 * 萬用字元)搜尋 ABAP 物件,例如 'ZCL_INVOICE*'。回傳物件名稱、類型、package 與 ADT URI(後續工具皆以此 URI 操作)。

browse_packageB

列出指定 package(開發類別)內的所有物件,例如 ZFI_TOOLS 或 $TMP。

get_object_structureA

取得 ABAP 物件的結構資訊(class 的 methods/includes、program 的組成等)與 source URI。

read_sourceA

讀取 ABAP 物件的原始碼。可傳入物件 URI(自動解析 main include)或完整 source URI。回傳內容含行號,超過上限時會截斷並標註。

syntax_checkA

對指定的原始碼內容執行 ABAP 語法檢查(不需要鎖定、不會修改系統)。可用來在寫入前先驗證修改後的程式碼。

list_transportsA

列出使用者可用的(modifiable)workbench transport requests,供 write_source 指定使用。

write_sourceA

修改 ABAP 物件的原始碼。內部自動完成:讀取現況 → 並行檢查 → 鎖定 → 寫入 → 解鎖,失敗時保證釋放鎖定。建議流程:先 read_source 取得現況,修改後將舊內容放入 expected_current_source 以啟用並行保護,再呼叫本工具。預設會先做語法檢查,有語法錯誤時不寫入。

activate_objectC

啟用(activate)指定的 ABAP 物件,回傳啟用結果與錯誤訊息(若有)。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Leonkhchen/abap-adt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server