Default MCP discovery to path views

This commit is contained in:
HumbleTurtle
2026-05-14 10:33:58 -03:00
parent b818abc75c
commit 181aa8c42f
3 changed files with 79 additions and 18 deletions
+2 -3
View File
@@ -262,10 +262,9 @@ def run():
mod.request_json = lambda method, path, payload=None, **kwargs: {"items": [moved]}
compact = mod.list_project_nodes({"limit": 10})
assert compact["ok"] is True
assert compact["view"] == "summary"
assert compact["view"] == "paths"
assert "content_text" not in compact["items"][0]
assert compact["items"][0]["preview"] == "secret needle"
assert compact["items"][0]["metadata_summary"] == {}
assert compact["items"][0]["full_path"] == "/renamed/alpha"
full = mod.list_project_nodes({"limit": 10, "view": "full"})
assert full["items"][0]["content_text"] == "secret needle"