Skip to content

v0.5.5 - Performance: Fix MCP Timeout

Latest

Choose a tag to compare

@tchivs tchivs released this 02 Feb 11:27

Performance Improvements

This release fixes MCP error-32001 (Request timed out) by parallelizing tool execution.

Changes

  • perf(utils): Add async parallel execution for ak_cache and ak_search

    • New ThreadPoolExecutor for running blocking akshare calls in parallel
    • New ak_cache_async: Async version that runs blocking calls in thread pool
    • New ak_search_async: Parallel data fetching across 13 market sources (~10x faster)
  • perf(tools): Parallelize composite diagnostic tools

    • composite_stock_diagnostic: Run price/info/news fetches in parallel (~3x faster)
    • crypto_composite_diagnostic: Run price/sentiment/AI report in parallel (~3x faster)
    • search: Use ak_search_async for parallel market queries (~10x faster)

Impact

Tools that previously timed out due to sequential API calls now complete within MCP client timeout limits.