GC

gavdilabs/cap-mcp-plugin

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

61 stars 22 forks Качество 57 Тренд 17NOASSERTION

gavdilabs/cap-mcp-plugin - кандидат на сервер MCP, импортированный из https://github.com/gavdilabs/cap-mcp-plugin.

Обзор

gavdilabs/cap-mcp-plugin - кандидат на сервер MCP, импортированный из https://github.com/gavdilabs/cap-mcp-plugin.

Обзор (машинный перевод)

Эта реализация основана на протоколе Model Context Protocol (MCP), предложенном Anthropic. Для получения дополнительной информации о MCP, пожалуйста, посмотрите их официальную документацию.

Плагин CAP-MCP

Плагин CAP (Cloud Application Programming), который автоматически генерирует серверы Model Context Protocol (MCP) из ваших служб CAP с помощью простых аннотаций. Преобразуйте свои услуги CAP OData в доступные для ИИ ресурсы, инструменты и подсказки с минимальной конфигурацией.

Сила MCP для приложений CAP

Протокол Model Context устраняет разрыв между корпоративными данными и агентами ИИ. Интегрируя MCP с приложениями CAP, вы разблокируете:

AI-Native Data Access: ваши CAP-сервисы становятся непосредственно доступными для агентов ИИ с поддержкой MCP, таких как Claude, что позволяет задавать запросы на естественном языке в отношении ваших бизнес-данных ** Интеграция предприятий**: Бесшовное подключение инструментов ИИ к вашим системам SAP, базам данных и бизнес-логике ** Интеллектуальная автоматизация**: Позволяет агентам ИИ выполнять сложные бизнес-операции путем объединения нескольких вызовов службы CAP. ** Производительность разработчика**: Позволяйте помощникам ИИ помогать разработчикам понимать, запрашивать и работать с вашими моделями данных CAP

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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)
Открыть полный README на GitHub

Установка

npx @modelcontextprotocol/inspector
Новичок в MCP? Начните с руководства на mcpskill.org →