What
The env block in settings.json may now set OTEL_SERVICE_NAME, OTEL_TRACES_EXPORT_INTERVAL and CLAUDE_CODE_FORK_SUBAGENT, which previously only took effect from the shell. The first names your service in OpenTelemetry output and the third turns forked subagents off.
Usage
{ "env": { "OTEL_SERVICE_NAME": "claude-code-team-a", "CLAUDE_CODE_FORK_SUBAGENT": "false" } }Evidence
OTEL_TRACES_EXPORT_INTERVAL
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Tools and environments touched a line naming env after this was published.
Claude writes and runs Python, R, and shell commands (PowerShell on Windows). Python and R run in a persistent kernel that keeps variables in memory across steps in a session. The kernel ends after about 30 minutes idle, when a package ins…claude-science/tools-and-environments see the edit
Confirmed since
Anthropic's documentation has since written up env, on MCP, plugins, skills, and hooks.
| `.mcp.json` | MCP servers bundled with this plugin. A JSON object keyed by server name: `{"mcpServers": {"<name>": {"type": "http", "url": "...", "oauth": true}}}`. A remote entry uses `type` (`http` or `sse`), not `transport`, and suppo…third-party/claude-desktop/extensions see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up env, on MCP, plugins, skills, and hooks.