Initial commit: Cloudflare infrastructure with WAF Intelligence
- Complete Cloudflare Terraform configuration (DNS, WAF, tunnels, access) - WAF Intelligence MCP server with threat analysis and ML classification - GitOps automation with PR workflows and drift detection - Observatory monitoring stack with Prometheus/Grafana - IDE operator rules for governed development - Security playbooks and compliance frameworks - Autonomous remediation and state reconciliation
This commit is contained in:
37
oracle_answer_mcp.py
Executable file
37
oracle_answer_mcp.py
Executable file
@@ -0,0 +1,37 @@
|
||||
"""
|
||||
DEPRECATED: Use mcp.oracle_answer instead
|
||||
|
||||
This file is kept for backward compatibility only.
|
||||
New code should use: from mcp.oracle_answer import OracleAnswerTool, ToolResponse
|
||||
|
||||
For CLI usage:
|
||||
python3 -m mcp.oracle_answer.cli --question "Your question"
|
||||
|
||||
Migration path:
|
||||
1. Import from mcp.oracle_answer instead of this file
|
||||
2. Use the new async API (await tool.answer(...))
|
||||
3. Delete this file once all code is migrated
|
||||
|
||||
See STRUCTURE.md for the new architecture.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
warnings.warn(
|
||||
"oracle_answer_mcp.py is deprecated. "
|
||||
"Use 'from mcp.oracle_answer import OracleAnswerTool' instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
# For backward compatibility, re-export from new location
|
||||
try:
|
||||
from mcp.oracle_answer import OracleAnswerTool, ToolResponse
|
||||
|
||||
__all__ = ["OracleAnswerTool", "ToolResponse"]
|
||||
except ImportError as e:
|
||||
print(f"Error: Could not import from mcp.oracle_answer: {e}", file=sys.stderr)
|
||||
print("Did you rename/move the file? Use the new structure:", file=sys.stderr)
|
||||
print(" CLOUDFLARE/mcp/oracle_answer/__init__.py", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
Reference in New Issue
Block a user