health_check
Monitor and verify the operational status of the MCP Scholar server to ensure reliability and functionality.
Instructions
健康检查端点,用于验证服务是否正常运行
Returns:
str: 服务状态信息
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_scholar/server.py:532-540 (handler)The health_check tool handler function, decorated with @mcp.tool() for automatic registration in the MCP framework. It performs a simple health check by returning a status message confirming the MCP Scholar service is running normally.@mcp.tool() async def health_check(ctx: Context) -> str: """ 健康检查端点,用于验证服务是否正常运行 Returns: str: 服务状态信息 """ return "MCP Scholar服务运行正常"