I'm following this documentation to log the messages using the context object. However, I can't find the log in the console when the tools are executed. This is my example tool implementation as suggested in the doc. from fastmcp import FastMCP, Context from typing import Dict, Any, Optional server = FastMCP("Demo") @server.tool() async def analyze_data(data: list[float], ctx: Context) -> dict: """Analyze numerical data with logging.""" await ctx.debug("Starting analysis of numerical data") await ctx.info(f"Analyzing {len(data)} data points") try: result = sum(data) / len(data) await ctx.info(f"Analysis complete, average: {result}") return {"average": result, "count": len(data)} except ZeroDivisionError: await ctx.warning("Empty data list provided") return {"error": "Empty data list"} except Exception as e: await ctx.error(f"Analysis failed: {str(e)}") raise When this tool is invoked via the MCP Client, these logs are not printed. For example, I gave the input in the Client as Analyse this data 1.0, 2.01 Logs printed on client shows that the tool was called. { 'messages': [ HumanMessage(content='Analyse this data 1.0, 2.01', additional_kwargs={}, response_metadata={}, id='45085e8f-2e39-4ef2-83a8-3958309bd92d'), AIMessage(content=\"I'll analyze the numerical data you've provided: 1.0 and 2.01. Let me do that for you.\", additional_kwargs={'tool_calls': [{'id': 'toolu_bdrk_01URHoQ8iZ3BF5xsvB9osB6Z', 'function': {'arguments': '{\"data\":[1.0,2.01]}', 'name': 'analyze_data'}, 'type': 'function'}], 'refusal': None}, response_metadata={'token_usage': {'completion_tokens': 91, 'prompt_tokens': 2398, 'total_tokens': 2489, 'completion_tokens_details': None, 'prompt_tokens_details': None}, 'model_name': 'us.anthropic.claude-3-7-sonnet-20250219-v1:0', 'system_fingerprint': None, 'id': 'msg_bdrk_01G3NGwkfV5KEMD71DU9iTTX', 'service_tier': None, 'finish_reason': 'tool_calls', 'logprobs': None}, id='run--d75ffdcb-0dc1-479d-acb8-5f19fac793a8-0', tool_calls=[{'name': 'analyze_data', 'args': {'data': [1.0, 2.01]}, 'id': 'toolu_bdrk_01URHoQ8iZ3BF5xsvB9osB6Z', 'type': 'tool_call'}], usage_metadata={'input_tokens': 2398, 'output_tokens': 91, 'total_tokens': 2489, 'input_token_details': {}, 'output_token_details': {}}), ToolMessage(content='{\\n \"average\": 1.505,\\n \"count\": 2\\n}', name='analyze_data', id='13ce1458-e927-4985-8a8b-71580b0d5791', tool_call_id='toolu_bdrk_01URHoQ8iZ3BF5xsvB9osB6Z'), AIMessage(content=\"Here's the analysis of the numerical data you provided:\\n- Data points: 1.0, 2.01\\n- Count: 2 data points\\n- Average (mean): 1.505\\n\\nThis is a simple statistical summary of the two values you provided. If you'd like more detailed analysis, please let me know.\", additional_kwargs={'refusal': None}, response_metadata={'token_usage': {'completion_tokens': 95, 'prompt_tokens': 2518, 'total_tokens': 2613, 'completion_tokens_details': None, 'prompt_tokens_details': None}, 'model_name': 'us.anthropic.claude-3-7-sonnet-20250219-v1:0', 'system_fingerprint': None, 'id': 'msg_bdrk_01R4j4Bycdz3SkeoG2rGySfL', 'service_tier': None, 'finish_reason': 'stop', 'logprobs': None}, id='run--ec20a5ac-5626-4938-9954-b9ef9dd29d73-0', usage_metadata={'input_tokens': 2518, 'output_tokens': 95, 'total_tokens': 2613, 'input_token_details': {}, 'output_token_details': {}})] } But on the server side, I can only see the API access logs. Note: I'm using fastmcp version 2.2.10 Continue reading...