cpi-saper-dev-mcp

v0.9.0-beta.5
cpi-saper-dev-mcp Checked 2 days ago Published 22 days ago

MCP server that lets an AI agent develop SAP Cloud Integration (CPI) content on development tenants: edit iFlows locally, check, push, deploy and test

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cpi_tenants Configured tenants

List the configured Cloud Integration tenants and what may be done on each: role (readonly or development), deploy mode (api or manual: the user deploys in the designer), packages the agent may change, script runner, guideline check, and whether the service keys are present (with the tenant host). Also shows which actions need the user's confirmation, and whether unattendedTestMode (test only: no questions to the user; the agent passes version and comment to cpi_push itself) is on.

cpi_packages List packages

List the integration packages on a tenant. agentMayChange says whether the agent may change content in the package (development tenant, package allowed by the configuration, and not READ_ONLY content from SAP or partners).

ParameterTypeDescription
tenantstringTenant name from the configuration; default: defaultTenant

cpi_artifacts List iFlows and script collections of a package

List the integration flows and script collections of a package with their design-time version ("Active" = changed since the last saved version) and runtime status (null = not deployed). The package can be given by Id or display name.

ParameterTypeDescription
package *stringPackage Id or display name
tenantstringTenant name from the configuration; default: defaultTenant

cpi_pull Pull an iFlow

Download an iFlow from the tenant into the workspace as <workspace>/<packageId>/<iflowId>/ (SAP file layout). Refuses to overwrite local changes made since the previous pull unless overwrite is true. Read the result with iflow_describe; compare later local edits with iflow_diff.

ParameterTypeDescription
iflow *stringiFlow Id
overwritebooleanDiscard local changes made since the previous pull
tenantstringTenant name from the configuration; default: defaultTenant

cpi_status Local and tenant status

For every iFlow and script collection pulled from the tenant (or one, or those of a package): whether it changed locally since the pull, changed on the tenant since the pull (e.g. in the designer, or a configured value), both (conflict: a push is refused), or neither; with the pulled, tenant and deployed versions. With package, also lists the package's artifacts that are not pulled. Downloads each artifact from the tenant.

ParameterTypeDescription
iflowstringOnly this iFlow or script collection Id
packagestringOnly this package (Id or display name), including what is not pulled
tenantstringTenant name from the configuration; default: defaultTenant

cpi_endpoints Endpoints of deployed iFlows

The URLs of the HTTP endpoints of deployed iFlows (call them with cpi_send_message using the iFlow and the path). The tenant lists a new deployment a little later; until then, for one iFlow, the URL is built from its HTTPS sender's path (source: "sender adapter").

ParameterTypeDescription
iflowstringOnly this iFlow
tenantstringTenant name from the configuration; default: defaultTenant

cpi_security_material Security material

Names, types, validity and deploy status of the tenant's keystore entries, user credentials, OAuth2 client credentials and secure parameters, to reference them in adapter settings. Never returns passwords, secrets, user names, secure parameter values or certificate content. expiringWithinDays lists only keystore entries that expire within that many days (and the other kinds unchanged).

ParameterTypeDescription
expiringWithinDaysinteger
kindstringOnly this kind
tenantstringTenant name from the configuration; default: defaultTenant

iflow_describe Describe an iFlow

Compact model of a local iFlow instead of BPMN XML: participants, adapters with settings, processes with steps (kind, version, settings, decoded header/property tables), routes with conditions, externalized parameters, and files the steps use. Steps carry a display number "no" in flow order (#1, #2, ...) for talking about them; refer to steps by id in tool calls, since numbers shift when steps are inserted. detail "summary" cuts long values at 160 characters, "full" keeps them.

ParameterTypeDescription
iflow *stringLocal iFlow: its Id (searched as <workspace>/<package>/<id>/), its folder, or its .iflw file; relative paths are resolved against the workspace
detailstring

iflow_render Diagram of an iFlow

Mermaid flowchart of a local iFlow (steps with their display numbers, routes, adapters). Show it to the user in a ```mermaid block.

ParameterTypeDescription
iflow *stringLocal iFlow: its Id (searched as <workspace>/<package>/<id>/), its folder, or its .iflw file; relative paths are resolved against the workspace

iflow_validate Check an iFlow

Structural checks of a local iFlow before it goes to the tenant: duplicate ids, dangling or inconsistent flows, missing diagram shapes, unreachable steps, script/mapping files that do not exist, {{parameters}} not declared in parameters.propdef, and some settings the tenant only refuses at deploy: empty required settings (split expression, key alias, mapping or script file), steps that need an adapter (Content Enricher, Request Reply, Send, Poll Enrich), sender authorization values the tenant refuses, Receiver names with whitespace, HTTP receiver authenticationMethod in the wrong case. Not eve…

ParameterTypeDescription
iflow *stringLocal iFlow: its Id (searched as <workspace>/<package>/<id>/), its folder, or its .iflw file; relative paths are resolved against the workspace

iflow_diff Changes in an iFlow

Model-level changes of a local iFlow: steps and adapters added, removed, renamed or re-versioned, settings old -> new, table rows, and flows as connections between named steps. Layout and ids the designer regenerates on every save are left out. Without "against", compares with the state of the last cpi_pull (what was changed locally since); with "against", compares that iFlow (old) with this one (new). Numbers (#n) are those of the new version.

ParameterTypeDescription
iflow *stringThe new (or locally changed) iFlow
againststringThe old iFlow (Id, folder or .iflw); default: the last pulled state of "iflow"

templates_list Step and adapter catalog

The bundled catalog of Cloud Integration steps and adapters with their default settings, per variant and version. Without query: one line per variant (kind, label, versions, key). With query (key, component name like "Enricher" or "sap:HTTP", or label like "Content Modifier"): the matching entries with all default properties.

ParameterTypeDescription
kindstringOnly entries of this kind (list mode)
querystring

iflow_edit Edit an iFlow

The only way to change a local iFlow (do not edit the .iflw XML directly). Apply semantic edits in one batch: insert a step from the catalog (with settings, headers, properties), remove a step (its neighbours are reconnected), add or remove an adapter (with its Sender/Receiver box; remove_box removes a box without adapters), add or remove an exception subprocess (insert steps into it after its Error Start), add a router or a parallel/sequential multicast (with Join) and put steps on its routes (insert_step "route"), change or remove routes and gateways, add or remove local integration processe…

xslt_run Run an XSLT

Run an XSLT (1.0, 2.0 or 3.0) locally like a CPI XSLT Mapping step: headers and exchange properties are passed as xsl:param by name. Returns the output, xsl:message texts, or the error with its code and line. Runs SaxonJS: Java extension functions and schema-aware XSLT are not available (see the known limitations).

ParameterTypeDescription
filestringXSLT file (relative to the workspace or absolute)
headersobject
iflowstringLocal iFlow: its Id (searched as <workspace>/<package>/<id>/), its folder, or its .iflw file
inputstringInput XML as text
inputFilestringInput XML file (relative to the workspace or absolute), instead of "input"
propertiesobject
stepstringXSLT Mapping step of "iflow" (id or name), instead of "file"

mapping_describe Read a message mapping

Read a message mapping (.mmap) as text: source and target messages, Groovy function files, then one line per target field "target <- expression" (constants as values, standard functions by name, UDFs as File.function(), {ctx node} for contexts, "(same as <field>)" for shared results). Read-only.

ParameterTypeDescription
filestring.mmap file (relative to the workspace or absolute)
iflowstringLocal iFlow: its Id (searched as <workspace>/<package>/<id>/), its folder, or its .iflw file
stepstringMessage Mapping step of "iflow" (id or name), instead of "file"

script_run Run a Groovy script on the tenant

Run one Groovy script on a development tenant without deploying it, through the script runner iFlow (configured as "scriptRunner"). Script step 2.x (Groovy 4) is used when the script imports com.sap.it.script.v2.api, else 1.x (Groovy 2.4); override with groovyVersion. Returns the resulting body, printed output, what the script set or removed in headers and properties, and the error with its line. Header/property names and values cannot contain ";" or "=". Only one file: shared script code must be inlined. Groovy 4 (script step 2.x) scripts import com.sap.it.script.v2.api and live under script/…

ParameterTypeDescription
bodystringMessage body the script receives
bodyFilestringFile with the message body, instead of "body"
filestringGroovy file: absolute, or relative to the workspace folder (where cpi_pull puts iFlows, e.g. "<package>/<iflow>/src/main/resources/script/x.groovy"), not to the project folder
functionstringFunction to call instead of processData
groovyVersion
headersobject
iflowstringLocal iFlow: its Id (searched as <workspace>/<package>/<id>/), its folder, or its .iflw file
propertiesobject
stepstringScript step of "iflow" (id or name), instead of "file"
tenantstring

iflow_create Create a new iFlow

Create an empty iFlow in a package on a development tenant and pull it into the workspace. The tenant scaffolds it like the designer does: version 1.0.0, a Sender and a Receiver box, Start -> End, no adapters. Then build it locally with iflow_edit (add_adapter connects the sender to the Start event, insert_step adds steps) and upload it with cpi_push, which gives it its first real version. Refuses an Id that exists on the tenant, a package that is not allowed or read-only, and non-development tenants. Asks for confirmation when configured.

ParameterTypeDescription
id *stringiFlow Id: letters, digits, "_", "-", "." (no spaces); unique on the tenant
package *stringPackage Id or display name
namestringDisplay name (default: the Id)
tenantstringTenant name from the configuration; default: defaultTenant

iflow_delete Delete an iFlow

Delete an iFlow from a development tenant with its whole version history; this cannot be undone. Meant for cleaning up test iFlows. Refuses a deployed iFlow (cpi_undeploy first), one open in the designer, packages that are not allowed or read-only, and non-development tenants. Always asks for confirmation unless removed from "confirm" (or in unattendedTestMode). The local folder stays; its pulled state is removed, so it cannot be pushed.

ParameterTypeDescription
iflow *stringiFlow Id
tenantstringTenant name from the configuration; default: defaultTenant

cpi_push Push an iFlow as a new version

Upload a locally edited iFlow (pulled before with cpi_pull) to its tenant. Every upload is a new version in Cloud Integration's history, so each push gets a version number and a one-line comment: call cpi_version_proposal first and pass version and comment by the versioning rules; the user confirms or edits both in a dialog (in unattendedTestMode, test only, they are used as passed). Collect and check related edits locally before pushing, rather than pushing every small step. Refuses when the tenant is not a development tenant, the package is not allowed or read-only, the local iFlow has struc…

ParameterTypeDescription
iflow *stringLocal iFlow: Id, folder or .iflw
commentstringProposed comment: one brief line starting with the part, e.g. "minor: new step X adds header Y"
tenantstringTenant name from the configuration; default: defaultTenant
versionstringProposed version, e.g. 1.2.0 (default: the hint from the changes)

cpi_version_proposal Propose the next version

Everything needed to propose the version for a push: the versioning rules (the project's own file or the default), the last version (from the pull), the local changes since then, a technical hint (major/minor/patch with reasons) and the latest changelog entries. Decide by the rules, then pass version and a brief one-line comment to cpi_push; the user confirms them.

ParameterTypeDescription
iflow *stringLocal iFlow: Id, folder or .iflw
tenantstringTenant name from the configuration; default: defaultTenant

cpi_save_version Make the tenant's content a new version

Record the iFlow's current content on the tenant as a new version with number and comment, for example after the user worked in the designer. (Local changes are versioned by cpi_push.) The content is uploaded again with the new number; the user confirms number and comment in a dialog.

ParameterTypeDescription
iflow *stringiFlow Id
commentstringProposed comment: one brief line
tenantstringTenant name from the configuration; default: defaultTenant
versionstringProposed version

cpi_deploy Deploy an iFlow

Deploy the iFlow's current version (every push is a version). First runs SAP's design guideline check when the tenant's "guidelines" setting asks for it (block: High findings not present at the last deploy stop it). With deploy mode "manual" (e.g. BTP trial tenants) nothing is deployed: ask the user to deploy that version in the designer, then check with cpi_runtime_status. Otherwise asks for confirmation (if configured), deploys, waits, and reports errors with step names. A failed deploy also stops the version that was running before.

ParameterTypeDescription
iflow *stringiFlow Id
tenantstringTenant name from the configuration; default: defaultTenant

cpi_undeploy Undeploy an iFlow or script collection

Remove an iFlow or script collection from the runtime (its design-time content stays). Undeploying a script collection breaks the deployed iFlows that use it. Asks for confirmation when configured.

ParameterTypeDescription
iflow *stringiFlow or script collection Id
tenantstringTenant name from the configuration; default: defaultTenant

cpi_runtime_status Runtime status of an iFlow

Whether and which version of the iFlow is deployed, its status, and the deploy error with step names when it failed.

ParameterTypeDescription
iflow *stringiFlow Id
tenantstringTenant name from the configuration; default: defaultTenant

cpi_guidelines SAP design guideline check

Run SAP's design guideline check on the tenant (deploys through the API skip it, unlike the designer). Returns the non-compliant guidelines, most severe first, with the violating components and SAP's fix text.

ParameterTypeDescription
iflow *stringiFlow Id
allbooleanAlso list compliant and skipped guidelines
tenantstringTenant name from the configuration; default: defaultTenant
versionstringSaved version; default: the current design-time content

cpi_check Tenant model check

Run the tenant's model validation of the iFlow ("Check for problems" in the designer).

ParameterTypeDescription
iflow *stringiFlow Id
tenantstringTenant name from the configuration; default: defaultTenant
versionstring

script_collection_create Create a script collection

Create an empty script collection in an allowed package on a development tenant (version 1.0.0, as the designer does) and pull it as <workspace>/<package>/<id>/. Put scripts in src/main/resources/script/ and upload them with script_collection_push. Asks for confirmation when configured.

ParameterTypeDescription
id *stringScript collection Id
package *stringPackage Id or display name
namestring
tenantstringTenant name from the configuration; default: defaultTenant

script_collection_pull Pull a script collection

Download a script collection into the workspace as <workspace>/<packageId>/<id>/; its scripts are in src/main/resources/script/. Refuses to overwrite local changes made since the previous pull unless overwrite is true.

ParameterTypeDescription
id *stringScript collection Id
overwritebooleanDiscard local changes made since the previous pull
tenantstringTenant name from the configuration; default: defaultTenant

script_collection_push Push a script collection as a new version

Upload a locally edited script collection (pulled or created before) as a new version: pass version and a one-line comment (hint: a removed script is major, a new one minor, a change patch); the user confirms both (in unattendedTestMode, test only, they are used as passed). The tenant keeps no comments for script collections, so the comment goes to the changelog next to the folder. Refuses when the collection changed on the tenant since the pull or is open in the designer. iFlows use the new version after script_collection_deploy.

ParameterTypeDescription
id *stringScript collection Id
commentstringProposed comment: one brief line starting with the part, e.g. "minor: new script Utils.groovy"
tenantstringTenant name from the configuration; default: defaultTenant
versionstringProposed version, e.g. 1.1.0

script_collection_deploy Deploy a script collection

Deploy the script collection's current version so iFlows can use its scripts (deploy the collection before the iFlows that use it). With deploy mode "manual" nothing is deployed: ask the user to deploy it in the designer. Asks for confirmation when configured.

ParameterTypeDescription
id *stringScript collection Id
tenantstringTenant name from the configuration; default: defaultTenant

script_collection_delete Delete a script collection

Delete a script collection with its version history from a development tenant; this cannot be undone. Refuses a deployed collection (cpi_undeploy first) and one open in the designer. iFlows that still use its scripts fail at their next deploy. Asks for confirmation unless removed from "confirm". The local folder stays.

ParameterTypeDescription
id *stringScript collection Id
tenantstringTenant name from the configuration; default: defaultTenant

params_set Declare externalized parameters

Declare, change or remove externalized parameters of a local iFlow: parameters.propdef (name, type, required, description) and parameters.prop (the value) stay consistent, in the designer's format; created when missing. Use a parameter in a setting by writing {{name}} as its value (iflow_edit set). Returns the parameters with their values and where each is used. The values go to the tenant with cpi_push; to change a value on the tenant without a new version, use cpi_config_set.

ParameterTypeDescription
iflow *stringLocal iFlow: Id, folder or .iflw
removearrayParameter names to remove (declaration, value and the designer's references)
setarray

cpi_config_get Configured parameter values

The values an iFlow's externalized parameters are configured with on the tenant (SAP's own keys like SAP_ProfileId marked), compared with the local parameters.prop when the iFlow is pulled.

ParameterTypeDescription
iflow *stringiFlow Id
tenantstringTenant name from the configuration; default: defaultTenant

cpi_config_set Configure parameter values on the tenant

Set configured values of an iFlow's externalized parameters on a development tenant (allowed packages only), like "Configure" in the designer: no new version; the running iFlow uses them after the next deploy. Asks for confirmation when "config_set" is in "confirm". When the iFlow is pulled, its local parameters.prop is updated too (unless it has local changes, which a later cpi_push would upload over these values).

ParameterTypeDescription
iflow *stringiFlow Id
schedulesobjectSchedule parameter name (type custom:schedule) -> {every, unit} or {cron}, with from, until, timeZone
tenantstringTenant name from the configuration; default: defaultTenant
valuesobjectParameter name -> value

cpi_datastores Data stores

Data stores the iFlows wrote (Write step): without store, all stores with their iFlow (or global), number of entries and overdue entries; with store, its entries (id, status, message log id, due, created, retain until). A store appears once something was written to it.

ParameterTypeDescription
iflowstringThe iFlow the store or variable belongs to; "" for a global one; needed only when the name is ambiguous
storestringData store name
tenantstringTenant name from the configuration; default: defaultTenant

cpi_datastore_entry Data store entry

The message a data store entry holds: body (cut to output.maxChars; binary bodies are only measured) and the stored headers, credential-like values hidden.

ParameterTypeDescription
id *stringEntry id
store *string
iflowstringThe iFlow the store or variable belongs to; "" for a global one; needed only when the name is ambiguous
tenantstringTenant name from the configuration; default: defaultTenant

cpi_datastore_delete Delete data store entries

Delete entries of a data store, or the whole store (all: true), for example to reset test data between runs. Development tenants only; a store of an iFlow follows its package rules. Asks for confirmation ("runtime_data").

ParameterTypeDescription
store *string
allbooleanDelete the whole store with all entries
idsarrayEntry ids to delete
iflowstringThe iFlow the store or variable belongs to; "" for a global one; needed only when the name is ambiguous
tenantstringTenant name from the configuration; default: defaultTenant

cpi_variables Variables

Variables the iFlows wrote (Write Variables step): without name, all with their iFlow (or global), updated and retain-until dates; with name, also the value.

ParameterTypeDescription
iflowstringThe iFlow the store or variable belongs to; "" for a global one; needed only when the name is ambiguous
namestringVariable name
tenantstringTenant name from the configuration; default: defaultTenant

cpi_variable_delete Delete a variable

Delete a variable, for example so a delta load starts again from its default. Development tenants only; a variable of an iFlow follows its package rules. Asks for confirmation ("runtime_data").

ParameterTypeDescription
name *string
iflowstringThe iFlow the store or variable belongs to; "" for a global one; needed only when the name is ambiguous
tenantstringTenant name from the configuration; default: defaultTenant

cpi_queues JMS queues

The JMS broker (capacity used and maximum, queues used out of the maximum, warnings) and its queues with message count, size, active/exclusive and the iFlows that read or write them; with queue, its messages (id, failed, retry count, next retry, message log id, created, overdue, expires). Failed messages are retried by the tenant; cpi_queue_action retries them now.

ParameterTypeDescription
queuestringQueue name
tenantstringTenant name from the configuration; default: defaultTenant

cpi_queue_action Act on a JMS queue

retry: retry failed messages now (all failed ones, or by ids, message log id or createdBefore); move: move messages to another queue (same selection); delete: delete messages by id; activate/deactivate: start or stop delivering the queue's messages to the iFlows that read it. Development tenants only, and every iFlow using the queue (both queues for move) must be in an allowed package. Asks for confirmation ("runtime_data").

ParameterTypeDescription
action *string
queue *string
createdBeforestringretry/move: messages created before this time (ISO)
idsarrayMessage ids (cpi_queues queue=...)
messageLogIdstringretry/move: the messages of this message log
targetQueuestringmove: the queue to move to
tenantstringTenant name from the configuration; default: defaultTenant

cpi_number_ranges Number ranges

Number ranges (used by number range steps, e.g. for EDI interchange numbers): name, description, min, max, current value, field length, rotate, deployed by and on.

ParameterTypeDescription
namestringOnly this range
tenantstringTenant name from the configuration; default: defaultTenant

cpi_number_range_set Create, change or delete a number range

create (needs max; min defaults to 0, current to min), update (what is not given stays, e.g. reset current), or delete a number range. Number ranges are global: development tenants only. Asks for confirmation ("runtime_data").

ParameterTypeDescription
action *string
name *string
currentstringThe value the next number follows
descriptionstring
fieldLengthstringNumbers are padded to this length
maxstring
minstringWhole number, as text
rotatebooleanStart again at min after max
tenantstringTenant name from the configuration; default: defaultTenant

cpi_duplicate_checks Duplicate checks (already processed)

Entries of the idempotent repository: what was already processed and is skipped when it comes again, e.g. a file name an SFTP sender marked as processed, or an id an Idempotent Process Call step saw. Each entry: source, entry (the processed file name or id), component, created, expires. Use it when a test seems to do nothing; cpi_duplicate_check_delete makes the same file or id processed again.

ParameterTypeDescription
containsstringOnly entries whose source or entry contains this text, e.g. an iFlow id or file name
tenantstringTenant name from the configuration; default: defaultTenant

cpi_duplicate_check_delete Allow processing again

Delete duplicate-check entries (as listed by cpi_duplicate_checks: source and entry), so the same file or id is processed again on the next run. Development tenants only. Asks for confirmation ("runtime_data").

ParameterTypeDescription
entries *array
tenantstringTenant name from the configuration; default: defaultTenant

cpi_message_store Persisted messages

What the Persist steps of one message stored: without id, the entries (id, step id, time); with id, the stored body (cut to output.maxChars) and headers (credential-like values hidden).

ParameterTypeDescription
messageLogId *stringMessage log id (cpi_send_message, cpi_messages)
idstringEntry id
tenantstringTenant name from the configuration; default: defaultTenant

cpi_send_message Send a test message

Call a deployed iFlow's HTTP endpoint (https://<runtime>/http<path>, the HTTPS sender's address) on a development tenant. Returns the HTTP status, response headers and body, and the message log id (also for failed calls) to read with cpi_message. The same request answered the same way several times in a row gets a note, and from the 10th time it is not sent again until something changes.

ParameterTypeDescription
path *stringEndpoint path as configured in the HTTPS sender, e.g. /test
bodystring
bodyFilestringFile with the request body (relative to the workspace or absolute), instead of "body"
headersobject
methodstring
tenantstringTenant name from the configuration; default: defaultTenant

cpi_messages Search message logs

Message processing logs, newest first, optionally for one iFlow and/or one status (COMPLETED, FAILED, RETRY, ESCALATED, PROCESSING).

ParameterTypeDescription
iflowstringiFlow Id
statusstring
tenantstringTenant name from the configuration; default: defaultTenant
topinteger

cpi_message One message log

One message processing log: status, error text with the failing step by name, and every processing step with its status (step ids translated to step names and display numbers). At log level INFO the tenant records steps only for failed messages. Use the id from cpi_send_message or cpi_messages.

ParameterTypeDescription
id *stringMessage log id (MessageGuid)
tenantstringTenant name from the configuration; default: defaultTenant

cpi_trace Step trace (experimental)

Experimental (setting "experimental.trace"); uses an undocumented SAP endpoint. With "enable": switch the iFlow's log level to TRACE for 10 minutes (development tenants only); send messages afterwards. With "message": the body, headers and properties as they entered each step of that message (only for messages processed while TRACE was on). Credential values are hidden.

ParameterTypeDescription
enablestringiFlow Id: switch TRACE on
messagestringMessage log id: read its step traces
tenantstringTenant name from the configuration; default: defaultTenant

cpi_login Log in to a tenant as the user

For tenants with "login": "user": log in with the user's own SAP account, so the tenant records the user (not a technical client) as the one who changed or deployed content. Opens SAP's login page: through the client when it can open links (MCP URL elicitation), otherwise returns the link for the user to open; the login then completes in the background within 5 minutes. logout: true forgets the login.

ParameterTypeDescription
logoutboolean
tenantstring