A Model Context Protocol (MCP) server enabling AI agents to query information about dependencies in a Ruby project's Gemfile. Built with fast-mcp. Install the gem and add to the application's Gemfile by executing: 1. Generate the binstub: 2. Configure your client to execute the binstub. Here are examples that work for Claude and Cursor: Available on RubyDoc The server provides two tools for AI age
Add this skill
npx mdskills install subelsky/bundler-mcpWell-documented MCP server for Ruby dependency management with clear setup and useful tools
1# BundlerMCP23A Model Context Protocol (MCP) server enabling AI agents to query information about dependencies in a Ruby project's `Gemfile`. Built with [fast-mcp](https://github.com/yjacquin/fast-mcp).45[](https://github.com/subelsky/bundler_mcp/actions/workflows/main.yml)6[](https://badge.fury.io/rb/bundler_mcp)78## Installation910Install the gem and add to the application's Gemfile by executing:1112```bash13bundle add bundler_mcp --group=development14```1516## Usage17181. Generate the binstub:1920```bash21bundle binstubs bundler_mcp22```23242. Configure your client to execute the binstub. Here are examples that work for Claude and Cursor:2526### Basic Example (mcp.json)2728```json29{30 "mcpServers": {31 "bundler-mcp": {32 "command": "/Users/mike/my_project/bin/bundler_mcp"33 }34 }35}36```3738### Example with logging and explicit Gemfile3940```json41{42 "mcpServers": {43 "bundler-mcp": {44 "command": "/Users/mike/my_project/bin/bundler_mcp",4546 "env": {47 "BUNDLER_MCP_LOG_FILE": "/Users/mike/my_project/log/mcp.log",48 "BUNDLE_GEMFILE": "/Users/mike/my_project/subdir/Gemfile"49 }50 }51 }52}53```5455### Documentation5657[Available on RubyDoc](https://www.rubydoc.info/gems/bundler_mcp/)5859### Available Tools6061The server provides two tools for AI agents:6263#### list_project_gems6465Lists all bundled Ruby gems with their:6667- Versions68- Descriptions69- Installation paths70- Top-level documentation locations (e.g. `README` and `CHANGELOG`)71727374#### get_gem_details7576Retrieves detailed information about a specific gem, including:7778- Version79- Description80- Installation path81- Top-level documentation locations82- Source code file locations83848586## Environment Variables8788- `BUNDLE_GEMFILE`: Used by Bundler to locate your Gemfile. If you use the binstub method described in the [Usage](#usage) section, this is usually not needed.89- `BUNDLER_MCP_LOG_FILE`: Path to log file. Useful for troubleshooting (defaults to no logging)9091## Development9293After checking out the repo, run `bin/setup` to install dependencies and `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.9495### Testing with the MCP Inspector9697You can test the server directly using the [MCP inspector](https://modelcontextprotocol.io/docs/tools/inspector):9899```bash100# Basic usage101npx @modelcontextprotocol/inspector ./bin/bundler_mcp102103# With logging enabled104BUNDLER_MCP_LOG_FILE=/tmp/log/mcp.log npx @modelcontextprotocol/inspector ./bin/bundler_mcp105106# With custom Gemfile107BUNDLE_GEMFILE=./other/Gemfile npx @modelcontextprotocol/inspector ./bin/bundler_mcp108```109110### Release Process111112To install this gem onto your local machine, run `bundle exec rake install`. To release a new version:1131141. Update the version number in `version.rb`1152. Run `bundle exec rake release`116117This will:118119- Create a git tag for the version120- Push git commits and the created tag121- Push the `.gem` file to [rubygems.org](https://rubygems.org)122123## Contributing124125Bug reports and pull requests are welcome on GitHub at https://github.com/subelsky/bundler_mcp.126127## License128129Open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).130131## Author132133[Mike Subelsky](https://subelsky.com)134
Full transparency — inspect the skill content before installing.