Splice Weaver

•
1
•

Enables AST-powered semantic code editing for language models by weaving code transformations at precise syntactic splice points, featuring automatic binary bundling of ast-grep.

Splice Weaver is an MCP (Model Context Protocol) server designed to integrate powerful ast-grep functionality directly into language model workflows. It simplifies semantic code editing by automatically managing and bundling the ast-grep binary for various platforms, eliminating the need for manual installation. The server provides a dual approach, offering full CLI access for experienced users and structured, guided workflows for smaller LLMs through specific MCP resources and prompt templates. This allows language models to accurately navigate code scopes, execute rule-based operations (search, replace, scan), and generate precise YAML rules for code transformation.

主要功能

01Universal scope navigation using relational rules (find_scope)
02Automatic multi-platform ast-grep binary bundling
03Comprehensive ast-grep CLI documentation and rule examples via MCP resources
04Rule-based code operations (search, replace, scan) (execute_rule)
051 GitHub stars
06Guided YAML rule generation for scope navigation and code transformation

使用案例

01Integrating semantic code editing capabilities into AI-powered development environments
02Automating complex code refactoring and transformation tasks with language models
03Assisting LLMs in precisely identifying and manipulating code structures through YAML rules