Semantic Edit icon

Semantic Edit

byjbr
0

Provides safe, AST-aware code editing operations that preserve syntax structure and formatting.

概要

Semantic Edit is a Model Context Protocol (MCP) server designed for semantic code editing utilizing tree-sitter. It empowers developers with safe, AST-aware code editing operations that maintain syntax structure and formatting. By offering features like semantic node targeting, safe structural editing, and syntax validation, it helps prevent breaking changes and ensures code integrity. The server currently supports Rust with an extensible architecture planned for more languages.

主な機能

  • Semantic node targeting using name, type, query, or position
  • 0 GitHub stars
  • Support for multiple languages (currently Rust)
  • Safe structural editing to replace, insert, wrap, or delete AST nodes
  • Syntax validation to prevent breaking changes
  • Transaction safety ensures all edits are validated before application

ユースケース

  • Adding documentation to code structures programmatically
  • Wrapping code blocks with conditional compilation directives
  • Automated code refactoring while preserving syntax
Craft Better Prompts with AnyPrompt
Sponsored