feat(mcp-phase3): ArgoCD MCP + Sentry MCP + 完整 Provider 註冊
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
ArgoCDProvider (3 工具): - argocd_list_apps: 列出所有 App + sync/health 狀態 - argocd_get_app_status: 詳細狀態 + 問題資源清單 - argocd_get_sync_history: 最近 N 筆部署記錄 - 輸入驗證: app_name 白名單 regex - 需 ARGOCD_API_TOKEN + ARGOCD_MCP_ENABLED=true SentryProvider (3 工具): - sentry_list_issues: 列出最近 Issues(狀態過濾) - sentry_get_issue: 詳情 + stacktrace 最後 5 frames - sentry_search_issues: PromQL 風格搜尋 - issue_id 白名單驗證(只允許純數字) - 需 SENTRY_AUTH_TOKEN + SENTRY_MCP_ENABLED=true providers/__init__.py: 補上 Prometheus + SSH + ArgoCD + Sentry 全部 10 個 providers config.py: 新增 ARGOCD_URL / ARGOCD_API_TOKEN / ARGOCD_MCP_ENABLED / SENTRY_MCP_ENABLED Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -539,6 +539,28 @@ class Settings(BaseSettings):
|
||||
description="允許 SSH 的主機 IP 清單(逗號分隔)",
|
||||
)
|
||||
|
||||
# MCP Phase 3: ArgoCD MCP Server (2026-04-11 Claude Sonnet 4.6)
|
||||
# ==========================================================================
|
||||
ARGOCD_URL: str = Field(
|
||||
default="http://192.168.0.125:32080",
|
||||
description="ArgoCD API Server URL(K3s NodePort)",
|
||||
)
|
||||
ARGOCD_API_TOKEN: str = Field(
|
||||
default="",
|
||||
description="ArgoCD API Token(從 K8s Secret 取得)",
|
||||
)
|
||||
ARGOCD_MCP_ENABLED: bool = Field(
|
||||
default=False,
|
||||
description="啟用 ArgoCD MCP Provider(需 ARGOCD_API_TOKEN)",
|
||||
)
|
||||
|
||||
# MCP Phase 3: Sentry MCP Server (2026-04-11 Claude Sonnet 4.6)
|
||||
# ==========================================================================
|
||||
SENTRY_MCP_ENABLED: bool = Field(
|
||||
default=False,
|
||||
description="啟用 Sentry MCP Provider(需 SENTRY_AUTH_TOKEN)",
|
||||
)
|
||||
|
||||
# ==========================================================================
|
||||
# Phase 13.2: Grafana MCP Tool (#83)
|
||||
# ==========================================================================
|
||||
|
||||
Reference in New Issue
Block a user