docs(serve): correct _resolve_single_node docstring to name explain (#4618)

The landed docstring listed only the get_node/get_neighbors MCP tools,
but the CLI `explain` command also routes node lookup through this
resolver (cli.py), so a substring-only near-miss now refuses there too.
Name explain in the docstring so the shared surface is accurate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
safishamsiandClaude Opus 4.8 committed 2026-10-22 13:47:19 +01:00
1 parent c6d4c25135
commit 7a0b031088
1 file changed
+2 -1
+2 -1
View File
@@ -1815,7 +1815,8 @@ def _near_miss_message(G: nx.Graph, label: str, hits: list[str], *, limit: int =
def _resolve_single_node(G: nx.Graph, label: str) -> tuple[str | None, str | None]:
"""Shared node resolution for the get_node / get_neighbors tools.
"""Shared node resolution for the `explain` CLI command and the get_node /
get_neighbors MCP tools.
Returns ``(node_id, None)`` when *label* resolves to a single winner via the
tiered `_find_node` ranking, or ``(None, message)`` when there is no match or