Splice Weaver icon

Splice Weaver

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.

About

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.

Key Features

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

Use Cases

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