Configuration

Ignore rules, environment variables, CLI, MCP, and extension settings.

There is very little to configure, which is deliberate. Everything below has a default that works.

Ignore rules

The one setting worth attention — it is behind most surprises about speed and file counts.

Prism combines these sources:

  1. A builtin list of directories nobody wants indexed
  2. Your .gitignore
  3. .prismignore at the repository root, if present
  4. Optional excludeGlobs in .prism/config.json

.prismignore uses gitignore syntax and applies on top of the others. Use it for things that belong in the repository but not in the analysis — generated clients, vendored code, large fixtures:

src/generated/**
fixtures/large/**

Defaults already cover node_modules, dist, build, .next, out, coverage, .git, .turbo, .cache, minified JavaScript and source maps, plus ecosystem-specific additions once Prism detects the ecosystem.

.prism/config.json

Shared indexing knobs for CLI and IDE (Core reads this at workspace open):

{
  "excludeGlobs": ["vendor/**", "fixtures/large/**"],
  "maxFileBytes": 5242880
}
FieldEffect
excludeGlobsExtra gitignore-style patterns
maxFileBytesSkip hashing files larger than this; null = no limit

Precedence when indexing: CLI / API flags → .prism/config.json → defaults (5 MiB max file size).

Environment variables

VariableEffect
PRISM_WORKSPACEThe repository to analyse, when not passed explicitly
NO_COLORDisables ANSI colour in CLI output
COLUMNSTerminal width used for wrapping, when it cannot be detected

CLI

Most behaviour is flags; indexing also honours .prism/config.json. See using the CLI for global options and the command reference for per-command options.

Workspace resolution, most explicit first: --workspace, then PRISM_WORKSPACE, then the nearest ancestor with a .git, then the current directory. prism doctor prints which rule won.

MCP server

Configured by your MCP client, not by Prism. Happy path — no path flags:

{
  "mcpServers": {
    "prism": {
      "command": "npx",
      "args": ["-y", "@repo-prism/mcp-server"]
    }
  }
}

Resolution matches the CLI. Only set --workspace / PRISM_WORKSPACE when the client starts the server from the wrong directory. See MCP install.

Extension settings

See IDE settings. One VS Code setting lives in the editor:

SettingDefaultEffect
prism.codeLens.enabledtrueBlast Radius, Ownership and Map lenses above the first line of TS/JS files

Consent and privacy toggles are documented under consent and privacy.

What is stored, and where

Settings that belong to a repository — consent, bookmarks — live in .prism/ alongside the index. Presentation settings belong to the client.

Troubleshooting · CLI usage · Consent and privacy

On this page