Stellt SAP Cloud Application Programming Model (CAP) Services als Tools für KI-Agenten bereit, die über das Model Context Protocol konsumiert werden können.
Auch bekannt als cap-js/mcp, @cap-js/mcp
- Stars
- 22
- Tools
- —
- Downloads, 30 Tage
- 26.023
- Neueste Version
- —
- Letzter Commit
- 13. Nov. 2026
- Lizenz
- Apache-2.0
Was ist CAP Plugin for MCP?
CAP Plugin for ist ein MCP server. Stellt SAP Cloud Application Programming Model (CAP) Services als Tools für KI-Agenten bereit, die über das Model Context Protocol konsumiert werden können.
Zusammenfassung generiert aus dem README des Projekts
Über CAP Plugin for MCP server
Dieser Protokoll-Adapter ermöglicht es Entwicklern, SAP Cloud Application Programming Model (CAP) Services als Tools für KI-Agenten bereitzustellen. Durch die Nutzung des Model Context Protocol kann ein Agent über eine standardisierte Schnittstelle direkt mit CAP Services interagieren. Dieses Setup ist für Entwickler im SAP-Ökosystem konzipiert, die ihre bestehende Business Logic mit agentischen Workflows verknüpfen möchten.
Die Konfiguration erfolgt in der package.json unter dem Key cds.mcp. Nutzer können steuern, wie Tools dem Client präsentiert werden, indem sie das per_action_tool Flag nutzen, um Actions und Functions zu trennen, oder das prefix Flag verwenden, um Namenskollisionen zwischen verschiedenen Services zu vermeiden. Der Server erlaubt zudem die Wahl zwischen cql und cqn Formaten für Query-Inputs. Entwickler können Agenten durch die @mcp.instructions Annotation auf ihren Services spezifische Anweisungen geben, die sogar Internationalisierungs-Referenzen enthalten können.
Was du damit machen kannst
- 1Vermeidung von Tool-NamenskollisionenEin KI-Client, der mit mehreren Servern verbunden ist, kann die Services unterscheiden, indem er das Prefixing für Namen aktiviert.
- 2Anpassung des Agenten-VerhaltensDu kannst einem KI-Agenten spezifische Anweisungen geben, um zu steuern, wie er deinen Produktkatalog durchsucht.
- 3Granulare Tool-BereitstellungEin Entwickler kann entscheiden, jede einzelne Action und Funktion als ein eigenes, einzigartiges Tool für den Agenten bereitzustellen.
- 4Flexible Query-FormatierungNutzer können das Input-Format für Queries zwischen strukturiertem CQN und CQL SELECT Statements wechseln.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du CAP Plugin for MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenCAP Plugin for MCP in Claude Code installieren
$ claude mcp add mcp -- npx -y @cap-js/mcpCAP Plugin for MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cap-js/mcp"
]
}
}
}CAP Plugin for MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cap-js/mcp"
]
}
}
}CAP Plugin for MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@cap-js/mcp"]}'CAP Plugin for MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cap-js/mcp"
]
}
}
}CAP Plugin for MCP in Codex installieren
$ codex mcp add mcp -- npx -y @cap-js/mcpCAP Plugin for MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.mcp] command = "npx" args = ["-y", "@cap-js/mcp"]
CAP Plugin for MCP in Gemini CLI installieren
$ gemini mcp add -s user mcp npx -- -y @cap-js/mcpCAP Plugin for MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cap-js/mcp"
]
}
}
}Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarcap-js/mcp is public and reachablegithub.com/cap-js/mcp ↗Bestanden
- Paket nennt dieses Repository als Quelle@cap-js/mcp names cap-js/mcp as sourcenpmjs.com/package/@cap-js/mcp ↗Bestanden
- Build-Provenienz (Sigstore-Attestierung)Sigstore attestation for @cap-js/mcpnpmjs.com/package/@cap-js/mcp/v/1.5.0#provenance ↗Bestanden
- Open Source Lizenz (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-11-13github.com/cap-js/mcp ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from @cap-js/mcpBestanden
- Keine kritischen Advisories im Paket oder seinen AbhängigkeitenNicht geprüft
- Keine versteckten Anweisungen an das Modell0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNicht geprüft
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenAbout this project
This is a protocol adapter for the Model Context Protocol to expose CAP services for agent consumption. For more information, check the official documentation.
[!IMPORTANT] SAP API Policy Applies
The SAP API Policy remains applicable even when exposing data via MCP. Before exposing any SAP service or data through an MCP endpoint, ensure your use case complies with the SAP API Policy and any applicable licensing terms.
Feature Flags
All configuration lives under cds.mcp in your package.json:
{
"cds": {
"mcp": {
"per_action_tool": false,
"prefix": false,
"format": "cql"
}
}
}
| Flag | Default | Description |
|---|---|---|
per_action_tool |
false |
Expose each action/function as its own dedicated tool instead of the generic call tool. |
prefix |
false |
Prefix tool names with the service name to avoid collisions when a MCP client connects to multiple MCP servers (e.g. CatalogService-query, AdminService-query). |
format |
"cql" |
Change the query input format. "cqn" uses structured CQN input. "cql" uses CQL SELECT statement |
For all other configuration options, refer to the official documentation.
Custom Server Instructions
You can customize the MCP server instructions sent to agents during initialization using the @mcp.instructions annotation:
annotate MyService with @mcp.instructions: 'Use describe to explore the product catalog. Use query to search products by name or category.';
If not set, a default instruction is used. The annotation also supports i18n references ({i18n>key}).
Support, Feedback, Contributing
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
Security / Disclosure
If you find any bug that may be a security problem, please follow the instructions found in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
Code of Conduct
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Licensing
Copyright 2026 SAP SE or an SAP affiliate company and cap-js/mcp contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.
CAP Plugin for MCP Fragen
Wie füge ich CAP Plugin for MCP zu Claude Code hinzu?
Führe claude mcp add mcp -- npx -y @cap-js/mcp in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich CAP Plugin for MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Wie kann ich jede Action oder Funktion als dediziertes Tool bereitstellen?
Setze das per_action_tool Flag in deiner package.json Konfiguration unter cds.mcp auf true.
Kann ich die Anweisungen an den KI-Agenten anpassen?
Ja, du kannst die @mcp.instructions Annotation in deinem CDS-Code verwenden, um benutzerdefinierte Anweisungen oder i18n-Referenzen zu hinterlegen.
Welche Query-Formate werden unterstützt?
Der Server unterstützt sowohl CQL (Standard) als auch CQN (strukturiertes) Input-Format.
Wie verhindere ich Namenskollisionen bei Tools, wenn ich mehrere Server verbinde?
Aktiviere das prefix Flag, um die Tool-Namen mit dem jeweiligen Service-Namen zu versehen.