AI Skill Hub 推荐使用:MCP插件 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
MCP服务器插件,为CAP NodeJS提供服务
MCP插件 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP服务器插件,为CAP NodeJS提供服务
MCP插件 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/gavdilabs/cap-mcp-plugin
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp--": {
"command": "npx",
"args": ["-y", "cap-mcp-plugin"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP插件 执行以下任务... Claude: [自动调用 MCP插件 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp__": {
"command": "npx",
"args": ["-y", "cap-mcp-plugin"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
This plugin transforms your annotated CAP services into a fully functional MCP server that can be consumed by any MCP-compatible AI client.
query, get, and optionally create, update) for LLM tool use while keeping resources intact@mcp.deepInsert annotationThe plugin automatically:
@mcp annotations/mcp and /mcp/healthWant to read the full documentation? Find it here
npm install @gavdi/cap-mcp
The plugin follows CAP's standard plugin architecture and will automatically integrate with your CAP application upon installation.
Your CAP service includes a workflow management system with MCP integration:
service WorkflowService {
@mcp: {
name : 'get-my-pending-approval',
description: 'Fetches workflows awaiting approval by the specified user',
tool : true
}
function getPendingApproval(userId: String) returns array of Workflows;
}
Once configured, AI agents can interact with your CAP data naturally; Let's take an example from the standard CAP Bookshop:
$orderby=stock desc&$top=5$filter=contains(name,'Smith') on Authors resourceget-stock tool for the specified bookbook-recommendation toolWhile this shows how this example CDS annotation works, the possibilities are endless and only you and your data sets the boundaries.
Add MCP configuration to your package.json:
{
"cds": {
"mcp": {
"name": "my-bookshop-mcp",
"auth": "inherit",
"wrap_entities_to_actions": false,
"wrap_entity_modes": ["query", "get"],
"instructions": "MCP server instructions for agents"
}
}
}
Configure the MCP plugin through your CAP application's package.json or .cdsrc file:
{
"cds": {
"mcp": {
"name": "my-mcp-server",
"version": "1.0.0",
"auth": "inherit",
"instructions": "mcp server instructions for agents",
"capabilities": {
"resources": {
"listChanged": true,
"subscribe": false
},
"tools": {
"listChanged": true
},
"prompts": {
"listChanged": true
}
}
}
}
}
| Option | Type | Default | Description | |
|---|---|---|---|---|
name | string | package.json name | MCP server name | |
version | string | package.json version | MCP server version | |
auth | "inherit" \ | "none" | "inherit" | Authentication mode |
instructions | string | null | MCP server instructions for agents | |
enable_model_description | boolean | true | Determines whether the MCP server should include the model description tool | |
capabilities.resources.listChanged | boolean | true | Enable resource list change notifications | |
capabilities.resources.subscribe | boolean | false | Enable resource subscriptions | |
capabilities.tools.listChanged | boolean | true | Enable tool list change notifications | |
capabilities.prompts.listChanged | boolean | true | Enable prompt list change notifications |
The plugin supports two authentication modes:
"inherit" Mode (Default)Uses your CAP application's existing authentication system:
{
"cds": {
"mcp": {
"auth": "inherit"
},
"requires": {
"auth": {
"kind": "xsuaa"
}
}
}
}
"none" Mode (Development/Testing)Disables authentication completely:
{
"cds": {
"mcp": {
"auth": "none"
}
}
}
⚠️ Security Warning: Only use "none" mode in development environments. Never deploy to production without proper authentication.
/mcp endpointauth: "inherit")curl http://localhost:4004/mcp/health
This implementation is based on the Model Context Protocol (MCP) put forward by Anthropic. For more information on MCP, please have a look at their official documentation.
A CAP (Cloud Application Programming) plugin that automatically generates Model Context Protocol (MCP) servers from your CAP services using simple annotations. Transform your CAP OData services into AI-accessible resources, tools, and prompts with minimal configuration.
npm test -- --testPathPattern=annotations # Test annotation parsing npm test -- --testPathPattern=mcp # Test MCP functionality npm test -- --testPathPattern=security # Test security boundaries npm test -- --testPathPattern=auth # Test authentication
npm test -- --testPathPattern=integration ```
cap-mcp-plugin 是一个专为 SAP CAP (Cloud Application Programming) 模型设计的插件。它能够通过简单的注解,自动将您的 CAP 服务转换为功能完备的 MCP (Model Context Protocol) 服务器,使您的 OData 服务能够轻松被各类兼容 MCP 的 AI 客户端(如 Claude)直接调用,实现业务数据与 AI 智能体的无缝对接。
该插件支持将 CAP 实体转换为 MCP Resources,并保留 OData v4 查询能力;同时能将 CAP 的 functions 和 actions 自动转换为可执行的 MCP Tools。此外,它还提供可选的 Entity Wrappers 功能,将实体封装为 query 或 get 工具。插件具备自动化特性,可自动扫描 @mcp 注解、生成对应的 ResourceTemplates,并自动管理 HTTP 端点(/mcp 和 /mcp/health)及 MCP 会话生命周期。
在使用本插件前,请确保您的开发环境满足以下要求:Node.js 版本需在 18 或更高;SAP CAP 版本需在 9 或更高;Express 版本需在 5 或更高。虽然不是强制要求,但推荐使用 TypeScript 进行开发以获得更好的类型支持。
安装过程非常简单,遵循 CAP 标准插件架构。您只需在项目根目录下运行 `npm install @gavdi/cap-mcp` 即可完成安装。安装完成后,插件将自动集成到您的 CAP 应用中,无需复杂的额外配置即可开始使用。
配置完成后,AI Agent 可以通过自然语言与您的 CAP 数据进行交互。例如,在 Bookshop 场景下,用户可以直接询问“显示库存最高的 5 本书”,AI 会自动将其转化为带有 $orderby 和 $top 参数的 OData 查询;或者通过调用特定的 function 来执行业务逻辑(如审批工作流)。通过 @mcp 注解,您可以精确控制哪些服务可以被 AI 访问。
您可以通过修改 `package.json` 或 `.cdsrc` 文件来配置 MCP 插件。配置项包括服务器名称 (name)、版本 (version)、身份验证模式 (auth,支持 inherit) 以及为 AI Agent 提供的指令 (instructions)。此外,您还可以通过 capabilities 细粒度地控制 resources 和 tools 的变更监听(listChanged)等高级功能。
插件会自动在您的 CAP 服务中创建 HTTP 端点。您可以通过访问 `/mcp` 进行交互,并通过 `/mcp/health` 端点来检查 MCP 服务是否在线及运行状态是否正常。可以使用 curl 工具进行快速测试,例如:`curl http://localhost:4004/mcp/health`。
cap-mcp-plugin 旨在让“AI 与业务结合”变得轻而易举。它通过将 CAP 的强大建模能力与 MCP 协议相结合,构建了一套从模型定义、注解标注、自动生成到 AI 调用的完整工作流,让开发者能够以最小的开发成本,将企业级业务逻辑转化为 AI 可理解、可操作的能力。
在遇到问题时,您可以根据不同的功能模块进行针对性测试。插件提供了完善的测试套件,支持通过 npm test 命令配合 `--testPathPattern` 参数,分别对注解解析 (annotations)、MCP 功能 (mcp)、安全边界 (security) 以及身份验证 (auth) 进行专项排查与故障排除。
高质量的MCP服务器插件,值得使用
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
总体来看,MCP插件 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | cap-mcp-plugin |
| 原始描述 | 开源MCP工具:MCP (Model Context Protocol) server plugin for CAP NodeJS。⭐62 · TypeScript |
| Topics | aicapmcptypescript |
| GitHub | https://github.com/gavdilabs/cap-mcp-plugin |
| License | NOASSERTION |
| 语言 | TypeScript |
收录时间:2026-06-01 · 更新时间:2026-06-01 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端