Skip to content
CLI Tools
Command

/add-integration

Add support for a new coding agent integration.

BOOST
From plugin
mgrep
4.4k6 skills6 commands
Install
> /plugin marketplace add mixedbread-ai/mgrep
> /plugin install mgrep@Mixedbread-Grep

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/add-integration

Context preview

What this command does when you run it.

Add support for a new coding agent integration.

Command definition

add-integration.md

Add Integration

Add support for a new coding agent integration.

Arguments

  • `$ARGUMENTS` - Name of the agent to integrate (e.g., "cursor", "windsurf")

Steps

1. **Research the agent's configuration**

  • Find where the agent stores its configuration
  • Understand what format/files it expects
  • Look for existing plugin/extension patterns

2. **Create the installer** at `src/install/$ARGUMENTS.ts`:

   import { Command } from "commander";

   export const install$ARGUMENTS = new Command("install-$ARGUMENTS")
     .description("Install mgrep integration for $ARGUMENTS")
     .action(async () => {
       // 1. Check if agent is installed
       // 2. Authenticate user if needed
       // 3. Write configuration files
       // 4. Display success message
     });

   export const uninstall$ARGUMENTS = new Command("uninstall-$ARGUMENTS")
     .description("Remove mgrep integration from $ARGUMENTS")
     .action(async () => {
       // 1. Find configuration files
       // 2. Remove mgrep-specific config
       // 3. Display success message
     });

3. **Register commands** in `src/index.ts`:

  • Add imports for both install and uninstall
  • Add `program.addCommand()` for both

4. **Add plugin configuration** if needed:

  • Create `plugins/$ARGUMENTS/` directory
  • Add any required manifest or config files

5. **Add tests**:

  • Test installation creates correct files
  • Test uninstallation removes files cleanly

6. **Update documentation**:

  • Add to README.md under "Using it with Coding Agents"
  • Add to AGENTS.md if agent-specific guidelines needed

7. **Verify**:

   pnpm typecheck
   pnpm test
   pnpm build
Read more
Ships withmgrep

A calm, CLI-native way to semantically grep everything, like code, images, pdfs and more.

Get the whole plugin
Stats
4,414
Stars
176
Forks
Maintained
Maintenance
TypeScript
Language
Apache-2.0
License
5mo ago
Last commit
11mo ago
Created
1d ago
Added

Repo: mixedbread-ai/mgrep

Other commands on mgrep.