Commit 9166fc7
committed
document per-project Claude Code configuration
Identity and every behavior flag are readable from the environment,
and MCP server processes inherit the session environment, so an
env-free registration in ~/.claude.json configures per project:
each project carries its GERRIT_* identity and GERRIT_MCP_* behavior
in the env block of .claude/settings.local.json, shared values sit
in ~/.claude/settings.json, and the server's own defaults cover the
rest. Identity stays per project deliberately - repositories may
review on different Gerrit instances with different credentials.
Layering rules established empirically against Claude Code: settings
env is inherited by MCP server processes with normal settings
precedence; a variable named in the registration's env block shadows
every settings layer; $VAR/${VAR} references there never resolve
from settings files - ${VAR} expands only from the shell that
launched claude, otherwise the literal string is passed through.1 parent e3d3778 commit 9166fc7
1 file changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
117 | 162 | | |
118 | 163 | | |
119 | 164 | | |
| |||
0 commit comments