From 65427c0c4b14091eb7ed621a9db12b4cc3cb1ee7 Mon Sep 17 00:00:00 2001 From: sjvans <30337871+sjvans@users.noreply.github.com> Date: Tue, 22 Sep 2026 13:00:52 +0200 Subject: [PATCH] fix BooksService snippet --- guides/ai/cap-mcp.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/guides/ai/cap-mcp.md b/guides/ai/cap-mcp.md index aa9b54b3d..24a3b4539 100644 --- a/guides/ai/cap-mcp.md +++ b/guides/ai/cap-mcp.md @@ -125,9 +125,9 @@ Instead of annotating an existing service with `@mcp` and exposing all its entit ::: code-group ```cds [srv/mcp-service.cds] -using { CatalogService } from './cat-service'; +using { AdminService } from './admin-service'; -@agent service BookshopService { +@mcp service BooksService { @readonly entity Authors as projection on AdminService.Authors excluding { createdBy, modifiedBy, @@ -139,9 +139,6 @@ using { CatalogService } from './cat-service'; genre.name as genre, currency.name as currency, } - - @agent.hitl - action submitOrder ( book: Books:ID, quantity: Integer ); } ``` ::: @@ -524,4 +521,4 @@ Future versions of the adapter may add support for data changes using CREATE, UP > [!caution] > The CAP MCP adapter must not be used as a gateway or proxy for SAP Application APIs. The adapter is not an SAP-endorsed architecture, data service, or service-specific pathway under section 2.2.2 of the [_SAP API Policy_](https://help.sap.com/docs/business-accelerator-hub/sap-business-accelerator-hub/sap-api-policy) and is not an endorsed mechanism for exposing, proxying, or providing agentic access to SAP Application APIs. -> Any use of SAP Application APIs must be in accordance with the [_SAP API Policy_](https://help.sap.com/docs/business-accelerator-hub/sap-business-accelerator-hub/sap-api-policy). For SAP-endorsed patterns on agentic access to SAP Application APIs, consult the [_SAP Architecture Center_](https://architecture.learning.sap.com/docs/ref-arch/98efa0) reference architectures. \ No newline at end of file +> Any use of SAP Application APIs must be in accordance with the [_SAP API Policy_](https://help.sap.com/docs/business-accelerator-hub/sap-business-accelerator-hub/sap-api-policy). For SAP-endorsed patterns on agentic access to SAP Application APIs, consult the [_SAP Architecture Center_](https://architecture.learning.sap.com/docs/ref-arch/98efa0) reference architectures.