add MCP v2 hints and find/search pagination echo#144
Merged
Conversation
Implement PR-HINTS-B: pure mcp_hints catalog with dedupe/cap, wire hints into search/find/describe/neighbors outputs, echo limit/offset on find/search, and cover the v1 contract with tests/test_mcp_hints.py. Co-authored-by: Cursor <cursoragent@cursor.com>
Align README and neighbors tool description with requested_edge_types and hints on success; remove unused override fixture helper. Co-authored-by: Cursor <cursoragent@cursor.com>
Over-fetch one row in find_v2 so page-full hints skip the last page; cap same-priority hints by emission order; add symbol fqn_prefix resolve test. Co-authored-by: Cursor <cursoragent@cursor.com>
Pick a method with empty describe hints via describe_v2; assert find returns all CONTROLLER rows under the page cap so page-full hints cannot fire in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcp_hints.pywith the locked v1 road-sign catalog (Appendix A inpropose/HINTS-ROAD-SIGNS-PROPOSE.md), dedupe-by-rendered-string, priority cap (≤5), and no graph/I/O.hintsonsearch/find/describe/neighbors;limit/offsetecho onsearchandfind(cleared onsuccess=false);requested_edge_typesecho onneighborsfor empty-result hints.mcp_v2.py, document in README, minimal tooldescription=updates inserver.py, registermcp_hintsinpyproject.toml.Depends on PR-HINTS-A (stored
OVERRIDES, ontology 13) already onmaster(#143).Plan:
plans/PLAN-HINTS.md§ PR-B.Test plan
.venv/bin/ruff check ..venv/bin/pip install -e .thenPATH=$PWD/.venv/bin:$PATH .venv/bin/python -m pytest tests -v(496 passed, 10 skipped)tests/test_mcp_hints.py— all 24 PR-B named scenariosmcp_hints.pyhas noKuzuGraph/_rows/run_searchimportsManual evidence
After indexing, a successful
describe/findresponse includeshintsand (for find/search) echoedlimit/offset, e.g.:Made with Cursor