Skip to content

Implement SQL support for MCP server and CLI#42

Merged
jonatas merged 2 commits intomasterfrom
mcp-sql-support
Apr 17, 2026
Merged

Implement SQL support for MCP server and CLI#42
jonatas merged 2 commits intomasterfrom
mcp-sql-support

Conversation

@jonatas
Copy link
Copy Markdown
Owner

@jonatas jonatas commented Apr 16, 2026

  • Add search_sql_ast, rewrite_sql, and rewrite_sql_file to MCP server
  • Add sql_files_from to Fast and support custom files_from in search_all/capture_all
  • Ensure Fast::SQL.replace_file is consistent with Ruby version (returns string, does not write)
  • Add Fast::SQL.rewrite_file for in-place SQL updates
  • Update CLI to support SQL file discovery and highlighting
  • Add ostruct and prism dependencies for Ruby 4 compatibility
  • Set Ruby version to 4.0.2 via .ruby-version

jonatas added 2 commits April 16, 2026 13:57
- Add search_sql_ast, rewrite_sql, and rewrite_sql_file to MCP server
- Add sql_files_from to Fast and support custom files_from in search_all/capture_all
- Ensure Fast::SQL.replace_file is consistent with Ruby version (returns string, does not write)
- Add Fast::SQL.rewrite_file for in-place SQL updates
- Update CLI to support SQL file discovery and highlighting
- Add ostruct and prism dependencies for Ruby 4 compatibility
- Set Ruby version to 4.0.2 via .ruby-version
- Add rewrite_sql_file shortcut to Fast module
- Update SQL specs to use rewrite_sql_file for in-place updates
- Fix syntax error in mcp_server_spec.rb
- Update mcp_server_spec.rb expectations for SQL rewrites (quotes and bytes_searched)
@jonatas jonatas merged commit 903c54f into master Apr 17, 2026
4 checks passed
@jonatas jonatas deleted the mcp-sql-support branch April 17, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant