v1.2.0

yamadashy/repomixv1.2.0Jul 18, 2025by yamadashy

AI Summary

This release brings token optimization and MCP Structured Output support to make Repomix more efficient for AI integration.

Key Highlights

  • Automatic Base64 data truncation to reduce token usage
  • MCP Structured Output specification support
  • Real-world use cases documentation on the website

New Features

  • Automatic Base64 truncation
  • MCP Structured Output support

Full Release Notes

This release brings token optimization and MCP Structured Output support, making Repomix more efficient and reliable for AI integration!

## What's New 🚀

### Automatic Base64 Data Truncation for Token Savings (#733)
The new `truncateBase64` option automatically shortens long Base64-encoded data like embedded images.

```bash
# Enable the option
repomix --truncate-base64

# Enable in config file
{
  "output": {
    "truncateBase64": true
  }
}
```

This feature significantly reduces token usage when processing repositories containing data URI images and other binary data.

- Data URI: `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB...`
- Base64 strings: `VGhlIHF1aWNrIGJyb3duIGZveCBqdW1w...`

Special thanks to @hand-dot for this contribution! 🎉

### MCP Structured Output Support (#719)
Now supports the MCP [Structured Output specification](https://modelcontextprotocol.io/specification/2025-06-18/server/tools#output-schema).

- Tool outputs are now strictly defined with JSON Schema, ensuring AI models can parse structured data reliably

## Documentation 📚

### Real-world Use Cases
Added "Real-World Use Cases" to the website. Features practical scenarios for actual development environments including bug investigation, security audits, documentation generation, and new member onboarding.

https://repomix.com/guide/use-cases

## How to Update

```bash
npm update -g repomix
```

---

As always, if you have any questions or suggestions, please let us know on [GitHub Issues](https://github.com/yamadashy/repomix/issues) or our [Discord community](https://discord.gg/wNYzTwZFku).