SkillPedia Skills Encyclopedia
中文 EN

MCP servers 2026-09-08 02:07 UTC

mcp-server-starrocks

Committed by decster. Update Category: Bug Fixes & Stability Improvements. Commit details: fix: import ToolResult from fastmcp.tools so fastmcp 4.x works (#54) (#55). This update resolves known runtime errors and enhances system reliability.

decster 88e782b StarRocks/mcp-server-starrocks

CommitRaw commit message

fix: import ToolResult from fastmcp.tools so fastmcp 4.x works (#54) (#55)

fastmcp 3.x renamed fastmcp/tools/tool.py to base.py, keeping a runtime
shim for the old module path. fastmcp 4.0.0 dropped that shim, so
`from fastmcp.tools.tool import ToolResult` raises ModuleNotFoundError and
the server exits before it speaks MCP — clients just see "Connection closed".

Import from the `fastmcp.tools` package instead, which re-exports ToolResult
on 3.x and 4.x, with a fallback to the old path for fastmcp 2.x (the
declared floor, where the package does not re-export it).

Also cap the requirement at <5 so a future major cannot break a fresh
resolve the same way.

Verified against fastmcp 4.0.3: all 11 tools and 3 resource templates
register, and read_query returns content plus structured_content from a
live StarRocks instance. Also verified on the locked 3.2.4.

Fixes #54


Claude-Session: https://claude.ai/code/session_01WbLT5zoMG5WD9M8NxfZhwc

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>