CAP V2 Case MCP
Provides integration with SAP Sales Cloud V2 case management, allowing listing, retrieving, creating, and updating cases.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CAP V2 Case MCPShow me all open cases from SAP Sales Cloud V2"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CAP V2 Case MCP β SAP Sales Cloud V2 Case Integration
A SAP CAP (Cloud Application Programming Model) project that exposes SAP Sales Cloud V2 (C4C) case management operations as an OData V4 + MCP dual-protocol service.
π Architecture Overview
Client (OData V4 / MCP)
β
βΌ
βββββββββββββββββββββββββββ
β CaseServices (CAP) β β srv/services.cds + srv/services.js
β /odata/v4/case-servicesβ
β β
β listCases() β
β getCaseById() β
β createCase() β
β patchCase() β
ββββββββββββββ¬βββββββββββββ
β c4c.send() β HTTP REST
βΌ
βββββββββββββββββββββββββββ
β SAP Sales Cloud V2 β β REST API
β /sap/c4c/api/v1/ β
β case-service/cases β
βββββββββββββββββββββββββββRelated MCP server: SAP CPI MCP Server
ποΈ Project Structure
File / Folder | Purpose |
| CAP service definition β public API contract |
| CAP service implementation β handler logic |
| Auto-generated CDS model from |
| Original OpenAPI spec from SAP Sales Cloud V2 |
| Remote service binding β credentials & kind |
π Key Concepts
1. Dual Protocol β OData V4 + MCP
The service is annotated with both protocols:
annotate CaseServices with @protocol: ['odata-v4', 'mcp'];This means the same service is reachable as an OData V4 endpoint and as an MCP (Model Context Protocol) tool β usable by AI agents.
2. External Service Import
The remote SAP Sales Cloud V2 API was imported using:
cds import SalesSvcCloudV2_case.json --as cdsThis generates SalesSvcCloudV2_case.cds β a CDS description of the remote REST API. It is used as documentation/metadata only, not invoked by name.
3. kind: "rest" β Not OData
The remote service is bound as a plain REST adapter in package.json:
"SalesSvcCloudV2_case": {
"kind": "rest",
"model": "srv/external/SalesSvcCloudV2_case",
"service": "Case.Service"
}kind: "rest"β CAP uses an HTTP client, not an OData clientservice: "Case.Service"β maps the requires key to the actual service definition inside the CDS model (namespace ![Case]; service Service {})Because it is REST (not OData), there are no entities β
c4c.entitiesis empty
4. c4c.send() β Why Not SELECT.from()
Method | Use when |
| Remote service has OData entities |
| Remote service is REST with functions/actions only |
Since SalesSvcCloudV2_case.cds defines only functions (no entities), c4c.send() is used to make a direct HTTP call to the remote path annotated with @openapi.path.
5. Handler Registration & Service Name Matching
CAP wires the JS class to the CDS service via the export key β it must match the CDS service name exactly:
// services.js
module.exports = { CaseServices: CaseService };
// β must match service name in services.cdsHandlers are registered inside init() using the exact function/action name from services.cds:
this.on("listCases", async (req) => { ... });
// β must match function name in services.cdsπ Operations
Operation | Type | HTTP | Remote Path |
| function |
|
|
| function |
|
|
| action |
|
|
| action |
|
|
βΆοΈ Running Locally
npm install
cds watchService available at: http://localhost:4004/odata/v4/case-services
π References
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI agents query data and act across all your business apps via MCP.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
AI agent platform: manage leads, conversations, bots, calendar and CRM via MCP.
Build and manage AI-native customer support agents from Claude or any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Salesforce data and services via custom MCP tools, including account analytics, opportunity queries, case creation, and AI agent invocation.4-
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with SAP Cloud Integration (CPI) by exposing CPI APIs as MCP tools for inspecting metadata, runtime artifacts, message logs, and failed messages.3-
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to view SAP production orders, answer questions, and post goods receipts by integrating with SAP backend through MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables an AI to perform customer support workflows by looking up customers, retrieving orders, and creating support tickets through MCP tools.2 npmX11 no permit persons clause