This file provides guidance to AI coding agents when working with code in this repository.
chatwerk provides an MCP (Model Context Protocol) server built on top of query_packwerk. It lets AI coding assistants (Cursor, Claude, etc.) query packwerk package information, dependencies, and violations from a Ruby codebase.
bundle install
# Run all tests (RSpec)
bundle exec rspec
# Run a single spec file
bundle exec rspec spec/path/to/spec.rb
# Lint
bundle exec rubocop
bundle exec rubocop -a # auto-correctlib/chatwerk.rb— entry point; starts the MCP serverlib/chatwerk/— MCP tool definitions that wrapquery_packwerkqueries (e.g. list packs, show violations, show dependencies)spec/— RSpec tests