Skip to content

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

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 4, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #8961 at the author's request.

Supersedes #8854 at the author's request. The branch and code are unchanged; this new PR requires its own CI and initial author readiness confirmation.

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.

Supersedes #8762.

@chatgpt-codex-connector

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 ⚠️ Failed 2026-11-04T12:53:17.275758Z
We couldn’t complete this review. Comment @codex review to try again.
b2f3948 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The documentation change appears safe to merge.

Summary

Adds PowerShell guidance for selecting an MCP input-schema profile.

  • PowerShell readers can set REA's input profile for a command or an agent.

Review limits: No commands from the documentation were executed. The supplied description says this PR supersedes #8854 and #8762. Whether this PR has itself been superseded could not be checked because GitHub access required authentication.

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

@morluto morluto added area: mcp MCP server, transport, and tool registration documentation Improvements or additions to documentation labels Nov 22, 2026
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