feat: align MCP retrieval contract with ra-h

- add external retrieval and confirmation-gated writeback tools across MCP surfaces
- port direct-search-first retrieval support and supporting ranking/query updates
- update MCP docs and skills to treat agent memory files as optional reinforcement

Generated with Claude Code
This commit is contained in:
“BeeRad”
2026-04-13 20:50:13 +10:00
parent 5dcb2b7df6
commit d825e7a783
19 changed files with 1875 additions and 73 deletions
@@ -114,6 +114,16 @@ function getNodes(filters = {}) {
return rows.map(mapNodeRow);
}
/**
* Search nodes using the same filter object as getNodes.
*/
function searchNodes(filters = {}) {
if (typeof filters === 'string') {
return getNodes({ search: filters });
}
return getNodes(filters);
}
/**
* Get a single node by ID.
*/
@@ -316,6 +326,7 @@ function getContext() {
module.exports = {
getNodes,
searchNodes,
getNodeById,
createNode,
updateNode,