bluefly / llm_platform
Enterprise AI coordination platform with comprehensive AI provider support, vector databases, and intelligent workflows built on Drupal 11 standards.
Requires
- php: >=8.1
- bluefly/ai_agent_huggingface: ^0.1
- bluefly/ai_agent_orchestra: ^0.1
- bluefly/ai_provider_apple: ^0.1
- bluefly/ai_provider_crewai: ^0.1
- bluefly/ai_provider_langchain: ^0.1
- bluefly/alternative_services: ^0.1
- bluefly/api_normalizer: ^0.1
- bluefly/code_executor: ^0.1
- bluefly/gov_compliance: ^0.1
- bluefly/llm: ^0.1
- bluefly/llm_platform_manager: ^0.1
- bluefly/mcp_registry: ^0.1
- bluefly/recipe_onboarding: ^0.1
- bluefly/secure_drupal: ^0.1
- drupal/admin_audit_trail: ^1.0@beta
- drupal/admin_toolbar: ^3.6
- drupal/admin_toolbar_tools: ^3.6
- drupal/advancedqueue: ^1.0
- drupal/ai: ^1.0
- drupal/ai_api_explorer: ^1.0
- drupal/ai_automators: ^1.0
- drupal/ai_content: ^1.0
- drupal/ai_interpolator: ^1.0
- drupal/ai_interpolator_openai: ^1.0
- drupal/ai_logging: ^1.0
- drupal/ai_provider_anthropic: ^1.0
- drupal/ai_provider_litellm: ^1.1@beta
- drupal/ai_provider_ollama: ^1.0@dev
- drupal/ai_provider_openai: ^1.0
- drupal/ai_search: ^1.0
- drupal/ai_translate: ^1.0
- drupal/ai_vdb: ^1.0
- drupal/ai_vdb_provider_milvus: ^1.0@dev
- drupal/antibot: ^2.0
- drupal/audit_log: ^1.0
- drupal/autologout: ^1.4
- drupal/backup_migrate: ^5.0
- drupal/coffee: ^1.4
- drupal/config_ignore: ^3.3
- drupal/config_split: ^2.0
- drupal/consumers: ^1.19
- drupal/core: ^10.3 || ^11.0
- drupal/csp: ^1.0
- drupal/ctools: ^4.1
- drupal/dashboards: ^2.2
- drupal/devel: ^5.0
- drupal/devel_generate: ^5.0
- drupal/diff: ^1.3
- drupal/eca: ^2.1
- drupal/eca_access: ^2.1
- drupal/eca_base: ^2.1
- drupal/eca_config: ^2.1
- drupal/eca_content: ^2.1
- drupal/eca_endpoint: ^2.1
- drupal/eca_queue: ^1.0
- drupal/eca_ui: ^2.1
- drupal/eca_workflow: ^2.1
- drupal/eck: ^2.0
- drupal/encrypt: ^3.0
- drupal/entity: ^1.6
- drupal/entity_browser: ^2.0
- drupal/entity_reference_revisions: ^1.10
- drupal/entity_usage: ^2.0
- drupal/environment_indicator: ^4.0
- drupal/external_entities: ^3.0
- drupal/facets: ^3.0
- drupal/facets_summary: ^2.0
- drupal/field_encrypt: ^3.2.1 || ^4.0.0-alpha2
- drupal/field_group: ^3.4
- drupal/field_permissions: ^1.0
- drupal/field_validation: ^3.0
- drupal/gin: ^4.1
- drupal/gin_toolbar: ^1.0@rc
- drupal/graphql: ^4.0
- drupal/health_check: ^3.0
- drupal/honeypot: ^2.2
- drupal/http_client_manager: ^3.0
- drupal/ip_anonymize: ^1.0
- drupal/jsonapi_extras: ^3.0
- drupal/jsonrpc: ^2.0@rc
- drupal/jwt: ^2.1
- drupal/key: ^1.0
- drupal/memcache: ^2.7
- drupal/metatag: ^1.28
- drupal/migrate_plus: ^6.0
- drupal/migrate_tools: ^6.0
- drupal/monitoring: ^1.0
- drupal/openapi: ^2.3
- drupal/openapi_jsonapi: ^3.0
- drupal/openapi_ui: ^1.0@rc
- drupal/openapi_ui_redoc: ^1.0@rc
- drupal/openapi_ui_swagger: ^1.0
- drupal/paragraphs: ^1.17
- drupal/password_policy: ^4.0
- drupal/pathauto: ^1.12
- drupal/project_browser: ^1.0
- drupal/queue_ui: ^3.0
- drupal/r4032login: ^2.2
- drupal/real_aes: ^2.6
- drupal/redirect: ^1.9
- drupal/redis: ^1.9
- drupal/restui: ^1.0
- drupal/search_api: ^1.38
- drupal/search_api_db: ^1.38
- drupal/search_api_solr: ^4.3
- drupal/search_api_solr_dense_vector: ^1.0@dev
- drupal/seckit: ^2.0
- drupal/security_review: ^3.1
- drupal/session_timeout: ^2.0
- drupal/simple_oauth: ^5.2
- drupal/stage_file_proxy: ^3.1
- drupal/token: ^1.15
- drupal/tour: ^1.0@dev
- drupal/typed_data: ^1.0
- drupal/ultimate_cron: ^2.0@alpha
- drupal/user_redirect: ^2.0
- drupal/views_bulk_operations: ^4.2
- drupal/webform: ^6.2
- drupal/workbench_access: ^2.0
- drush/drush: ^12.4.3 || ^13.0
Suggests
- bluefly/ai_agent_crewai: CrewAI provider integration
- bluefly/ai_agent_huggingface: HuggingFace AI agent
- bluefly/ai_agent_orchestra: AI agent orchestration and management
- bluefly/ai_provider_apple: Apple Foundation Models provider integration
- bluefly/ai_provider_langchain: LangChain provider integration
- bluefly/alternative_services: Alternative service providers support
- bluefly/api_normalizer: API standardization across providers
- bluefly/gov_compliance: Government compliance features
- bluefly/llm: Core LLM integration module
- bluefly/llm_platform_manager: Theme engine for platform management
- bluefly/mcp_registry: MCP server registry browser
- bluefly/recipe_onboarding: Recipe system onboarding tools
- drupal/admin_toolbar: Enhanced admin toolbar
- drupal/advagg: CSS/JS aggregation
- drupal/advancedqueue: Advanced queue management
- drupal/ai: AI integration framework
- drupal/ai_api_explorer: For API exploration and testing
- drupal/ai_automator: For automated field value generation
- drupal/ai_automators: AI automation tools
- drupal/ai_content: AI content generation
- drupal/ai_logging: AI operation logging
- drupal/ai_provider_amazeeio: For Amazee.io AI integration
- drupal/ai_provider_anthropic: Anthropic AI provider
- drupal/ai_provider_deepseek: For DeepSeek AI integration
- drupal/ai_provider_litellm: For LiteLLM integration
- drupal/ai_provider_lmstudio: For LM Studio integration
- drupal/ai_provider_ollama: Ollama AI provider
- drupal/ai_provider_openai: OpenAI provider
- drupal/ai_translate: AI-powered translation
- drupal/ai_vdb_provider_milvus: For Milvus vector database
- drupal/ai_vdb_provider_pinecone: For Pinecone vector database
- drupal/ai_vdb_provider_postgres: For PostgreSQL vector database
- drupal/ai_vdb_provider_qdrant: For Qdrant vector database (cloud-native)
- drupal/audit_export: For audit exports
- drupal/ctools: Chaos tool suite
- drupal/devel: Developer tools
- drupal/devel_generate: Content generation for testing
- drupal/eca: Event-condition-action framework
- drupal/eca_queue: For ECA queue processing
- drupal/encrypt: Data encryption
- drupal/entity: Entity API enhancements
- drupal/entity_browser: Entity browser interface
- drupal/entity_reference_revisions: Entity reference revisions
- drupal/entity_usage: Entity usage tracking
- drupal/external_entities: External entity integration
- drupal/facets: Search facets
- drupal/facets_summary: Facets summary
- drupal/feeds_tamper: For data transformation
- drupal/field_encrypt: Field-level encryption
- drupal/field_group: Field grouping
- drupal/field_permissions: Field permissions
- drupal/field_validation: Field validation
- drupal/gin: Modern admin theme
- drupal/health_check: System health monitoring
- drupal/http_client_manager: HTTP client management
- drupal/imageapi_optimize: Image optimization
- drupal/jsonapi_extras: JSON:API enhancements
- drupal/key: Key management system
- drupal/key_auth: Key-based authentication
- drupal/layout_options: For layout configuration
- drupal/lazy: Lazy loading
- drupal/mcp: Model Control Protocol
- drupal/memcache: Memcache integration
- drupal/metatag: Meta tag management
- drupal/monitoring: System monitoring
- drupal/openapi: OpenAPI documentation
- drupal/openapi_jsonapi: OpenAPI JSON:API integration
- drupal/openapi_ui: OpenAPI user interface
- drupal/paragraphs: Paragraphs field type
- drupal/pathauto: Automatic URL aliasing
- drupal/project_browser: Project browsing interface
- drupal/queue_order: Queue ordering
- drupal/queue_ui: Queue management UI
- drupal/redirect: URL redirection
- drupal/restui: REST UI management
- drupal/search_api: Search API framework
- drupal/search_api_db: Database search backend
- drupal/security_review: Security review
- drupal/tamper: For data tampering
- drupal/token: Token replacement
- drupal/tracer: For request tracing
- drupal/typed_data: For typed data handling
- drupal/ui_examples: For UI examples
- drupal/ui_icons: For icon management
- drupal/ui_icons_backport: For icon backporting
- drupal/ui_skins: For UI theming
- drupal/ui_suite: For UI suite components
- drupal/ui_suite_bootstrap: For Bootstrap UI components
- drupal/workbench_access: Workbench access control
- drupal/xray_audit: For advanced auditing
This package is auto-updated.
Last update: 2025-08-27 13:42:26 UTC
README
Complete AI development platform with gateway architecture, vector search, MCP registry, and comprehensive analytics dashboard.
Purpose
This recipe installs and configures a full AI development ecosystem on Drupal, providing:
- LLM Gateway: Unified AI provider access and management
- Vector Search: Semantic search and embeddings
- MCP Registry: Model Context Protocol tool integration
- AI Agents: CrewAI, HuggingFace, and orchestration systems
- Government Compliance: FedRAMP, NIST 800-53, FISMA support
- Analytics Dashboard: Comprehensive monitoring and metrics
Prerequisites
- Drupal: 10.5+ or 11.0+
- PHP: 8.1+
- Database: MySQL 8.0+ or PostgreSQL 13+
- Memory: 2GB+ recommended
- Storage: 10GB+ recommended
Required Contrib Modules
The recipe installs these dependencies automatically:
ai
(2.0+): Core AI functionalitykey
(1.17+): Secure credential managementeck
(2.0+): Entity Construction Kitsearch_api
: Search and indexing frameworktoken
: Token replacement systempathauto
: URL alias automation
Installation
Apply Recipe
# Via Drupal CLI
php core/scripts/drupal recipe /path/to/llm_platform -v
# Via Drush 13+
drush recipe /path/to/llm_platform
Post-Installation Configuration
Configure AI Providers
- Navigate to
/admin/config/ai/providers
- Add your API keys via Key module
- Configure LLM Gateway endpoints
- Navigate to
Set up Vector Search
- Go to
/admin/config/search/api
- Configure vector search server
- Index your content for semantic search
- Go to
Register MCP Tools
- Access
/admin/config/mcp/registry
- Register external tools and services
- Configure tool permissions
- Access
Review Compliance Settings
- Visit
/admin/config/gov/compliance
- Enable required frameworks (FedRAMP, NIST, etc.)
- Configure audit and monitoring settings
- Visit
Environment Configuration
Required Environment Variables
# LLM Gateway
LLM_GATEWAY_URL=https://your-gateway.example.com
LLM_GATEWAY_API_KEY=your_secure_api_key
# Vector Database (Qdrant)
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=your_qdrant_key
# MCP Registry
MCP_REGISTRY_ENDPOINT=http://localhost:8080
MCP_REGISTRY_TOKEN=your_mcp_token
Secure Key Management
Use Drupal's Key module for sensitive configuration:
# Create keys via Drush
drush key:create llm_gateway_key --type=authentication --provider=config --input-type=text
# Or via admin interface at /admin/config/system/keys
User Roles
The recipe creates these specialized roles:
AI Developer (ai_developer
)
- Access LLM Gateway and analytics
- Manage AI conversations and providers
- Configure MCP registry
- Use REST/JSON APIs
AI Manager (ai_manager
)
- All AI Developer permissions
- Government compliance management
- Administrative access
- Training job management
Content Types
Default content includes:
- Welcome Page: Platform introduction and feature overview
- Getting Started Guide: Step-by-step configuration instructions
- API Documentation: Developer resources and examples
Performance Optimization
- Caching: 1-hour page cache with CSS/JS aggregation
- Database: Optimized for AI workloads with proper indexing
- Memory: Configured for large language model processing
Security Features
- User Registration: Admin-only by default
- API Access: Controlled via role-based permissions
- Email Verification: Required for new accounts
- Audit Logging: Comprehensive activity tracking
Rollback Instructions
To remove this recipe's changes:
Uninstall Modules (reverse dependency order):
drush pm:uninstall recipe_onboarding gov_compliance ai_provider_langchain ai_provider_apple ai_agentic_workflows ai_agent_huggingface ai_agent_crewai ai_agent_orchestra mcp_registry llm api_normalizer alternative_services
Remove Custom Roles:
drush role:delete ai_developer drush role:delete ai_manager
Delete Content:
# Delete nodes created by recipe drush entity:delete node --bundle=page --filter="title=Welcome to LLM Platform"
Reset Configuration:
# Reset site settings drush config:set system.site name "Drupal" slogan "" drush config:set system.theme default claro admin claro
Troubleshooting
Module Dependencies
If installation fails with dependency errors:
# Install missing modules manually
composer require drupal/ai drupal/key drupal/eck
drush pm:enable ai key eck
# Then retry recipe
drush recipe /path/to/llm_platform
Memory Issues
For large installations:
# Increase PHP memory limit
php -d memory_limit=2G core/scripts/drupal recipe /path/to/llm_platform
Permission Errors
If role creation fails:
# Check existing roles
drush role:list
# Manually create missing roles
drush role:create ai_developer "AI Developer"
drush role:create ai_manager "AI Manager"
Support
- Documentation: See
/docs
directory for technical details - Issues: Report problems via project issue queue
- API Reference: Available at
/admin/help/api
after installation
Version History
- 1.0.0: Initial production release
- 1.1.0: Added government compliance framework
- 1.2.0: Enhanced MCP registry integration
- Current: Vector search optimization and security hardening
License
This recipe follows the same license as Drupal core (GPL-2.0+).