Repository navigation
feat: HTTP graph mutation endpoints — POST /graph/edge and DELETE /graph/edge - #555
Merged
Merged
Conversation
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (1)
Review powered by cora-cli · BYOK · MIT |
6 tasks done
…aph/edge (#542) Adds HTTP endpoints for knowledge graph mutations so clients can be fully HTTP-only without direct uteke-core access. New endpoints: - POST /graph/edge: Add edge between two existing memories - Validates both source/target memories exist (404 if not) - Rejects self-loops (400 if source == target) - Optional edge_type (default: 'related') and weight (default: 1.0) - DELETE /graph/edge?source=...&target=...: Remove edge by source+target - Returns 404 if edge doesn't exist - Both endpoints return 403 for read-only tokens New MCP tools: - uteke_graph_add_edge: Add edge via JSON-RPC - uteke_graph_remove_edge: Remove edge via JSON-RPC Core changes: - GraphStore::remove_edge() method (returns bool for existence check) - GraphEdgeRequest type in server types - Handler tests for remove_edge
ajianaz
force-pushed
the
feat/issue-542-graph-mutation-endpoints
branch
from
July 4, 2026 04:04
03f51cd to
03672d3
Compare
| /// Returns true if an edge was removed, false if none existed. | ||
| pub fn remove_edge(&self, source_id: &str, target_id: &str) -> Result<bool, Error> { | ||
| let affected = self | ||
| .conn |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…n-endpoints feat: HTTP graph mutation endpoints — POST /graph/edge and DELETE /graph/edge
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
Closes #542
Adds HTTP endpoints for knowledge graph mutations so clients (e.g. Corin desktop) can operate fully HTTP-only without needing direct
uteke-core::Utekeaccess — eliminating lifetime issues (E0597) from Mutex-locked state borrows.Changes
New HTTP Endpoints
POST/graph/edgeDELETE/graph/edge?source=...&target=...Validation
New MCP JSON-RPC Tools
uteke_graph_add_edge(source, target, edge_type?, weight?)uteke_graph_remove_edge(source, target)Core Changes
GraphStore::remove_edge()— deletes edge by source+target, returnsboolFiles Changed (4 files, +261 lines)
uteke-core/src/graph.rsremove_edge()+ 2 testsuteke-server/src/handlers.rs/graph/edgehandlersuteke-server/src/types.rsGraphEdgeRequesttypeuteke-mcp/src/lib.rsAcceptance Criteria (from #542)
POST /graph/edgeadds edge between existing memoriesDELETE /graph/edge?source=...&target=...removes edgeTesting
remove_edgetests)