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:
1 parent
c6d4c25135
commit
7a0b031088
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user