Skip to content

docs(mcp): explain PowerShell launch environment scope - #8762

Closed
ShuaixinHuang wants to merge 2 commits into
morluto:mainfrom
ShuaixinHuang:codex/docs-powershell-mcp-environment
Closed

ShuaixinHuang wants to merge 2 commits into
morluto:mainfrom
ShuaixinHuang:codex/docs-powershell-mcp-environment

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a PowerShell example to the client configuration guide for selecting an MCP input-schema profile. Explain that a terminal assignment affects that shell and its children, while an agent needs the setting in its own REA registration and a restart.

Problem and expected behavior

POSIX-style NAME=value command syntax is not a PowerShell command prefix. Windows readers also need to distinguish a successful terminal doctor run from the environment used by an already running desktop client.

Change and scope

One documentation page gains the $env: example, previous-value restoration guidance, client-specific env / OpenCode environment fields, the supported selections persisted by setup, and a link to launch-environment verification. This is an independent documentation clarification; no issue is claimed fixed and no runtime behavior changes. Maintainer capability/authority scope decision: not applicable.

  • Owning surface: client configuration documentation.
  • CLI/MCP schemas, Evidence, provider behavior, target selection, installation and generated metadata: unchanged.
  • Documentation or usability only; no target interaction.

Validation performed

  • npm run docs:check — passed, including 9 README consistency tests.
  • npm run docs:build — passed; the rendered page contains the new section anchor.
  • PowerShell example parsing, Node child-process environment inheritance, and restoration of the original environment value — passed on Windows.
  • No new automated test: documentation-only clarification. No desktop-client launch or real-provider verification is claimed.

Compatibility, safety, and release

No runtime, schema, package, persistent environment or client-configuration changes. The example's process-scoped setting and restoration instructions are explicit.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T10:31:05.641569Z b2f3948 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only PR appears safe to merge.

Summary

Clarifies how PowerShell launch variables affect REA and its clients.

  • The client guide shows how to set the profile in PowerShell or an agent registration.

Reviews (2) · Last reviewed commit: "docs(mcp): qualify saved setup selection..." · Reviewed by Greptile

Comment thread docs/client-configuration.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b9acc6f0f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/client-configuration.md Outdated
Comment on lines +68 to +69
To select this profile for an agent, set `REA_MCP_INPUT_SCHEMA_PROFILE` in that
client's existing REA registration `env` object and restart the client, preserving

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Account for OpenCode's environment registration field

For the supported OpenCode client, both registration dialects use environment, not env; parseClientConfiguration() explicitly selects that member in src/application/ClientConfigurationDocument.ts:241. If an OpenCode reader is switching an existing full profile to compact, following this instruction writes to the wrong member and leaves environment.REA_MCP_INPUT_SCHEMA_PROFILE unchanged, so the intended profile selection does not take effect. Qualify the env instruction by client or explicitly call out OpenCode's environment object.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcp MCP server, transport, and tool registration documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants