MCP Registry Module
Comprehensive Model Context Protocol (MCP) ecosystem manager with 76+ specialized services for enterprise-grade MCP operations.
Module Information
- Name: MCP Registry
- Machine Name:
mcp_registry - Package: Automation
- Version: 0.1.1
- Drupal Compatibility: ^10.3 || ^11
- Source:
/Users/flux423/Sites/LLM/all_drupal_custom/modules/mcp_registry/
Features
- MCP Server Lifecycle Management: Deploy, manage, and monitor MCP servers
- Tool Ecosystem Coordination: 76+ specialized MCP services
- Resource Management: Efficient resource allocation
- AI Integration: AI-powered MCP coordination
- Monitoring & Analytics: Real-time MCP metrics
- Structured Logging: Comprehensive logging system
- Workflow Automation: Intelligent MCP workflow automation
- Contrib Integration: Built on Drupal MCP modules
Installation
composer require drupal/mcp_registry
drush en mcp_registry -y
Dependencies
Core Dependencies
- drupal:system, user, node
- mcp:mcp - Base MCP protocol (contrib)
- mcp_client:mcp_client - MCP client (contrib)
- mcp_extra:mcp_extra - Extra MCP features (contrib)
- mcp_dev_tools:mcp_dev_tools - Development tools (contrib)
- drupal:ai, ai_automators
- drupal:eca
Suggested
- drupal:eck
- drupal:eca_content, eca_user
- alternative_services:alternative_services
Configuration
Navigate to: /admin/config/mcp_registry/settings
# config/mcp_registry.settings.yml
mcp:
server_management:
auto_start: true
health_check_interval: 60
tool_coordination:
max_concurrent_tools: 10
timeout: 300
resource_management:
memory_limit: '512M'
cpu_limit: 1.0
Sub-Modules
MCP Agent Isolation
Provides agent isolation and security controls for MCP agents.
Machine Name: mcp_agent_isolation
MCP Prompts
Prompt management system for MCP interactions.
Machine Name: mcp_prompts
Usage
Register MCP Server
<?php
$registry = \Drupal::service('mcp_registry.manager');
$registry->registerServer('my_mcp_server', [
'label' => 'My MCP Server',
'endpoint' => 'http://localhost:3000',
'tools' => ['tool1', 'tool2'],
'auto_start' => true,
]);
Execute MCP Tool
<?php
$client = \Drupal::service('mcp_registry.client');
$result = $client->executeTool('my_mcp_server', 'tool_name', [
'param1' => 'value1',
'param2' => 'value2',
]);
Monitor MCP Servers
<?php
$monitor = \Drupal::service('mcp_registry.monitor');
$status = $monitor->getServerStatus('my_mcp_server');
$metrics = $monitor->getMetrics('my_mcp_server');
Drush Commands
# List MCP servers
drush mcp-registry:list
# Start MCP server
drush mcp-registry:start my_mcp_server
# Stop MCP server
drush mcp-registry:stop my_mcp_server
# Check server status
drush mcp-registry:status my_mcp_server
# Monitor all servers
drush mcp-registry:monitor
API Endpoints
REST API
# List MCP servers
GET /api/v1/mcp/servers
# Server details
GET /api/v1/mcp/servers/{server_id}
# Execute tool
POST /api/v1/mcp/execute
{
"server": "my_mcp_server",
"tool": "tool_name",
"parameters": {}
}
76+ MCP Services
The registry coordinates: - File system operations - Database interactions - Web scraping - API integrations - Document processing - Image manipulation - Audio/video processing - And many more...
Testing
# Run tests
vendor/bin/phpunit modules/custom/mcp_registry/tests
# Validate MCP integration
drush mcp-registry:validate
Resources
- MCP Specification: https://modelcontextprotocol.io
- Project: https://gitlab.bluefly.io/llm/drupal/mcp_registry