Repository navigation
Add schema management MCP tools (Issue #703) - #713
Conversation
## Summary - Add `add_schema_relationship` tool for adding relationships to existing schemas - Add `remove_schema_relationship` tool for soft-delete of relationships - Add `update_schema` tool for batch schema updates ## Changes - schema.rs: Add 3 new handlers with proper NodeUpdate usage - tools.rs: Register tools and add comprehensive tool schemas - Update test files: 25 → 28 tools 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Code Review SummaryReview Type: Initial Review This PR adds 3 new MCP tools for schema relationship management ( Requirements Check (from Issue #703)
Code Review FindingsPositive Observations
Suggested Improvements1. [Improvement] Missing Duplicate Relationship Check in
|
malibio
left a comment
There was a problem hiding this comment.
Review complete. See detailed comment above. Recommendation: APPROVE with minor suggestions.
- Add duplicate field check in update_schema handler - Add duplicate relationship check in update_schema handler - Add add_fields/remove_fields to update_schema JSON schema Addresses reviewer recommendations from PR #713 review. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Review Recommendations Addressed✅ Addressed (3/4 suggestions)
⏭️ Skipped (1/4 suggestions)
Commits: 1 |
* Add schema management MCP tools (Issue #703) ## Summary - Add `add_schema_relationship` tool for adding relationships to existing schemas - Add `remove_schema_relationship` tool for soft-delete of relationships - Add `update_schema` tool for batch schema updates ## Changes - schema.rs: Add 3 new handlers with proper NodeUpdate usage - tools.rs: Register tools and add comprehensive tool schemas - Update test files: 25 → 28 tools 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Address review: Add duplicate validation and complete JSON schema - Add duplicate field check in update_schema handler - Add duplicate relationship check in update_schema handler - Add add_fields/remove_fields to update_schema JSON schema Addresses reviewer recommendations from PR #713 review. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
* Add schema management MCP tools (Issue #703) ## Summary - Add `add_schema_relationship` tool for adding relationships to existing schemas - Add `remove_schema_relationship` tool for soft-delete of relationships - Add `update_schema` tool for batch schema updates ## Changes - schema.rs: Add 3 new handlers with proper NodeUpdate usage - tools.rs: Register tools and add comprehensive tool schemas - Update test files: 25 → 28 tools 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Address review: Add duplicate validation and complete JSON schema - Add duplicate field check in update_schema handler - Add duplicate relationship check in update_schema handler - Add add_fields/remove_fields to update_schema JSON schema Addresses reviewer recommendations from PR #713 review. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
* Add schema management MCP tools (Issue #703) ## Summary - Add `add_schema_relationship` tool for adding relationships to existing schemas - Add `remove_schema_relationship` tool for soft-delete of relationships - Add `update_schema` tool for batch schema updates ## Changes - schema.rs: Add 3 new handlers with proper NodeUpdate usage - tools.rs: Register tools and add comprehensive tool schemas - Update test files: 25 → 28 tools 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Address review: Add duplicate validation and complete JSON schema - Add duplicate field check in update_schema handler - Add duplicate relationship check in update_schema handler - Add add_fields/remove_fields to update_schema JSON schema Addresses reviewer recommendations from PR #713 review. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
Summary
Adds 3 new MCP tools for schema relationship management, completing Phase 5-6 of Issue #703.
New Tools
add_schema_relationship- Add a relationship definition to an existing schema (creates edge table DDL)remove_schema_relationship- Soft-delete a relationship (preserves edge table and data)update_schema- Batch update schema description and relationshipsChanges
schema.rs: +292 lines - 3 new handlers with properNodeUpdateusagetools.rs: +128 lines - Tool routing and comprehensive JSON schemasTesting
Related
🤖 Generated with Claude Code