Expose S/4HANA Cloud OData API as an MCP Server via CAP Node.js
A CAP Node.js service imports the S/4HANA Cloud Outbound Delivery OData v2 API's EDMX metadata with cds import, proxies its reads and a custom createDelivery action against it, and annotates the service @protocol: ['odata-v4', 'mcp'] with @cap-js/mcp@cap-js/mcpA CAP plugin that serves an @mcp-annotated service over MCP with three generated tools, describe, query and call_action, and writes its endpoint into the local agent's configuration in development.sap official, cap's per_action_tool setting on, so the custom action gets its own MCP tool rather than one generic call_action. It tests the result with raw JSON-RPC tools/list and tools/call requests before deploying to SAP BTP, Cloud Foundry RuntimeSAP BTP, Cloud Foundry RuntimeThe Cloud Foundry runtime of SAP BTP: memory for applications in a Cloud Foundry org, run from SAP's Java, Node.js and Python buildpacks or community buildpacks and managed with the standard Cloud Foundry tools.sap official, btp.
Where it sits
Who is behind it
Properties
About this work
For mcp-servers
Details
Graph
Source
History
- Entered the atlasDiscovered via SAP Community · btp-tag.
For your agent
- Ref
content:expose-s-4hana-cloud-odata-api-as-an-mcp-server-via-cap-node-js-2- JSON
- /content/expose-s-4hana-cloud-odata-api-as-an-mcp-server-via-cap-node-js-2.json
- MCP
- Connecting an agent