Initial commit: MCP Hub Community Edition v3.0.0
Community edition generated from private repo via sync pipeline. Includes 9 plugins (WordPress, WooCommerce, WP Advanced, Gitea, n8n, Supabase, OpenPanel, Appwrite, Directus) with ~587 tools. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
103
core/__init__.py
Normal file
103
core/__init__.py
Normal file
@@ -0,0 +1,103 @@
|
||||
"""
|
||||
Core modules for MCP server
|
||||
|
||||
Architecture:
|
||||
- Multi-Endpoint: Separate MCP endpoints for different plugin types
|
||||
- Tool Registry: Central tool management
|
||||
- Site Manager: Multi-site configuration
|
||||
- Middleware: Authentication, rate limiting, audit logging
|
||||
"""
|
||||
|
||||
# Authentication and API Keys
|
||||
from core.api_keys import APIKeyManager, get_api_key_manager
|
||||
|
||||
# Logging and Audit
|
||||
from core.audit_log import AuditLogger, EventType, LogLevel, get_audit_logger
|
||||
from core.auth import AuthManager, get_auth_manager
|
||||
|
||||
# Context Management
|
||||
from core.context import clear_api_key_context, get_api_key_context, set_api_key_context
|
||||
|
||||
# Multi-Endpoint Architecture (Phase X)
|
||||
from core.endpoints import (
|
||||
EndpointConfig,
|
||||
EndpointRegistry,
|
||||
EndpointType,
|
||||
MCPEndpointFactory,
|
||||
)
|
||||
|
||||
# Health Monitoring
|
||||
from core.health import (
|
||||
AlertThreshold,
|
||||
HealthMetric,
|
||||
HealthMonitor,
|
||||
ProjectHealthStatus,
|
||||
SystemMetrics,
|
||||
get_health_monitor,
|
||||
initialize_health_monitor,
|
||||
)
|
||||
|
||||
# Project and Site Management
|
||||
from core.project_manager import ProjectManager, get_project_manager
|
||||
|
||||
# Rate Limiting
|
||||
from core.rate_limiter import RateLimitConfig, RateLimiter, get_rate_limiter
|
||||
from core.site_manager import SiteConfig, SiteManager, get_site_manager
|
||||
|
||||
# Legacy (kept for backward compatibility, will be removed in v2.0)
|
||||
from core.site_registry import SiteInfo, SiteRegistry, get_site_registry
|
||||
from core.tool_generator import ToolGenerator
|
||||
|
||||
# Tool Management (Option B architecture)
|
||||
from core.tool_registry import ToolDefinition, ToolRegistry, get_tool_registry
|
||||
from core.unified_tools import UnifiedToolGenerator
|
||||
|
||||
__all__ = [
|
||||
# Authentication
|
||||
"AuthManager",
|
||||
"get_auth_manager",
|
||||
"APIKeyManager",
|
||||
"get_api_key_manager",
|
||||
# Project/Site Management
|
||||
"ProjectManager",
|
||||
"get_project_manager",
|
||||
"SiteManager",
|
||||
"SiteConfig",
|
||||
"get_site_manager",
|
||||
# Legacy (deprecated)
|
||||
"SiteRegistry",
|
||||
"SiteInfo",
|
||||
"get_site_registry",
|
||||
"UnifiedToolGenerator",
|
||||
# Tool Management
|
||||
"ToolRegistry",
|
||||
"ToolDefinition",
|
||||
"get_tool_registry",
|
||||
"ToolGenerator",
|
||||
# Multi-Endpoint Architecture
|
||||
"EndpointConfig",
|
||||
"EndpointType",
|
||||
"MCPEndpointFactory",
|
||||
"EndpointRegistry",
|
||||
# Logging
|
||||
"AuditLogger",
|
||||
"get_audit_logger",
|
||||
"LogLevel",
|
||||
"EventType",
|
||||
# Context
|
||||
"set_api_key_context",
|
||||
"get_api_key_context",
|
||||
"clear_api_key_context",
|
||||
# Health
|
||||
"HealthMonitor",
|
||||
"HealthMetric",
|
||||
"SystemMetrics",
|
||||
"ProjectHealthStatus",
|
||||
"AlertThreshold",
|
||||
"get_health_monitor",
|
||||
"initialize_health_monitor",
|
||||
# Rate Limiting
|
||||
"RateLimiter",
|
||||
"get_rate_limiter",
|
||||
"RateLimitConfig",
|
||||
]
|
||||
Reference in New Issue
Block a user