@sap/cds-mtxs
Multitenancy, tenant provisioning and model extensibility for CAP.
Facts
Where it sits
What it declares
Every artifact
- Type
- Package
- Origin
- By SAP
- Runtime
- Node.js
As a package
- Declared for
- >=9
- Where it runs
- does not say
- Distributed through
- does not say
Connections
Turning behaviour on and off per tenant or user at runtime
Serving many tenants from one deployment
Getting a model change into a database that already holds data
Letting a customer extend a running SaaS model per tenant
Multitenancy for CAP Java: tenant lifecycle and per-tenant containers
Download
Install
npm add @sap/cds-mtxsDerived from the package name. No recipe recorded; the README has the configuration.
Learn more
- Custom Business Logic Extensibility in CAP (CDS-Oyster)Custom Business Logic Extensibility in CAP (CDS-Oyster)A Devtoberfest 2026 session walking @sap/cds-oyster — at version 0.55, with 1.0 stated for Q4 — end to end on a multitenant xtravels, from the application developer's side and the extension developer's side. The application developer adds a submit-for-review action to the status flow and opens exactly one surface for custom code: a separate extension service marked as extensible code, holding a no-op validate action and two read-only helper entities, which the host application calls before the status change; nothing else is extensible, because the annotation defaults to false. The extension developer works in a project whose base model came from cds pull, with test data, a server.js and types from @cap-js/cds-typer added so the UI and code completion work, debugs the handler locally and pushes it as an @sap/cds-mtxs extension, after which the next request rejects a travel over the policy limit without a restart — the code having been stored as an annotation in the tenant's model and run in a Rust WebAssembly sandbox with no database connection, whose queries go back to the CAP runtime as CQL strings, which is tenant extensibility extended from fields to logic.published 2026-10-09Nick Josipovic, DJ Adams, YouTube — SAP Developers playlists
- Developing CAP java/node.js mixed mono Multitenant SaaS Applications with Shared DatabaseDeveloping CAP java/node.js mixed mono Multitenant SaaS Applications with Shared DatabaseTwo CAP projects, one Java and one Node.js, in one npm workspace sharing a single tenant database. The interesting part is which sidecar wins: both sub-projects get an MTX sidecar, both have cds.xt.SaasProvisioningService switched off, and a third onboarding project keeps provisioning to itself. Configuration listings rather than prose, and it assumes you already know why you would want this.xuelong, published 2025-01-08xuelong, SAP Community
README
quoted from @sap/cds-mtxs@4.1.1, read@sap/cds-mtxs
Library for multitenancy, feature toggle and extensibility support for the SAP Cloud Application Programming Model (CAP).
History
Features 3, Fixes 13
Features 2, Fixes 8
Features 4, Fixes 4
Fixes 1
Features 1, Changed 1, Fixes 3
Changed 1, Fixes 2
Changed 4, Fixes 1
Fixes 7
Changed 1
Features 1, Changed 2, Fixes 3
Features 1
Fixes 2
Fixes 8
Features 5
Fixes 3
Features 1, Fixes 2
Changed 1, Fixes 1
Features 2, Changed 1, Fixes 4
Changed 1, Fixes 4
Fixes 1
Features 1
Fixes 3
Features 1, Changed 1, Fixes 4
Features 3, Changed 2, Fixes 2
Changed 1, Fixes 6
Fixes 1
Fixes 4
Fixes 1
Features 1, Fixes 2
Features 2, Fixes 1
Changed 2, Fixes 2
Changed 2, Fixes 2
Features 2, Changed 10, Fixes 3
Changed 1, Fixes 1
Fixes 1
Fixes 2
Fixes 2
Fixes 3
Features 3, Fixes 1
Fixes 2
Features 4, Fixes 1
Fixes 2
Features 3, Fixes 3
Fixes 1
Fixes 1
Features 3, Fixes 1
Features 2, Fixes 4
Features 2, Fixes 5
Features 1, Changed 4, Fixes 3
Fixes 4
Fixes 4
Fixes 2
Features 1, Fixes 4
Other 1
Changed 1, Fixes 1
Removed 1, Features 2, Fixes 3
Features 2, Changed 4
Changed 1, Fixes 3
Changed 3, Fixes 2
Features 1, Changed 1, Fixes 2
Features 3, Changed 2, Fixes 3
Features 1, Changed 2, Fixes 3
Features 1, Fixes 2
Fixes 1
Changed 1, Fixes 3
Fixes 3
Changed 2, Fixes 3
Changed 2
Changed 1
Fixes 2
Fixes 3
Features 2, Changed 1
Features 1, Changed 1
Features 1, Fixes 2
Features 6, Changed 2, Fixes 4
Features 3, Fixes 4
Features 2, Changed 1
Changed 1, Fixes 3
Fixes 2
Features 4
Fixes 1
Fixes 3
Changed 1, Fixes 2
Fixes 5
Features 1, Changed 1, Fixes 1
Fixes 4
Fixes 3
Changed 3, Fixes 1
Fixes 3
Fixes 1
Fixes 1
Features 2, Fixes 1
Features 2, Changed 1, Fixes 4
Features 4, Fixes 2
Other 1
Changed 2, Fixes 3
Fixes 3
Fixes 2
Fixes 3
Changed 3
Features 3, Changed 1, Fixes 3
Features 2, Changed 1, Fixes 1
Changed 1
Features 5, Changed 1, Fixes 1
Features 6, Changed 6
Features 1
Changed 1, Fixes 1
Features 1
Features 1
Others providing
- @cap-js-community/common@cap-js-community/commonSix independent features for CAP services in one package: replication cache, migration check, rate limiting, a Redis client broker, a local HTML5 repository and a CDM builder.community org, capSix CAP features in one package, from replication cache to rate limits
- cds-dbmcds-dbmA delta deployment and migration tool for CAP on PostgreSQL that diffs the live schema against a reference schema with Liquibase and applies the change, never dropping tables by default.independent, capDelta deployment and migrations for CAP database adapters
- @quadrio/cds-dbm@quadrio/cds-dbmA published fork of cds-dbm — deploy, load, diff and drop as CDS command-line tasks for relational databases the core does not natively support.independent, capFork of cds-dbm with deploy, load, diff and drop tasks
- @sap/cds@sap/cdsThe CAP Node.js runtime, which compiles the CDS model, serves the services declared in it, answers generic requests before any handler runs, and loads every cds-plugin.sap official, capCAP Node.js runtime
- @sap/hdi-deploy@sap/hdi-deployThe Node.js deployer for SAP HANA Deployment Infrastructure: it writes a database module's design-time files into an HDI container as a delta, and it is what cds deploy runs for SAP HANA.sap official, capNode.js deployer for SAP HANA Deployment Infrastructure containers
- SAP Software-as-a-Service Provisioning serviceSAP Software-as-a-Service Provisioning serviceRegisters a multitenant application so that subaccounts can subscribe to it, and calls the application back on every subscribe and unsubscribe.sap official, btpRegisters a multitenant application for subaccount subscriptions
- com.sap.cds:cds-feature-mtcom.sap.cds:cds-feature-mtThe CAP Java feature that makes a Maven application multitenant aware: tenant lifecycle events, per-tenant database containers, and the wiring to the Node.js MTX sidecar.sap official, capMultitenancy for CAP Java: tenant lifecycle and per-tenant containers
- com.sap.cds:cds-services-bomcom.sap.cds:cds-services-bomThe Maven bill of materials for CAP Java, pinning every com.sap.cds module in a release, from the API and core runtime to the Spring Boot starters and the CQN engine, to the same version.sap official, capMaven bill of materials pinning CAP Java module versions
- @cap-js-community/mtx-tool@cap-js-community/mtx-toolCLI for operating multitenant CAP applications — inspecting, upgrading and repairing tenants across a landscape.community org, capCLI for operating tenants of multitenant CAP applications
- @sap/cds-oyster@sap/cds-oysterRuns tenant-specific extension code inside a WebAssembly sandbox, so a SaaS application can accept custom logic from a customer without running it unguarded.sap official, capWebAssembly sandbox for tenant-specific extension code in CAP
- @sap/cds@sap/cdsThe CAP Node.js runtime, which compiles the CDS model, serves the services declared in it, answers generic requests before any handler runs, and loads every cds-plugin.sap official, capCAP Node.js runtime
- dynamic-external-cds-joindynamic-external-cds-joinA CAP plugin for SaaS extension scenarios that joins external entities with internal tables at query time; its declared repository is not publicly reachable.independent, capCAP plugin joining external entities with internal tables at query
- SAP Feature Flags serviceSAP Feature Flags serviceBoolean and string flags toggled in a dashboard and read by an application at runtime over a binding, with a cache in the client so a flip does not need a deploy or a round-trip per check.sap official, btpBoolean and string flags read by applications at runtime
- com.sap.cds:cds-services-bomcom.sap.cds:cds-services-bomThe Maven bill of materials for CAP Java, pinning every com.sap.cds module in a release, from the API and core runtime to the Spring Boot starters and the CQN engine, to the same version.sap official, capMaven bill of materials pinning CAP Java module versions
- @cap-js-community/feature-toggle-library@cap-js-community/feature-toggle-libraryLive-updatable feature toggles for CAP applications, backed by Redis.community org, capLive-updatable feature toggles for CAP, backed by Redis
- cds-feature-togglecds-feature-toggleA feature-toggle pattern for CAP CDS from before the core had one, sitting at the CDS layer rather than the tenant-extensibility layer of @sap/cds-mtxs feature toggles.independent, capFeature-toggle pattern for CAP CDS
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-cds-mtxs- JSON
- /artifacts/sap-cds-mtxs.json
- MCP
- Connecting an agent