GC

gavdilabs/cap-mcp-plugin

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

61 stars 22 forks 品質 57 トレンド 17NOASSERTION

gavdilabs/cap-mcp-plugin は [https://github.com/gavdilabs/cap-mcp-plugin.] からインポートされた MCP サーバーの候補です

概要

gavdilabs/cap-mcp-plugin は [https://github.com/gavdilabs/cap-mcp-plugin.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

この実装は、Anthropicによって先に進むモデルコンテキストプロトコル(MCP)に基づいています。 MCPの詳細については、公式のドキュメントをご覧ください。

CAP-MCP プラグイン

CAPサービスからモデルコンテキストプロトコル(MCP)サーバーを自動的に生成するCAP(クラウドアプリケーションプログラミング)プラグイン。 CAP ODataサービスをAIアクセス可能なリソース、ツール、およびプロンプトに最小限の設定で変換します。

CAPアプリケーション用のMCPのパワー

モデルコンテキストプロトコルは、企業データとAIエージェントのギャップを埋めます。 MCP を CAP アプリケーションと統合することで、ロック解除:

-AI-Native Data Access: CAPサービスは、ClaudeのようなMCP対応のAIエージェントに直接アクセスでき、ビジネスデータに対する自然な言語の問い合わせが可能

  • エンタープライズインテグレーション: シームレスにAIツールをSAPシステム、データベース、ビジネスロジックに接続
  • 理性的なオートメーション: 複数のCAPサービスコールを組み合わせて、AIエージェントが複雑な業務を遂行できるように -Developer生産性: 開発者がCAPデータモデルの理解、クエリ、および作業を支援するためにAIアシスタントを許可する

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

CAP MCP Plugin - AI With Ease

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.

🚀 The Power of MCP for CAP Applications

The Model Context Protocol bridges the gap between your enterprise data and AI agents. By integrating MCP with your CAP applications, you unlock:

  • AI-Native Data Access: Your CAP services become directly accessible to MCP enabled AI agents like Claude, enabling natural language queries against your business data
  • Enterprise Integration: Seamlessly connect AI tools to your SAP systems, databases, and business logic
  • Intelligent Automation: Enable AI agents to perform complex business operations by combining multiple CAP service calls
  • Developer Productivity: Allow AI assistants to help developers understand, query, and work with your CAP data models
  • Business Intelligence: Transform your structured business data into AI-queryable resources for insights and analysis

🚀 Quick Setup

Want to read the full documentation? Find it here

Prerequisites

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

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.

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

Step 3: Add MCP Annotations

Annotate your CAP services with @mcp annotations:

// srv/catalog-service.cds
service CatalogService {

  @mcp: {
    name: 'books',
    description: 'Book catalog with search and filtering',
    resource: ['filter', 'orderby', 'select', 'top', 'skip', 'expand']
  }
  entity Books as projection on my.Books;

  // Optionally expose Books as tools for LLMs (query/get enabled by default config)
GitHub で README 全文を見る

インストール

npx @modelcontextprotocol/inspector
MCP 初心者?mcpskill.org のガイドから始めましょう →