Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Drupal Bridge

БесплатноНе проверен

Enables AI assistants to interact with Drupal sites through MCP tools, with automatic discovery, OAuth-based authentication, and scope validation.

GitHubEmbed

Описание

Enables AI assistants to interact with Drupal sites through MCP tools, with automatic discovery, OAuth-based authentication, and scope validation.

README

🚀 Quick Start

🛠️ Available Tools

MCP tools are auto-discovered from the Drupal site. Just create the tools using JSON-RPC MCP.

How It Works

  1. Server fetches tool definitions from /mcp/tools/list
  2. Extracts required OAuth scopes from each tool's annotations.auth.scopes

This eliminates manual scope configuration and automatically adapts to backend tool changes.

Automatic Scope Discovery

Scopes are extracted from tool metadata:

{
  "name": "examples.contentTypes.create",
  "annotations": {
    "auth": {
      "scopes": ["content_type:write"],
      "level": "required"
    }
  }
}

The server automatically requests the content_type:write scope during OAuth flow.

Tool Access Validation

Before invoking a tool, the server validates:

  1. Authentication - Tool requires auth and session is authenticated
  2. Scopes - Session has all required OAuth scopes
  3. Permissions - Drupal validates permissions server-side

Error example:

Insufficient OAuth scopes for tool "examples.contentTypes.create".
Required: content_type:write
Missing: content_type:write
Current: profile, content_type:read

Authentication Levels

Tools can declare three authentication levels:

  • none: Public tools, no authentication required
  • optional: Enhanced functionality with auth, but works without
  • required: Enforces authentication and scope validation

If a tool doesn't declare annotations.auth, it defaults to level='none' (public access).

📋 Development

# Install dependencies
npm install

# Run in development
npm run dev

# Build for production
npm run build

# Type check
npm run type-check

Use the great MCP Inspector project to validate the MCP server changes.

npx @modelcontextprotocol/inspector

📄 License

MIT

👨‍💻 Author

Mateu Aguiló Bosch (e0ipso) [email protected]

from github.com/e0ipso/drupal-bridge-mcp

Установка Drupal Bridge

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/e0ipso/drupal-bridge-mcp

FAQ

Drupal Bridge MCP бесплатный?

Да, Drupal Bridge MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Drupal Bridge?

Нет, Drupal Bridge работает без API-ключей и переменных окружения.

Drupal Bridge — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Drupal Bridge в Claude Desktop, Claude Code или Cursor?

Открой Drupal Bridge на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Drupal Bridge with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai