Skip to main content
SAP LeanIX The SAP LeanIX app exposes the SAP LeanIX Enterprise Architecture Management platform through three entity tools. It can be consumed two ways: as a remote MCP server that Agent Factory agents call as tools, or as a Builder app whose instructions you call directly from DSUL. It runs in the tenant app-instance context (it resolves the installing workspace’s own LeanIX credential) and covers three LeanIX surfaces:
  • Fact sheets (Pathfinder GraphQL) — search, read, create, update and archive Applications, IT Components, Business Capabilities, Projects and any other fact sheet type, plus a raw GraphQL passthrough for relations, diagrams, tags and introspection.
  • Integration API (LDIF) — start and monitor bulk inbound/outbound synchronization runs and list processor configurations.
  • Surveys (Poll v2) — list surveys, read their runs and fetch results.
Authentication is a LeanIX API token (exchanged server-side for a short-lived bearer at the mtm token endpoint) or a caller-supplied access token. Agents are identified by the capability Scope context_id,agent_id,user_id and gated by a per-workspace authorized-agents allowlist.

Enterprise Architecture fact sheets

Search, read, create, update and archive fact sheets (Applications, IT Components, Business Capabilities, Projects) through the Pathfinder GraphQL API, with a raw query passthrough for anything else.

Bulk Integration API

Drive LDIF synchronization runs (inbound/outbound), poll their status and results, and list available processor configurations.

Surveys & polls

List surveys, browse their runs and pull results through the Poll v2 API.

Who is this for?

This connector is used by three different roles. Jump to the section that matches yours — each one is self-contained.

Agent builder

You build agents in Agent Factory and want them to query and manage LeanIX. → Agent builder tab.

Platform admin

You run the platform and want to publish LeanIX as a reusable capability. → Platform admin setup accordion below.

Workspace builder

You write Builder automations (DSUL) that call LeanIX operations directly. → Workspace builder tab.

Prerequisites (SAP LeanIX side)

  • A SAP LeanIX workspace and an account that can create technical-user API tokens.
  • A LeanIX API token — generated in LeanIX under Administration > Technical Users (or use a caller-managed access token instead).
  • Your instance URL — the bare workspace host, e.g. https://eu.leanix.net (the connector derives the mtm token host from it automatically).
  • The technical user must have the LeanIX permissions for the resources you intend to use (fact sheets, Integration API, surveys).
Goal: SAP LeanIX is a per-workspace connector — each workspace configures its own LeanIX credential (see the Workspace builder tab), so there is no platform-wide credential to provision. The only optional platform task is to publish LeanIX as a reusable capability in AI Governance so agent builders can enable it from the catalog instead of pasting a raw MCP endpoint.
There is no shared LeanIX credential and no central OAuth client for this connector. The LeanIX API token and the authorized-agents allowlist always live in the consuming workspace. A Governance capability you publish here points at a specific workspace’s MCP endpoint; that workspace still owns the credential and the allowlist.

Declare the capability in AI Governance (optional)

1

Open AI Governance > Capabilities

Create (or edit) the SAP LeanIX capability.
2

Point it at the MCP endpoint

Set the capability’s MCP server URL to the connector’s MCP Endpoint (the workspace running the connector), and set its Scope to:
context_id,agent_id,user_id
The agent_id in the scope is what lets the connector identify and authorize the calling agent.
3

Make it available to agent builders

Once created, the capability appears in the capability picker for agent builders in your organization, who enable it on their agents. Access to the catalog follows your organization’s existing roles; there is no per-capability role grant. Which agents may actually call this tenant-context connector is gated separately by the per-workspace allowlist (see below).
Declaring the capability makes the connector available; it does not by itself authorize a specific agent. This connector follows the tenant-context model — which agents may actually call it is gated per-workspace by the authorized-agents allowlist in the configuration app (see the Workspace builder tab). There is no OAuth auth-config JSON to attach in Governance: authentication is a server-side LeanIX token, not a per-user OAuth flow.

Goal: let an agent you build in Agent Factory query and manage SAP LeanIX through MCP tools.
Before an agent can call the connector, a Workspace builder must have installed and configured the SAP LeanIX app in a workspace (see the Workspace builder tab). Optionally, a Platform admin may have published a LeanIX capability in AI Governance (see the Platform admin setup accordion above).
This connector runs in the tenant app-instance context: your agent is identified by the agent_id that Agent Factory injects through the capability Scope, and that agent must appear in the connector’s authorized-agents allowlist (managed in the configuration app). The LeanIX credential itself is resolved server-side — never exposed to the agent.
1

Install and configure the connector in your workspace

Follow the Workspace builder tab: install SAP LeanIX in your workspace, open its Configuration app, and provide the LeanIX API token (or access token) and instance URL.
2

Allowlist your agent

In that workspace’s config app, open Authorized agents and tick your agent (the Install capability button does this for you), or enable Allow all agents.
3

Add the MCP capability to your agent

In your agent, add a capability pointing at your workspace’s MCP Endpoint URL, and set its Scope to:
context_id,agent_id,user_id
The agent_id is what lets the connector identify and authorize your agent — without it, every call is rejected with an explicit “agent could not be identified” message.
4

Brief the agent

Tell the agent the tools exist and when to use them. Copy-pasteable starter:
You have access to the SAP LeanIX MCP server (tools: factSheets, integration, surveys). Each tool takes an `action` argument. Use factSheets to search, read, create, update or archive Enterprise Architecture fact sheets (Applications, IT Components, Business Capabilities, Projects), or its `graphql` action for anything advanced. Use integration for bulk LDIF synchronization runs, and surveys to read polls. Prefer calling a tool over guessing, and confirm with the user before any create/update/archive.
Legacy AI Knowledge agents (no native MCP picker): add the connector under Advanced > Tools > MCP and paste the MCP Endpoint URL. The agent still has to be allowlisted in the config app and its identity propagated so the connector can read its agent_id.

Available Tools

Each tool takes an action argument selecting the concrete operation, plus the per-action parameters.
ToolDescription
factSheetsEnterprise Architecture fact sheets (Pathfinder GraphQL). Actions: search, get, create, update, archive, graphql (raw query passthrough).
integrationIntegration API (bulk LDIF import/export). Actions: startRun, runStatus, runResults, listRunStatuses, listProcessors.
surveysSurveys / polls (Poll v2 API). Actions: list, get, listRuns, results.

Output Formats

Every tool accepts an outputFormat argument that controls the MCP response shape:
  • verbose (default) — human-readable text optimized for LLM consumption
  • structured — concise machine-readable JSON in structuredContent
  • both — the structured payload, with its JSON also rendered as text

Tool Details

{
  "name": "factSheets",
  "arguments": {
    "action": "search",
    "factSheetType": "Application",
    "fullTextSearch": "CRM",
    "first": 25
  }
}
ParameterRequiredDescription
actionYesOne of search, get, create, update, archive, graphql.
factSheetTypeNoFilter on one type (Application, ITComponent, BusinessCapability, Project, …).
fullTextSearchNoFull-text term.
first / afterNoPage size (max 100, default 50) and pagination cursor (pageInfo.endCursor).
filterNoRaw FactSheetFilter { facetFilters:[{facetKey,operator,keys}], fullTextSearch, ids }.

factSheets — create

{
  "name": "factSheets",
  "arguments": {
    "action": "create",
    "name": "Billing Service",
    "type": "Application",
    "patches": [
      { "op": "replace", "path": "/description", "value": "Handles invoicing" }
    ],
    "validateOnly": false
  }
}
ParameterRequiredDescription
actionYescreate.
nameYesFact sheet display name.
typeYesFact sheet type (e.g. Application).
patchesNoJSON-patch ops { op: add|replace|remove, path: "/field", value } to set fields.
validateOnlyNoDry-run if true.

integration — startRun

{
  "name": "integration",
  "arguments": {
    "action": "startRun",
    "body": {
      "connectorType": "myConnector",
      "connectorId": "id-123",
      "connectorVersion": "1.0.0",
      "processingDirection": "inbound",
      "processingMode": "partial",
      "content": []
    }
  }
}
ParameterRequiredDescription
actionYesOne of startRun, runStatus, runResults, listRunStatuses, listProcessors.
bodyFor startRunThe LDIF run payload { connectorType, connectorId, connectorVersion, processingDirection: inbound|outbound, processingMode, content }.
idFor runStatus/runResultsSynchronization run id.

surveys — list

{
  "name": "surveys",
  "arguments": {
    "action": "list",
    "page": 0,
    "size": 50,
    "search": "architecture review"
  }
}
ParameterRequiredDescription
actionYesOne of list, get, listRuns, results.
pollIdFor get/listRunsPoll id.
pollRunIdFor resultsPoll run id.
page / size / sort / searchNoPagination, ordering and (for list) a search term. size max 100.

Error Handling

HTTP codeMeaning
400Bad request — invalid parameters, malformed GraphQL document, or an invalid LDIF/patch body.
401Authentication failed — the LeanIX API token / access token is missing, invalid or expired.
403Forbidden — the LeanIX technical user lacks permission for the requested resource.
404Not found — the fact sheet, run, poll or poll run id does not exist or is not visible to the user.
429Rate limit exceeded — wait and retry.
500SAP LeanIX server error — transient; retry shortly.

Common Issues

“This agent is not authorized to use this connector” — The calling agent is not in the allowlist. Open the configuration app → Authorized agents → tick this agent (or enable Allow all agents) and Save. “The calling agent could not be identified” — The MCP capability Scope does not declare agent_id, so Agent Factory never injects the agent identity. Set the Scope to context_id,agent_id,user_id on the capability, then allow the agent in the config app. “SAP LeanIX is not configured” — No API token / instance URL set. Open the configuration app and provide the LeanIX API token (or access token) and instance URL (e.g. https://eu.leanix.net). “SAP LeanIX rejected the API token” — The token is wrong or revoked, or the instance URL points at the wrong workspace. Re-generate the token under Administration > Technical Users and re-paste it in the config app. “SAP LeanIX token endpoint temporarily unavailable” — A transient outage at the mtm token endpoint. Retry shortly; no reconfiguration is needed. GraphQL returns partial data with warnings — The Pathfinder API can return permission-filtered results: a data payload alongside non-fatal errors. The connector treats errors as fatal only when no data came back. If a field is missing, check the technical user’s permissions on that fact sheet type.

External Resources

SAP LeanIX Developer Docs

Official reference for the Pathfinder GraphQL, Integration API and Poll APIs.

Pathfinder GraphQL API

The GraphQL schema behind the fact-sheet operations and the graphql passthrough.

Tool Agents

Learn how Agent Factory agents consume MCP tools in Prisme.ai.