- 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.
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).
Platform admin (Governance) — one-time platform setup
Platform admin (Governance) — one-time platform setup
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)
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:The
agent_id in the scope is what lets the connector identify and authorize the calling agent.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).
- Agent builder (Agent Factory)
- Workspace builder (DSUL)
Goal: let an agent you build in Agent Factory query and manage SAP LeanIX through MCP tools.This connector runs in the tenant app-instance context: your agent is identified by the
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).
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.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.
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.
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: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.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 anaction argument selecting the concrete operation, plus the per-action parameters.| Tool | Description |
|---|---|
factSheets | Enterprise Architecture fact sheets (Pathfinder GraphQL). Actions: search, get, create, update, archive, graphql (raw query passthrough). |
integration | Integration API (bulk LDIF import/export). Actions: startRun, runStatus, runResults, listRunStatuses, listProcessors. |
surveys | Surveys / polls (Poll v2 API). Actions: list, get, listRuns, results. |
Output Formats
Every tool accepts anoutputFormat argument that controls the MCP response shape:verbose(default) — human-readable text optimized for LLM consumptionstructured— concise machine-readable JSON instructuredContentboth— the structured payload, with its JSON also rendered as text
Tool Details
factSheets — search
| Parameter | Required | Description |
|---|---|---|
action | Yes | One of search, get, create, update, archive, graphql. |
factSheetType | No | Filter on one type (Application, ITComponent, BusinessCapability, Project, …). |
fullTextSearch | No | Full-text term. |
first / after | No | Page size (max 100, default 50) and pagination cursor (pageInfo.endCursor). |
filter | No | Raw FactSheetFilter { facetFilters:[{facetKey,operator,keys}], fullTextSearch, ids }. |
factSheets — create
| Parameter | Required | Description |
|---|---|---|
action | Yes | create. |
name | Yes | Fact sheet display name. |
type | Yes | Fact sheet type (e.g. Application). |
patches | No | JSON-patch ops { op: add|replace|remove, path: "/field", value } to set fields. |
validateOnly | No | Dry-run if true. |
integration — startRun
| Parameter | Required | Description |
|---|---|---|
action | Yes | One of startRun, runStatus, runResults, listRunStatuses, listProcessors. |
body | For startRun | The LDIF run payload { connectorType, connectorId, connectorVersion, processingDirection: inbound|outbound, processingMode, content }. |
id | For runStatus/runResults | Synchronization run id. |
surveys — list
| Parameter | Required | Description |
|---|---|---|
action | Yes | One of list, get, listRuns, results. |
pollId | For get/listRuns | Poll id. |
pollRunId | For results | Poll run id. |
page / size / sort / search | No | Pagination, ordering and (for list) a search term. size max 100. |
Error Handling
| HTTP code | Meaning |
|---|---|
400 | Bad request — invalid parameters, malformed GraphQL document, or an invalid LDIF/patch body. |
401 | Authentication failed — the LeanIX API token / access token is missing, invalid or expired. |
403 | Forbidden — the LeanIX technical user lacks permission for the requested resource. |
404 | Not found — the fact sheet, run, poll or poll run id does not exist or is not visible to the user. |
429 | Rate limit exceeded — wait and retry. |
500 | SAP 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 declareagent_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.