CDS pluginCDS plugintypeInstalls into a CAP project and extends the runtime. CAP loads it through cds.requires or the plugin hook.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

a2a-plugin

Exposes an annotated CDS service as an Agent-to-Agent protocol agent — @a2a opts the service in, @a2a.Skill declares what it offers, and an agent handler answers.

Both annotations are required and a service without @a2a is ignored entirely, so the exposed surface is opt-in per service rather than derived from the whole model. It is the A2A counterpart to the MCP plugins: same question, different protocol, and the one the Architecture Center names for agent-to-agent collaboration.

Facts

Latestv0.2.0ReleasedLicenceApache-2.0

Where it sits

Lives in
Provides
Agent toolingCAPAgent toolingcapabilityBuilding an agent into your own application — the tools it may call, the state it keeps between turns, and the framework it runs in. Distinct from MCP servers, which expose an application to somebody else's agent, and from agent guidance, which is knowledge handed to a coding agent.Tool governanceCAPTool governancecapabilityControlling what an agent may call, with which authorisations, and leaving an audit trail of what it did. The authorisation question that MCP exposure raises but does not answer.
Flavors
Node.jsfrom its runtime
Requires
@sap/cds^9@sap/cdsartifactThe peer range, as published.

Who is behind it

niklashaas

Before choosing this

Conditions

LicenceSAP Developer License Agreement 3.2 CAP§ 1, 2, 3A cds-plugin is used with SAP CAP materials, or an artifact is explicitly identified as a CAP plugin or application.
  • § 1 License. Productive customer applications are limited to SAP BTP or another SAP-licensed platform, and mass extraction to a non-SAP product is restricted except where solely required for SAP interoperability.
  • § 2 Intellectual Property. The agreement retains SAP's rights in the covered materials and limits making APIs, tools or software available to third parties, while preserving ownership of customer applications subject to SAP's underlying rights.
  • § 3 Artificial Intelligence Training. The agreement prohibits use of the covered materials and customer applications for training artificial-intelligence models or systems.
SAP Developer License Agreement 3.2 CAP →
PracticalFunctional boundary

No public repository is declared on the package, so the README is the documentation.

PolicySAP API Policy 4.2026a§ 2.2.2from Agent toolingAn agent built into an application reaches SAP Application APIs, whether directly or through tools generated from a service that proxies them.
  • § 2.2.2 AI call sequences and data extraction. Outside SAP-endorsed architectures, data services or expressly identified pathways, the policy prohibits specified agentic API use and systematic or large-scale extraction.

capire's own guide states that CAP-level agents are intended only for exposing custom CAP application services, and names section 2.2.2 for the agentic-access provisions. Check which endpoints the agent's tools end up calling, and consult SAP's reference architectures for the endorsed routes.

SAP API Policy 4.2026a →

What it declares

Every artifact

Type
CDS plugin
Origin
Independently maintained
Runtime
Node.js

As a CDS plugin

Declared for
^9
Distributed through
npm

Tasks this contributes to1Beta

Answer a user's question inside the applicationSomeone using the application asks in plain words and the application answers from its own services, with the agent running inside the deployed application rather than in the asker's own AI client.Node.js, JavaAssessed, not knownA2A exposure for an annotated service
What it does

The entry records that @a2a opts a service in and an agent handler answers, which would place it on this outcome, but nothing was retrieved on 2026-10-15 to say what the handler is given or what runs the loop.

Remaining work

Read the package's own documentation. npm answered 403 to the one address the entry carries and the package declares no public repository, so the README could not be reached in this pass.

All options on the Agent tooling page →

Connections2

Install

npm add a2a-plugin

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from a2a-plugin@0.2.0 under Apache-2.0, read
a2a-plugin@0.2.0/README.mdOn npm

a2a-plugin

A CAP plugin that automatically exposes annotated CDS services as A2A (Agent-to-Agent protocol) agents.

Installation

npm add a2a-plugin

CAP activates the plugin automatically via the cds.plugin flag.

Usage

1. Annotate your CDS service

Both @a2a and @a2a.Skill are required. @a2a opts the service into the A2A protocol; without it the plugin ignores the service entirely.

@a2a.Skill: {
    id:          'my-skill',
    name:        'My Skill',
    description: 'Does something useful for an LLM caller.'
}
@a2a
service MyService {}
2. Implement the agent handler
import cds from '@sap/cds';
import { AgentRequest, getEventBus } from 'a2a-plugin/lib/types';

export default class MyService extends cds.ApplicationService {
    async init() {
        this.on('agent', async (req: AgentRequest) => {
            // Optional: publish an intermediate status update
            getEventBus()?.publish({
                kind: 'status-update',
                contextId: req.data.contextId,
                taskId:    req.data.taskId,
                final:     false,
                status:    { state: 'working' },
            });

            return 'Hello from my CAP agent!';
        });
        return super.init();
    }
}

Endpoints

The plugin mounts the following routes at /a2a/<service-path>:

RouteDescription
GET .well-known/agent.jsonAgent card (A2A discovery)
POST /jsonrpcJSON-RPC 2.0 transport
* /rest/*HTTP+JSON REST transport

Customising execution lifecycle

By default the plugin creates a CAPAgentExecutor internally and dispatches to your agent handler. If you need control over the full execution lifecycle — custom error handling, pre/post logic, different transport behaviour — extend CAPAgentService instead of cds.ApplicationService:

import { ExecutionEventBus, RequestContext } from '@a2a-js/sdk/server';
import { AgentRequest, CAPAgentService } from 'a2a-plugin/lib/types';

export default class MyService extends CAPAgentService {

    async execute(requestContext: RequestContext, eventBus: ExecutionEventBus): Promise<void> {
        // pre-execution logic
        await super.execute(requestContext, eventBus);
        // post-execution logic
    }

    async init() {
        this.on('agent', async (req: AgentRequest) => {
            return 'Hello from my CAP agent!';
        });
        return super.init();
    }
}

CAPAgentService extends cds.ApplicationService and implements the A2A AgentExecutor interface. When the plugin detects that the service already satisfies AgentExecutor, it uses it directly as the executor — no separate internal executor is created. Override cancelTask the same way to customise task cancellation.

Services that extend plain cds.ApplicationService continue to work exactly as before.

API

CAPAgentService
import { CAPAgentService } from 'a2a-plugin/lib/types';

Base class combining cds.ApplicationService with the A2A AgentExecutor interface. Override execute and/or cancelTask to customise the execution lifecycle. Both methods are regular prototype methods so super calls work normally.

getEventBus(): ExecutionEventBus | undefined
import { getEventBus } from 'a2a-plugin/lib/types';

Returns the ExecutionEventBus for the currently running A2A task. Only available inside an agent handler. Use it to publish streaming intermediate status updates back to the client.

AgentRequest
import { AgentRequest } from 'a2a-plugin/lib/types';

Typed alias for cds.Request<RequestContext>. Gives typed access to req.data.taskId, req.data.contextId, and req.data.userMessage.

Skill annotation reference

AnnotationTypeRequiredDescription
@a2a.Skill.idString✓Unique skill identifier
@a2a.Skill.nameString✓Human-readable name
@a2a.Skill.descriptionString✓Skill description for LLM prompting
@a2a.Skill.tags[String]Categorisation tags
@a2a.Skill.examples[String]Example input queries
@a2a.Skill.inputModes[String]Accepted MIME types (default: ["text/plain"])
@a2a.Skill.outputModes[String]Produced MIME types (default: ["text/plain"])

Input mapping

The req.data in the agent handler is the full A2A RequestContext. The plugin also attempts to extract a plain text value from the incoming message:

  • If the request has a DataPart whose body can be parsed as JSON, it is spread into req.data.
  • Otherwise the first text content of the message is mapped to the first String-typed action parameter.

Security

The adapter uses the authentication method configured for the CAP service.

License

Apache-2.0

Apache-2.0, read

History

Latest

v0.1.0-beta.0

Features 10

Notes

Initial beta release.

Added
  • CAP protocol adapter for the A2A (Agent-to-Agent) protocol
  • Automatic agent registration for @a2a.Skill-annotated CDS services
  • JSON-RPC 2.0 transport (POST /a2a/jsonrpc)
  • HTTP+JSON REST transport (/a2a/rest/*)
  • Dynamic agent card generation with correct URLs (GET /a2a/.well-known/agent.json)
  • getEventBus() export for publishing streaming status updates from CAP handlers
  • AgentRequest type for typed access to req.data inside agent handlers
  • Input mapping: DataPart JSON → CDS req.data, text part → first String parameter
  • Output mapping: CAP action return value → A2A message
  • Task cancellation support via cancelTask
14downloads per week, npm
Weekly downloads for a2a-plugin26 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 14.20 Apr – 26 Apr: 327 Apr – 3 May: 34 May – 10 May: 511 May – 17 May: 418 May – 24 May: 13225 May – 31 May: 5191 Jun – 7 Jun: 518 Jun – 14 Jun: 5515 Jun – 21 Jun: 1122 Jun – 28 Jun: 1329 Jun – 5 Jul: 176 Jul – 12 Jul: 2013 Jul – 19 Jul: 520 Jul – 26 Jul: 1727 Jul – 2 Aug: 33 Aug – 9 Aug: 610 Aug – 16 Aug: 1917 Aug – 23 Aug: 024 Aug – 30 Aug: 1731 Aug – 6 Sept: 147 Sept – 13 Sept: 1214 Sept – 20 Sept: 721 Sept – 27 Sept: 428 Sept – 4 Oct: 75 Oct – 11 Oct: 012 Oct – 18 Oct: 14

Others providing20

Agent tooling
  1. com.sap.cds:cds-adapter-agentA2A adapter turning a CAP Java service into an LLM-backed agentfrom CAP
  2. @cap-js/agentsCDS plugin for building agents inside a CAP servicefrom CAP
  3. cap-agent-ui5-webuiUI5 web interface for an agent built in a CAP servicefrom CAP
  4. @mi8y/cap-agents-memoryLangGraph Store keeping agent memory as CDS entitiesfrom CAP
  5. @mi8y/cap-agents-sdm-backendDeep Agents filesystem over an SAP Document Management repositoryfrom CAP
  6. @mi8y/cds-langgraph-persistenceLangGraph checkpointer backed by CDS for CAP agentsfrom CAP
  7. cds-agentsToolkit turning a CAP service into tools for agent frameworksfrom CAP
  8. Joule Studio, classic editionLow-code SAP Build capability for custom Joule skills and agentsfrom BTP/BAIP
  9. @sap/joule-studio-cliCLI for Joule digital assistants and Joule Studio solutionsfrom BTP/BAIP
  10. Joule StudioSAP's managed environment for building custom agents and workflowsfrom Across stacks
  11. @sap/joule-work-dev-cli-early-adoptersPro-code CLI for building and deploying Joule Studio solutionsfrom BTP/BAIP
  12. SAP JouleSAP's AI engagement layer across SAP applicationsfrom BTP/BAIP
  13. @saptarishi/cds-plugin-llmCAP service kind putting eleven model providers behind one APIfrom CAP
Tool governance
  1. arc-mcp-hubHub on SAP BTP putting several arc-1 instances behind one loginfrom BTP/BAIP
  2. SuperClaude for SAPClaude Code plugin with an ABAP MCP server and write guardsfrom ABAP
  3. API ManagementAPI proxies with security and traffic policies and Developer Hubfrom BTP/BAIP
  4. bw-modeling-mcpMCP server for BW/4HANA modelling objectsfrom BTP/BAIP
  5. Maherd18/sap-mcp-serverPolicy-checked MCP server for ABAP development over ADTfrom ABAP
  6. SAP API Policy Evidence SkillSkill assessing API usage against the SAP API Policyfrom BTP/BAIP
  7. cds-agentsToolkit turning a CAP service into tools for agent frameworksfrom CAP
  8. pyrfc-mcpMCP server calling RFC-enabled function modules behind an allowlistfrom ABAP

Details

Sources3
npm registrydiscovered here, keywords:cdschecked
npm registry, a2a-pluginversion, releases, installschecked
README.mdquoted, and what the entry declareschecked

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
runtimesnode
declared for^9
latestv0.2.0
first release
releases and cadence6, ~0d median
discovered vianpm registry · keywords:cds
first seen in the atlas
ecosystem and domaincap, ai-and-agents
History in the atlas1
  1. First seen.
For your agent