Back to Home
cap-js icon

mcp-server

Verified Safe

by cap-js

Overview

A Model Context Protocol (MCP) server designed to assist AI models in the development of SAP Cloud Application Programming Model (CAP) applications by providing tools for model analysis and documentation search.

Installation

Run Command
npx -y @cap-js/mcp-server

Environment Variables

  • CDS_MCP_REFRESH_MS
  • GLOBAL_AGENT_HTTP_PROXY
  • GLOBAL_AGENT_HTTPS_PROXY

Security Notes

Potential Path Traversal Vulnerability: The `search_model` tool takes a `projectPath` argument, which is then passed to `cds.resolve` and `findCdsFiles`. The current code does not explicitly sanitize `projectPath` against path traversal attempts, meaning a malicious input could potentially lead to arbitrary file system access if `cds.resolve` or underlying Node.js `fs` operations do not sufficiently mitigate this. The `createEmbeddings` function also performs file I/O using an `id` parameter, which could be a path traversal vector if this function were exposed to untrusted input (currently it's internal to `searchMarkdownDocs` which uses a hardcoded ID, and commented as 'not for production'). No obvious hardcoded secrets or 'eval' usage found. External models are downloaded from trusted sources (HuggingFace, cap.cloud.sap).

Similar Servers

Stats

Interest Score48
Security Score7
Cost ClassMedium
Avg Tokens1000
Stars63
Forks11
Last Update2025-12-09

Tags

AI-assisted developmentCAPSAPCode AgentEmbeddings