Config File

Conjra uses cosmiconfig to discover configuration from your project.

Discovery order

Conjra searches for configuration in this order (first found wins):

  1. conjra.config.ts
  2. conjra.config.js
  3. conjra.config.json
  4. package.json (under "conjra" key)

Schema

interface ConjraConfig {
  providers: string[];
  mcpServerCommand?: string;
}

providers

An array of provider names to pre-configure. Optional, defaults to [].

mcpServerCommand

A custom command path for the MCP server binary. Optional.

Examples

Minimal (package.json)

{
  "conjra": {}
}

With providers

{
  "conjra": {
    "providers": ["stripe", "supabase"]
  }
}

Using conjra.config.ts

export default {
  providers: ["stripe", "supabase", "vercel"],
};

Loading behavior

The loadConfig() function searches with cosmiconfig, validates with Zod, and returns parsed config or defaults. On failure, it returns { providers: [] } without throwing. The saveConfig() function exists as a stub and is not yet implemented.

Edit this page on GitHub