Skip to main content
Glama
mcp-bw-adt-api

mcp-bw-adt-api

by lingcSun

mcp-bw-adt-api

An MCP (Model Context Protocol) server that exposes the bw-adt-api library — SAP BW/4HANA ADT (ABAP Developer Tools) operations — to LLM clients such as ZCode, Claude Desktop, or any MCP-compatible client.

It exposes a Public subset of BWAdtClient domain operations (ADSO, Transformation, DTP, DataSource, Process Chain, InfoObject, DDIC, search, dataflow, transports, …) as MCP tools — 77 tools after Public-surface consolidation — with a local-file buffering layer that keeps large XML payloads and table data out of the LLM context window.

BREAKING (Public surface): Atomic lock / unlock / bare update / bare activate, raw bw_*_get (prefer *_details + *_get_xml), bw_quick_search, bw_object_create / update / activate, bw_adso_node_path, and several duplicate DDIC/system tools were removed from tools/list. Prefer: *_get_xml + outputPath → edit file → *_save_and_activate

  • xmlPath. Mutating tools are marked on each ToolDef (mutating: true) and derived at startup for read-only profile guards.


Why a buffering layer?

bw-adt-api payloads are large — measured on real systems:

Payload

Typical size

Object XML (PUT request body)

15–80 KB

DDIC table data, 100 rows × 20 cols

~68 KB

DDIC table data, 10 000 rows

~6.7 MB

Process chain logs, 200 entries

~39 KB

Pushing these through the LLM context window is wasteful or fatal. This server solves it two ways:

Mechanism A — large request bodies via local files (POST/PUT)

Every tool that takes a large string body (object XML, SQL statement, ABAP source) accepts two fields:

  • <label>Content — inline string

  • <label>Path — path to a file under the workdir (takes precedence)

So instead of the LLM having to generate or hold a 50 KB XML, it reads the current XML to a file, edits it (or uses an atomic-edit tool), then references the file by path.

Mechanism B — large responses via outputPath

Most read tools accept an optional outputPath. When set, the full result is written to that file and the tool returns only a small summary envelope:

{ "ok": true, "outputPath": "/abs/path/big.json", "bytes": 723908, "summary": "object with key(s): tableName, rows, …" }
  • Objects / arrays are written as JSON.

  • Raw XML strings (from bw_*_get_xml with outputPath) are written as plain text, so the same path can be reused as xmlPath in a later save call.

Without outputPath, the result is returned inline (with table data paginated to a soft cap and truncated/hint flags set when needed).

Workdir sandbox

All file paths resolve under the workdir and are confined to its subtree (.. escapes and out-of-tree absolute paths are rejected). By default the workdir is <cwd>/.mcp-bw-out (a scratch folder under the server process working directory) so buffered files do not land on project source. Override with BW_MCP_WORKDIR if you need a different root (e.g. the workspace root).


Related MCP server: sapmcp

Quick start

# 1. Install + build
npm install
npm run build

# 2. Configure connection (copy & edit)
cp .env.example .env
#   multi-env: BW_PROFILES + BW_<NAME>_*  (or legacy BW_BASE_URL / …)

# 3. Inspect the tool catalog (no BW connection needed)
npm run list-tools

Variable

Required

Description

BW_PROFILES

yes*

Comma-separated profile names, e.g. test,prod

BW_DEFAULT

no

Startup profile (default = first in BW_PROFILES)

BW_<NAME>_BASE_URL

yes*

BW server URL for that profile

BW_<NAME>_USERNAME

yes*

SAP logon user

BW_<NAME>_PASSWORD

yes*

Password (never exposed to the LLM)

BW_<NAME>_CLIENT

no

SAP logon client, e.g. 100

BW_<NAME>_LANGUAGE

no

Language key, e.g. ZH

BW_<NAME>_READONLY

no

true → reject mutating tools on this profile

BW_<NAME>_ALLOW_UNAUTHORIZED

no

true to accept self-signed certs

BW_MCP_WORKDIR

no

Root for file buffering (default = <cwd>/.mcp-bw-out)

* Or use the legacy single-env vars (BW_BASE_URL, BW_USERNAME, BW_PASSWORD, optional BW_CLIENT / BW_LANGUAGE / BW_READONLY / BW_ALLOW_UNAUTHORIZED) when BW_PROFILES is unset — they become a profile named default.

Switch at runtime with bw_env_list / bw_env_switch. The active profile’s client auto-logs-in on its first request; bw_disconnect drops only the current profile’s session.

Read-only profiles: mutating tools are omitted from tools/list, and the server emits notifications/tools/list_changed when readOnly visibility changes. Host support for mid-session refresh is incomplete (Cursor / Claude Code may keep a stale list until MCP reconnect or a new chat) — the server still rejects mutating tools/call as a hard guard.


Registering in an MCP client

Add the server to your client's MCP config. Examples:

ZCode (.zcode/mcp.json in the workspace, or user-level)

{
  "mcpServers": {
    "bw-adt": {
      "command": "node",
      "args": ["E:/04-code/02-personnal/bw-adt/mcp-bw-adt-api/build/index.js"],
      "env": {
        "BW_PROFILES": "test,prod",
        "BW_DEFAULT": "test",
        "BW_TEST_BASE_URL": "http://your-bw-test:8000",
        "BW_TEST_USERNAME": "developer",
        "BW_TEST_PASSWORD": "secret",
        "BW_TEST_CLIENT": "100",
        "BW_TEST_LANGUAGE": "ZH",
        "BW_TEST_READONLY": "false",
        "BW_PROD_BASE_URL": "http://your-bw-prod:8000",
        "BW_PROD_USERNAME": "developer",
        "BW_PROD_PASSWORD": "secret",
        "BW_PROD_CLIENT": "100",
        "BW_PROD_LANGUAGE": "ZH",
        "BW_PROD_READONLY": "true"
        // "BW_MCP_WORKDIR": "C:/path/to/workspace"
      }
    }
  }
}

The server inherits the client process's cwd, so BW_MCP_WORKDIR usually does not need to be set — files are buffered into the workspace that owns the MCP server.

Claude Desktop (claude_desktop_config.json)

Same shape under "mcpServers".


Tool catalog

Tools are named bw_<domain>_<action>. Run npm run list-tools for the full list with input schemas. Domains:

Domain

Prefix

Example tools

System / env

bw_system_*, bw_env_*, bw_disconnect

bw_env_list, bw_env_switch, bw_system_status

Runtime dumps (ST22)

bw_dumps

bw_dumps(query 如 maxNumber=5;返回浓缩字段非完整 HTML)

Search

bw_search_*

bw_search_objects, bw_adso_transformations

Dataflow / lineage

bw_dataflow_*

bw_dataflow_get, bw_dataflow_lineage

Generic CRUD

bw_object_*

bw_object_create/update/delete/activate

ADSO

bw_adso_*

bw_adso_get_xml, bw_adso_save_and_activate, bw_adso_add_field, bw_adso_add_key, bw_adso_convert_type, bw_adso_create(adsoType 枚举)

InfoArea

bw_area_*

bw_area_create, bw_area_get_xml, bw_area_validate_exists

Transformation

bw_trfn_*

bw_trfn_create, bw_trfn_save_and_activate, bw_trfn_add_rules_and_save, bw_trfn_auto_map_and_save

DTP

bw_dtp_*

bw_dtp_create, bw_dtp_execute, bw_dtp_save_and_activate

DataSource

bw_datasource_*

bw_datasource_save_and_activate, bw_datasource_merge_proposal

Replication

bw_replication_*

bw_replication_replicate_full

Process Chain

bw_processchain_*

bw_processchain_execute, bw_processchain_logs

InfoObject

bw_infoobject_*

bw_infoobject_get, bw_infoobject_create(仅 KYF 关键指标)

DDIC tables / data

bw_table_*

bw_table_get_data, bw_table_query_sql

BICS reporting / preview

bw_reporting_*

bw_reporting_preview, bw_reporting_initial_view

Transport / CTS

bw_transport_*

bw_transport_check, bw_transport_create

Note: Transformation creation must go through bw_trfn_create (the 8TRANSIENT transient flow, equivalent to the Eclipse wizard). The generic bw_object_create tool was removed from the Public surface, and the generic POST flow is rejected by the SAP server for TRFN anyway.


Typical workflows

Read-modify-write an ADSO (no large XML held by the LLM)

1. bw_adso_get_xml   { id: "ZL_FID40", format: "summary", outputPath: "adso.xml" }
   → LLM sees a small envelope; the full XML is on disk under the workdir.

2. bw_adso_add_field { id: "ZL_FID40", name: "ZZFLAG", dataType: "CHAR", length: 1 }
   → atomic edit: reads current XML, adds the field, saves+activates.
   (Or the LLM edits adso.xml directly, then:)

3. bw_adso_save_and_activate { id: "ZL_FID40", xmlPath: "adso.xml" }
   → writes the file's XML back, one-stop lock→PUT→activate→unlock.

Query a large table without flooding context

bw_table_get_data { table: "/BIC/AZL_FID402", maxRows: 1000, outputPath: "data.json" }
→ { ok: true, outputPath: "…/data.json", bytes: 680000, summary: "…: 1000 row(s)…" }

The LLM can then run a follow-up script/tool to inspect data.json instead of ingesting it.

Inspect process chain logs safely

bw_processchain_logs { id: "ZPC_FID", limit: 50, offset: 0 }
→ inline, capped. Use outputPath for the full log set.

Architecture

src/
├── index.ts        stdio entry; --list-tools catalog dump
├── server.ts       MCP Server + tools/list + tools/call (outputPath interception)
├── session.ts      singleton BWAdtClient from env (auto-login)
├── errors.ts       AdtException → MCP error result mapping
├── fileio.ts       workdir sandbox, readInput (mechanism A), writeOutput (mechanism B)
├── response.ts     pagination, projection, summaries
├── tool.ts         ToolDef + zod→JSON Schema + largeInput/outputPathField helpers
└── tools/          one file per domain, each exporting ToolDef[]
  • Credentials are read once from env at startup and never surfaced to the LLM.

  • Write operations (delete, activate, execute) are exposed directly, no extra confirmation layer — rely on your MCP client's tool-approval prompt.

  • Pagination: table tools default maxRows to 50 and cap inline returns; logs default to 100 with limit/offset.

Development

npm run build      # tsc → build/
npm run watch      # tsc -w
npm start          # run the server (stdio)
npm run list-tools # dump the tool catalog as JSON

The server depends on the published bw-adt-api npm package ("bw-adt-api": "^0.4.0"). For local cross-repo development, point it at a sibling checkout instead (e.g. npm link ../bw-adt-api or a file: spec) and switch back before publishing.

License

MIT

Available Tools

71 tools
bw_adso_add_fieldA

Atomic edit: add a local 'field'-type field to an ADSO and save (activate optional via autoActivate, default true). success reflects save/activate outcome; activated only means activation was attempted. Internally reads current XML, inserts the field, and saves — no large XML handling by the caller.

Inputs: id (required), name (required), label, scale, +10 more.

bw_adso_checkC

Check ADSO consistency.

Inputs: id (required).

bw_adso_createB

Create an empty ADSO shell (fields are added afterwards via bw_adso_add_field). Required: name, description, infoArea.

Inputs: name (required), infoArea (required), description (required), readOnly, +8 more.

bw_adso_detailsC

Get parsed ADSO metadata (fields, indexes, partitioning). Prefer outputPath. May include configuration, associated DDIC tables, and related DDIC links when the enriched client path is available; otherwise returns the standard details projection.

Inputs: id (required), outputPath, forceCacheUpdate.

bw_adso_dtpsA

Get DTPs related to an ADSO (via name search). Each DTP title carries a 'SOURCE -> TARGET' relation.

Inputs: adsoName (required), outputPath.

bw_adso_get_xmlA

Get the raw ADSO XML used for PUT updates. ALWAYS prefer outputPath — payloads are 15–80 KB. With outputPath, the full XML is written to disk (reuse as xmlPath in bw_adso_save_and_activate) and the MCP response is only a summary envelope. Without outputPath, format='summary' (default) returns a small overview; format='xml' returns the raw XML inline. Step 1 of read-modify-write.

Inputs: id (required), format, outputPath, forceCacheUpdate.

bw_adso_save_and_activateA

One-stop: lock → PUT → (optional) activate → unlock. Prefer xmlPath (from bw_adso_get_xml + outputPath) over inline xmlContent for large bodies. When a transport is required: pass transport= OR createTransport=true (use bw_transport_check to list available requests). Do not omit both. Returns a compact projection; set outputPath to keep the full update/activate detail.

Inputs: id (required), xmlPath, timestamp, transport, +5 more.

bw_adso_transformationsA

Get Transformations related to an ADSO (via name search). Each TRFN title carries a 'SOURCE -> TARGET' relation.

Inputs: adsoName (required), outputPath.

bw_adso_validate_info_areaA

Validate that an InfoArea exists (pre-create check for ADSO). Prefer bw_area_validate_exists for InfoArea workflows.

Inputs: name (required).

bw_adso_validate_new_nameC

Validate that a new ADSO name is available.

Inputs: name (required).

bw_adso_validate_templateC

Validate that a template ADSO exists.

Inputs: name (required).

bw_adso_versionsC

Get ADSO version history.

Inputs: id (required).

bw_area_createA

Create an InfoArea under a parent InfoArea. Flow: validate parent → validate name → lock → POST → unlock (no activate). $TMP packages typically need no transport.

Inputs: name (required), description (required), parentInfoArea (required), language, +4 more.

bw_area_deleteA

Delete an InfoArea. Locks, DELETE /a?lockHandle=…, then unlocks. Irreversible.

Inputs: name (required).

bw_area_get_xmlA

Get InfoArea raw XML (active version /a). Prefer outputPath. Reuse as xmlPath only if a future save tool is added; create uses structured params.

Inputs: name (required), format, outputPath.

bw_area_validate_existsA

Validate that an InfoArea exists (AREA). Prefer this over bw_adso_validate_info_area.

Inputs: name (required).

bw_area_validate_new_nameC

Validate that a new InfoArea name is available.

Inputs: name (required).

bw_dataflow_getB

Get the dataflow/lineage graph around an object (nodes + relations). levels=-1 expands fully; positive N limits depth. Use outputPath for deep graphs.

Inputs: objectName (required), levels, direction, objectType, +1 more.

bw_dataflow_lineageB

Find transformations and DTPs linking a source object to a target object (typical: 'which TRFN/DTP connect ZL_FID01 → ZL_FID40').

Inputs: source (required), target (required), outputPath, targetType.

bw_datasource_detailsA

Get parsed DataSource details. Prefer outputPath.

Inputs: datasource (required), sourceSystem (required), outputPath, forceCacheUpdate.

bw_datasource_fieldsC

Get parsed DataSource field list.

Inputs: datasource (required), sourceSystem (required), outputPath, forceCacheUpdate.

bw_datasource_get_xmlA

Get raw DataSource XML for PUT updates. ALWAYS prefer outputPath. With outputPath, full XML is written to disk (reuse as xmlPath in bw_datasource_save_and_activate). Without it, format='summary' returns an overview; format='xml' returns raw XML inline.

Inputs: datasource (required), sourceSystem (required), format, outputPath, +1 more.

bw_datasource_merge_proposalA

Merge an ODP proposal (field sync after adapter change) into the current DataSource XML. Prefer xmlPath over inline xmlContent; returns the merged XML — write it back via save_and_activate.

Inputs: datasource (required), sourceSystem (required), xmlPath, outputPath, +1 more.

bw_datasource_save_and_activateA

One-stop: lock → PUT → (optional) activate → unlock. Prefer xmlPath (from bw_datasource_get_xml + outputPath) over inline xmlContent. When a transport is required: pass transport= OR createTransport=true. Compact projection returned.

Inputs: datasource (required), sourceSystem (required), xmlPath, transport, +5 more.

bw_datasource_versionsC

Get DataSource version history.

Inputs: datasource (required), sourceSystem (required).

bw_disconnectA

Drop the current environment's BW session/client so the next call reconnects. Other profiles' sessions are left intact. Useful after errors or to force a fresh login.

Inputs: no named parameters.

bw_dtp_activateA

Activate a DTP — typically to re-activate a DTP that a transformation change deactivated. Locks → activates → unlocks; the DTP content is NOT changed. Use bw_dtp_save_and_activate only when the DTP XML was actually modified.

Inputs: id (required).

bw_dtp_checkA

Check DTP consistency (READ-ONLY, does NOT activate). Use bw_dtp_activate to (re)activate a DTP.

Inputs: id (required).

bw_dtp_createA

Create a DTP via the generic object POST flow (CREA lock + collection POST). Body is minimal (extractionSettings + overview TRFN binding + source/target); the server hydrates filter fields and program flow. Created DTP is inactive — configure (extractionMode/filter via get_xml → edit → save_and_activate) then activate. Note: DTP filters cannot express empty-value comparisons; encode them as selections without a element ( = not-initial).

Inputs: sourceName (required), targetName (required), transformId (required), id, +5 more.

bw_dtp_detailsB

Get parsed-and-projected DTP details (fields, filter, program flow extracted from the XML tree). Prefer outputPath.

Inputs: id (required), outputPath, forceCacheUpdate.

bw_dtp_executeC

Execute a DTP (triggers data transfer). Irreversible action.

Inputs: id (required).

bw_dtp_get_xmlA

Get the raw DTP XML string for PUT updates. ALWAYS prefer outputPath. With outputPath, the full XML is written to disk (reuse as xmlPath in bw_dtp_save_and_activate) and the MCP response is only a summary envelope. Without outputPath, format='summary' (default) returns a small overview; format='xml' returns the raw XML inline. Step 1 of read-modify-write.

Inputs: id (required), format, outputPath, forceCacheUpdate.

bw_dtp_save_and_activateA

One-stop: lock → PUT → (optional) activate → unlock. Prefer xmlPath (from bw_dtp_get_xml + outputPath) over inline xmlContent. When a transport is required: pass transport= OR createTransport=true. Compact projection returned; set outputPath for full detail.

Inputs: id (required), xmlPath, transport, outputPath, +4 more.

bw_dtp_versionsC

Get DTP version history.

Inputs: id (required).

bw_env_listA

List configured BW environment profiles and which one is active. Each profile includes name, baseUrl, username, client, language, and readOnly. No network call. Prefer this (or bw_system_status) before bw_env_switch.

Inputs: no named parameters.

bw_env_switchA

Switch the active BW environment profile (e.g. test → prod). Subsequent tools use the new profile. Does not log in until the next tool that needs a client; existing sessions for other profiles are kept. When switching to/from a read-only profile, mutating tools are hidden/shown and a tools/list_changed notification is sent (host support varies; mutating calls are always rejected on read-only profiles).

Inputs: env (required).

bw_infoobject_getC

Get InfoObject details including metadata. Prefer outputPath.

Inputs: name (required), outputPath.

bw_infoobject_validate_existsC

Validate that an InfoObject exists.

Inputs: name (required).

bw_infoobject_validate_new_nameC

Validate that a new InfoObject name is available.

Inputs: name (required).

bw_object_deleteA

Delete any BW object. Irreversible. For InfoArea (area), pass a lock handle; for other types, pass a transport request number.

Inputs: objectName (required), objectType (required), lockHandleOrTransport (required).

bw_processchain_checkC

Check process chain consistency.

Inputs: id (required).

bw_processchain_detailsC

Get parsed process chain details (steps). Prefer outputPath.

Inputs: id (required), outputPath.

bw_processchain_executeA

Execute a process chain. Irreversible action.

Inputs: id (required).

bw_processchain_logsA

Get process chain execution logs and current run status. Defaults to the most recent log entries; use limit/offset to page, or outputPath for the full log set. Response shape: { logs, status, ...paging }.

Inputs: id (required), limit, offset, outputPath.

bw_processchain_stopA

Stop a running process chain. Irreversible action.

Inputs: id (required).

bw_replication_infoC

Replication pre-check for a DataSource.

Inputs: datasource (required), sourceSystem (required), outputPath.

bw_replication_replicateC

Trigger DataSource replication with explicit pre-check tasks. activate is a strategy string (not a boolean).

Inputs: tasks (required), datasource (required), sourceSystem (required), activate, +2 more.

bw_replication_replicate_fullC

One-stop: pre-check → trigger replication.

Inputs: datasource (required), sourceSystem (required), activate, background, +1 more.

bw_reporting_initial_viewA

GET BICS initial reporting view for an ADSO / InfoObject / Composite Provider (compid !NAME). Returns metadata (characteristics, key figures, ids), default axes, and result set. Prefer outputPath — payloads are large. For axis remapping use bw_reporting_preview instead.

Inputs: provider (required), toRow, fromRow, outputPath, +1 more.

bw_reporting_previewA

Convenience BICS preview: GET metadata → put named characteristics on ROWS (optional COLUMNS) → POST refresh. Same as Eclipse Dashboard Preview for ADSO / characteristic / Composite Provider. Inline response is flatRows (paginated); set outputPath for the full QueryView.

Inputs: rows (required), provider (required), toRow, columns, +2 more.

bw_reporting_update_viewA

POST updated BICS axes and refresh the result set. Pass the full infoObject state (name/id/axis/pos) from bw_reporting_initial_view. Prefer bw_reporting_preview when you only need to set row/column characteristic names.

Inputs: state (required), provider (required), toRow, fromRow, +1 more.

bw_search_objectsA

Advanced BW object search with filters (type, dates, name/description). Returns a list of { objectName, objectType, title, uri, ... }. Use outputPath for large result sets.

Inputs: searchTerm (required), objectType, outputPath, changedOnTo, +5 more.

bw_system_infoA

Query BW system info and capabilities for the current environment (auto-logs in on first call). Use outputPath for the full document. For a single property or capability check, read the returned document (or buffered file) rather than separate tools.

Inputs: outputPath.

bw_system_statusA

Report MCP server status: current environment profile (name, baseUrl, username, client, language, readOnly), whether a live BW session exists for it, all configured profiles, and workdir for file buffering. No network call. Use this first to confirm the server is wired to the right BW system.

Inputs: no named parameters.

bw_table_describeA

Describe a DDIC table in one call: merges metadata, info, fields, and data-preview metadata. Prefer outputPath when you need the full snapshot.

Inputs: table (required), outputPath.

bw_table_get_dataA

Query DDIC table data via the ADT data-preview service (OpenSQL SELECT). maxRows defaults to a small value and is capped to avoid huge inline payloads; for large reads set outputPath to dump the full result to a file.

Inputs: table (required), columns, maxRows, orderBy, +2 more.

bw_table_query_sqlA

Run an arbitrary OpenSQL statement via ADT Data Preview freestyle (POST /sap/bc/adt/datapreview/freestyle — same as ADT SQL Console). Pass the statement inline (sqlStatementContent) or from a file (sqlStatementPath). Prefer outputPath for non-trivial results. ⚠️ Runs with the configured BW credentials — treat as a privileged data-plane operation; prefer SELECT-only statements.

Inputs: table, maxRows, outputPath, sqlStatementPath, +1 more.

bw_transport_checkA

Check whether saving an object requires a transport request. Returns recording flag (X = transport mandatory) and the current dev class.

Inputs: uri (required), devclass, operation, outputPath.

bw_transport_createC

Create a new transport request for a referenced object.

Inputs: refUri (required), description (required), devclass, outputPath.

bw_trfn_add_rules_and_saveA

Atomic edit: add DIRECT mapping rules (source→target pairs) to a transformation and save+activate. target omitted means same-name mapping.

Inputs: id (required), rules (required), transport, outputPath, +2 more.

bw_trfn_auto_map_and_saveC

Atomic edit: auto-map same-named source→target fields in a transformation and save+activate.

Inputs: id (required), transport, outputPath, autoActivate, +1 more.

bw_trfn_checkC

Check transformation consistency.

Inputs: id (required).

bw_trfn_class_save_sourceB

Save+activate the routine's ABAP class source. Prefer sourcePath over inline sourceContent.

Inputs: id (required), transport, outputPath, sourcePath, +3 more.

bw_trfn_class_sourceB

Get the routine's ABAP source code. Prefer outputPath.

Inputs: id (required), version, outputPath, classVersion, +1 more.

bw_trfn_createA

Create a transformation via the 8TRANSIENT transient flow (Eclipse wizard equivalent). Server mints the id, hydrates all source/target elements and default rules from the two providers. Returns trfnId + hydrated XML. packageName defaults to $TMP; pass a real package together with transport to register in a workbench request. Then use bw_trfn_auto_map_and_save / bw_trfn_add_rules_and_save / bw_trfn_check to finish.

Inputs: sourceName (required), targetName (required), transport, outputPath, +6 more.

bw_trfn_detailsA

Get parsed transformation details. Prefer outputPath.

Inputs: id (required), version, outputPath.

bw_trfn_get_xmlA

Get raw transformation XML for PUT updates. ALWAYS prefer outputPath. With outputPath, full XML is written to disk (reuse as xmlPath in bw_trfn_save_and_activate). Without it, format='summary' returns an overview; format='xml' returns raw XML inline. Step 1 of read-modify-write.

Inputs: id (required), format, version, outputPath.

bw_trfn_save_and_activateA

One-stop: lock → PUT → (optional) activate → unlock. Prefer xmlPath (from bw_trfn_get_xml + outputPath) over inline xmlContent. When a transport is required: pass transport= OR createTransport=true. Returns a compact projection; set outputPath for full detail.

Inputs: id (required), xmlPath, timestamp, transport, +5 more.

bw_trfn_set_end_routine_fieldsC

Check a list of target field names into the transformation's end routine and save+activate.

Inputs: id (required), fields (required), transport, outputPath, +2 more.

bw_trfn_switch_runtimeC

Switch a transformation between HANA and ABAP runtime. Requires an existing lockHandle.

Inputs: id (required), useHana (required), lockHandle (required), corrNr, +3 more.

bw_trfn_versionsC

Get transformation version history.

Inputs: id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 71 tools

    Disambiguation3/5

    Most object types have clearly separated read/edit/activate/check operations, but several overlapping pairs exist: bw_system_status vs bw_env_list, bw_adso_validate_info_area vs bw_area_validate_exists, bw_replication_replicate vs bw_replication_replicate_full, and the reporting preview/update tools. Descriptions help, but an agent could still misselect.

    Naming Consistency4/5

    Tools follow a mostly consistent bw_<object>_<action> snake_case pattern with predictable verbs like get_xml, details, check, create, save_and_activate, and versions. Minor deviations such as bw_system_status, bw_env_list, bw_reporting_initial_view, and bw_datasource_merge_proposal keep it from being fully uniform.

    Tool Count2/5

    71 tools is far beyond a typical well-scoped set and includes multiple near-duplicates: validation helpers, env status/list, and replication variants. While the broad BW domain explains some volume, the redundancy makes the surface feel heavier than necessary.

    Completeness4/5

    The set covers full lifecycles for ADSO, transformations, DTPs, and DataSources, plus process chain execution, transport handling, table queries, and reporting. Gaps like missing InfoArea update and InfoObject create/edit are workable via generic object delete or XML routes, so coverage is strong but not perfect.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      A
      maintenance
      Enables AI assistants to read, create, and modify SAP BW/4HANA modeling objects via the internal REST API, including aDSOs, InfoObjects, transformations, DTPs, queries, and more.
      21
      173 npm
      85
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for SAP ABAP development that enables AI assistants and code editors to interact with SAP systems via ABAP Developer Toolkit (ADT) APIs, supporting read, create, update, and delete of ABAP objects.
      100
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that enables AI assistants like Claude to work directly inside SAP BW/4HANA systems — reading, creating and modifying BW modeling objects via the internal REST API used by Eclipse BWMT.
      MIT