能力标签
MCP插件
🔌
MCP工具

MCP插件

基于 TypeScript · 让 AI 助手直接操作你的系统与工具
英文名:cap-mcp-plugin
⭐ 62 Stars 🍴 20 Forks 💻 TypeScript 📄 NOASSERTION 🏷 AI 7.5分
7.5AI 综合评分
aicapmcptypescript
⚙️ 配置说明
✦ AI Skill Hub 推荐

AI Skill Hub 推荐使用:MCP插件 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

MCP插件 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 MCP插件,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。MCP插件 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 MCP插件 评为 AI 评分 7.5 分,属于同类工具中的优质选择。

📋 工具概览

MCP服务器插件,为CAP NodeJS提供服务

MCP插件 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 62
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
NOASSERTION
AI 综合评分
7.5 分
工具类型
MCP工具
Forks
20

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

MCP服务器插件,为CAP NodeJS提供服务

MCP插件 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 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
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 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 生效
📑 README 深度解析 真实文档 完整度 82/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

🎯 Features

This plugin transforms your annotated CAP services into a fully functional MCP server that can be consumed by any MCP-compatible AI client.

  • 📊 Resources: Expose CAP entities as MCP resources with OData v4 query capabilities
  • 🔧 Tools: Convert CAP functions and actions into executable MCP tools
  • 🧩 Entity Wrappers (optional): Expose CAP entities as tools (query, get, and optionally create, update) for LLM tool use while keeping resources intact
  • 🔗 Deep Insert: Create parent and child entities in a single operation with @mcp.deepInsert annotation
  • 💡 Prompts: Define reusable prompt templates for AI interactions
  • ⚡ Elicitation: Request user confirmation or input parameters before tool execution
  • 🔄 Auto-generation: Automatically creates MCP server endpoints based on annotations
  • ⚙️ Flexible Configuration: Support for custom parameter sets and descriptions

Automatic Features

The plugin automatically:

  • Scans your CAP service definitions for @mcp annotations
  • Generates appropriate MCP resources, tools, and prompts
  • Creates ResourceTemplates with proper OData v4 query parameter support
  • Sets up HTTP endpoints at /mcp and /mcp/health
  • Manages MCP session lifecycle and cleanup

Prerequisites

  • Node.js: Version 18 or higher
  • SAP CAP: Version 9 or higher
  • Express: Version 5 or higher
  • TypeScript: Optional but recommended

🚀 Quick Setup

Want to read the full documentation? Find it here

Step 1: Install the Plugin

npm install @gavdi/cap-mcp

The plugin follows CAP's standard plugin architecture and will automatically integrate with your CAP application upon installation.

The Setup

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;
}

📝 Usage

🌟 Example AI Interactions

Once configured, AI agents can interact with your CAP data naturally; Let's take an example from the standard CAP Bookshop:

  • "Show me the top 5 books with highest stock" → Queries Books resource with $orderby=stock desc&$top=5
  • "Find authors whose names contain 'Smith'" → Uses $filter=contains(name,'Smith') on Authors resource
  • "Get the current stock for book ID 123" → Calls the get-stock tool for the specified book
  • "Give me a book recommendation" → Executes the book-recommendation tool

While this shows how this example CDS annotation works, the possibilities are endless and only you and your data sets the boundaries.

📋 Business Case Example: Workflow Approval Management

Step 2: Configure Your CAP Application

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"
    }
  }
}

🔧 Configuration

Plugin Configuration

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
        }
      }
    }
  }
}

Configuration Options

OptionTypeDefaultDescription
namestringpackage.json nameMCP server name
versionstringpackage.json versionMCP server version
auth"inherit" \"none""inherit"Authentication mode
instructionsstringnullMCP server instructions for agents
enable_model_descriptionbooleantrueDetermines whether the MCP server should include the model description tool
capabilities.resources.listChangedbooleantrueEnable resource list change notifications
capabilities.resources.subscribebooleanfalseEnable resource subscriptions
capabilities.tools.listChangedbooleantrueEnable tool list change notifications
capabilities.prompts.listChangedbooleantrueEnable prompt list change notifications

Authentication Configuration

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.

Authentication Flow

  1. MCP client connects to /mcp endpoint
  2. If the authentication style used is OAuth, the OAuth flow will be executed
  3. CAP authentication middleware validates credentials (if auth: "inherit")
  4. MCP session established with authenticated user context
  5. All MCP operations (resources, tools, prompts) inherit the authenticated user's permissions

Check if MCP endpoint is accessible

curl http://localhost:4004/mcp/health

CAP MCP Plugin - AI With Ease

NPM Version NPM License NPM Downloads GitHub commits since latest release

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.

CAP-MCP Plugin

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.

Test specific components

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

Or run integration tests

npm test -- --testPathPattern=integration ```

🔧 Troubleshooting

🇨🇳 中文文档镜像 AI 翻译 2026-06-01
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

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 进行开发以获得更好的类型支持。

🛠 安装步骤(Docker/pip/源码)

安装过程非常简单,遵循 CAP 标准插件架构。您只需在项目根目录下运行 `npm install @gavdi/cap-mcp` 即可完成安装。安装完成后,插件将自动集成到您的 CAP 应用中,无需复杂的额外配置即可开始使用。

🚀 使用教程

配置完成后,AI Agent 可以通过自然语言与您的 CAP 数据进行交互。例如,在 Bookshop 场景下,用户可以直接询问“显示库存最高的 5 本书”,AI 会自动将其转化为带有 $orderby 和 $top 参数的 OData 查询;或者通过调用特定的 function 来执行业务逻辑(如审批工作流)。通过 @mcp 注解,您可以精确控制哪些服务可以被 AI 访问。

⚙️ 配置说明(含 MCP / env)

您可以通过修改 `package.json` 或 `.cdsrc` 文件来配置 MCP 插件。配置项包括服务器名称 (name)、版本 (version)、身份验证模式 (auth,支持 inherit) 以及为 AI Agent 提供的指令 (instructions)。此外,您还可以通过 capabilities 细粒度地控制 resources 和 tools 的变更监听(listChanged)等高级功能。

🔌 API 说明

插件会自动在您的 CAP 服务中创建 HTTP 端点。您可以通过访问 `/mcp` 进行交互,并通过 `/mcp/health` 端点来检查 MCP 服务是否在线及运行状态是否正常。可以使用 curl 工具进行快速测试,例如:`curl http://localhost:4004/mcp/health`。

🔄 工作流/模块

cap-mcp-plugin 旨在让“AI 与业务结合”变得轻而易举。它通过将 CAP 的强大建模能力与 MCP 协议相结合,构建了一套从模型定义、注解标注、自动生成到 AI 调用的完整工作流,让开发者能够以最小的开发成本,将企业级业务逻辑转化为 AI 可理解、可操作的能力。

❓ FAQ 摘要

在遇到问题时,您可以根据不同的功能模块进行针对性测试。插件提供了完善的测试套件,支持通过 npm test 命令配合 `--testPathPattern` 参数,分别对注解解析 (annotations)、MCP 功能 (mcp)、安全边界 (security) 以及身份验证 (auth) 进行专项排查与故障排除。

🎯 aiskill88 AI 点评 A 级 2026-06-01

高质量的MCP服务器插件,值得使用

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
cap-mcp-plugin 中文教程cap-mcp-plugin 安装报错怎么办cap-mcp-plugin MCP 配置cap-mcp-plugin Agent 工作流cap-mcp-plugin 与同类工具对比cap-mcp-plugin 最佳实践cap-mcp-plugin 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

cap-mcp-plugin 是一款TypeScript开发的AI辅助工具。开源MCP工具:MCP (Model Context Protocol) server plugin for CAP NodeJS。⭐62 · TypeScript 主要应用场景包括:MCP服务器插件应用。
💡 AI Skill Hub 点评

总体来看,MCP插件 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
📚 深入学习 MCP插件
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 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
🔗 原始来源
🐙 GitHub 仓库  https://github.com/gavdilabs/cap-mcp-plugin

收录时间:2026-06-01 · 更新时间:2026-06-01 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。