Skip to content

Conversation

@mlopezgez
Copy link

Add Repomix MCP Server Extension

Description

This PR adds the Repomix MCP Server extension to Zed, which integrates Repomix as a Model Context Protocol (MCP) server. This enables AI assistants in Zed to pack and analyze entire codebases efficiently.

What is Repomix?

Repomix is a powerful tool that packs entire repositories into a single AI-friendly file, making it easy for AI assistants to understand and analyze codebases comprehensively.

Features

  • Repository Packing: Pack local or remote repositories into AI-optimized format
  • Remote Repository Support: Works with both HTTPS and SSH URLs
  • MCP Integration: Seamless integration with Zed's Assistant through the Model Context Protocol
  • Flexible Output: Supports multiple formats (XML, Markdown, JSON, Plain text)
  • Code Analysis: Search and analyze packed repository content

Prerequisites

Users need to have:

  • Node.js installed
  • Repomix installed globally: npm install -g repomix

Configuration

Basic setup in Zed settings:

{ "context_servers": { "mcp-server-repomix": {} } }

Optional custom Repomix path:

{ "context_servers": { "mcp-server-repomix": { "settings": { "repomix_path": "/custom/path/to/repomix" } } } }

Usage Examples

Once installed, users can ask their Zed Assistant to:

  • "Pack the current repository and show me an overview"
  • "Analyze the structure of repository https://github.com/yamadashy/repomix"
  • "Pack only the TypeScript files in the src directory"
  • "Find all authentication-related code in this repository"

Testing

The extension has been tested with:

  • Local repository packing
  • Remote repository packing (HTTPS and SSH)
  • Various output formats
  • Search and analysis features

Related Links

Checklist

  • Extension follows Zed extension guidelines
  • Documentation is clear and comprehensive
  • Configuration examples are provided
  • Prerequisites are clearly listed
  • Extension builds successfully
  • MCP server integration works correctly
@cla-bot
Copy link

cla-bot bot commented Dec 2, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @mlopezgez on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@mlopezgez
Copy link
Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Dec 2, 2025
@cla-bot
Copy link

cla-bot bot commented Dec 2, 2025

The cla-bot has been summoned, and re-checked this pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant