health_check
Monitor server functionality by performing system health checks to ensure smooth operation and detect any issues in the Redmine MCP Server environment.
Instructions
健康檢查工具,確認服務器正常運作
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"title": "health_checkArguments",
"type": "object"
}
Implementation Reference
- src/redmine_mcp/server.py:32-45 (handler)The health_check tool handler: a FastMCP tool that checks Redmine server connectivity using get_client().test_connection() and returns a status message indicating success or failure.@mcp.tool() def health_check() -> str: """健康檢查工具,確認服務器正常運作""" try: config = get_config() client = get_client() # 測試連線 if client.test_connection(): return f"✓ 服務器正常運作,已連接到 {config.redmine_domain}" else: return f"✗ 無法連接到 Redmine 服務器: {config.redmine_domain}" except Exception as e: return f"✗ 服務器異常: {str(e)}"