Skip to content

Add headless MCP stdio mode and centralized output policy - #239

Open
Mike Krüger (mkrueger) wants to merge 32 commits into
mainfrom
dev/mkrueger/mcp_stdio
Open

Mike Krüger (mkrueger) wants to merge 32 commits into
mainfrom
dev/mkrueger/mcp_stdio

Conversation

@mkrueger

@mkrueger Mike Krüger (mkrueger) commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Adds --mcp-stdio, a headless MCP server for clients that launch and own the process, and centralizes shell output so stdio, --quiet, and machine mode follow one policy.

Why

HTTP MCP (--mcp [port]) needs a listening localhost port that any local user can reach, and its lifetime is separate from the client. With stdio, the client owns the process and its pipes: no port, per-client state, and shutdown when the client closes stdin.

  • easy local setup/no open http
  • clear life cycle with seperate by client states

Open Question: If it is really needed.

Stdio contract

  • stdin: MCP JSON-RPC requests only. Commands can never read it.
  • stdout: MCP messages only. Managed console output is redirected to stderr before startup, and Spectre is configured for stderr without ANSI.
  • stderr: startup errors, logs, warnings, and required instructions (such as device-code sign-in).
  • Closing stdin stops the server, including with open subscriptions or pending confirmations.

Supported: startup --connect/--database/--container, protocol 2025-11-25 and earlier (initialize) and 2026-07-28 (server/discover), destructive-command confirmations, and location subscriptions. Rejected at startup: --mcp, --lsp, -c, -k, --clear-history, and --mcp-stdio passed through a response file.

Removed from the tool list, help, and direct invocation, including aliases: jq, theme, and commands restricted from MCP that cannot be confirmed (exit, edit, watch, welcome, sproc, udf, trigger). Destructive commands (delete, rm, rmdb, rmcon) stay available through MCP confirmation. HTTP mode keeps its existing tool list.

Stdio mode does not load or record shell history.

Sign-in never opens a browser. A headless server has no user at the terminal, and the browser launcher (for example xdg-open) inherits the process stdout. --tenant/--hint connections use device code sign-in, and endpoint-only connections use DefaultAzureCredential without its interactive browser step. Cancelling the tool call ends a pending sign-in.

Centralized output

User-facing output now goes through ShellOutput with an explicit category: Information, Progress, Warning, Error, RequiredInstruction, or Result.

  • --quiet suppresses information, progress, banners, and command echoes. Results, warnings, errors, and required instructions stay visible, including code previews shown before a confirmation prompt.
  • Machine-mode stdout carries only the interpreter's final result. Tables that commands draw for interactive users no longer appear there.
  • theme, help, and edit now throw errors instead of printing and returning them. In machine mode their failures previously exited with code 1 and no message; they now produce one {"status":"error",...} object on stderr. Interactive and script errors are reported once.
  • New analyzer rule CZ0003 fails the build on direct Console/AnsiConsole output outside ShellOutput. Line-editor drawing keeps scoped suppressions.

Commits

  1. Add headless MCP stdio mode
  2. Disable shell history in MCP stdio mode
  3. Centralize shell output through a category-based policy
  4. Update Copilot instructions for MCP stdio and output policy
  5. Keep MCP stdio sign-in non-interactive

Known limitations

  • Device-code instructions appear only on stderr, so someone must read them from the client's server log. Surfacing them through MCP could be a follow-up.
  • Stdio isolates the protocol stream but is not a sandbox. The client still acts with the process owner's file and Cosmos permissions.

Reserve stdin and stdout for MCP, support confirmations and subscriptions, and stop on input EOF. Omit unsupported commands from stdio tools and help while preserving HTTP behavior.
Skip history loading and command recording for stdio servers while preserving interactive and HTTP history and explicit diagnostic logging.
Route all user-facing output through ShellOutput so --quiet, machine mode, and MCP stdio are decided in one place. Quiet suppresses information and progress but keeps results, warnings, errors, and required instructions. Machine-mode stdout carries only the interpreter result, and theme, help, and edit failures are reported once through the central error reporter. Add analyzer rule CZ0003 to reject direct console output.
Describe the HTTP and stdio MCP transports and require user-facing output to go through ShellOutput.
Never open a browser in stdio mode: tenant or hint connections use device code sign-in with instructions on stderr, and endpoint-only connections use DefaultAzureCredential without its interactive browser step.
Comment thread CosmosDBShell/Program.cs Fixed
Comment thread CosmosDBShell/Program.cs Resolved
@github-code-quality

github-code-quality Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: C#

C# / code-coverage/dotnet

main 3acd215 dev/mkrueger/mcp_std... 671cb8c +/-
75% 75% 0%
View coverage of the 10 most impacted files.
File main 3acd215 dev/mkrueger/mcp_std... 671cb8c +/-
D:\a\CosmosDBSh...elcomeScreen.cs 96% 78% -18%
D:\a\CosmosDBSh...ThemeCommand.cs 71% 72% +1%
D:\a\CosmosDBSh...hell\Program.cs 83% 85% +2%
D:\a\CosmosDBSh...olOperations.cs 95% 97% +2%
D:\a\CosmosDBSh...ubscriptions.cs 89% 91% +2%
D:\a\CosmosDBSh...lInterpreter.cs 80% 83% +3%
D:\a\CosmosDBSh...nnectCommand.cs 30% 36% +6%
D:\a\CosmosDBSh...oInputStream.cs 0% 53% +53%
D:\a\CosmosDBSh...\ShellOutput.cs 0% 88% +88%
D:\a\CosmosDBSh...StartupInput.cs 0% 89% +89%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated November 05, 2026 14:11 UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

LSP conflicts can bypass validation, localization is unsynchronized, and several machine-mode failures emit non-JSON diagnostics.

Review effort: Balanced
Findings: 6 High severity · 1 Medium severity

Open (7)
What changed in this PR

Adds client-owned MCP stdio transport and centralizes shell output policy for interactive, quiet, machine, and protocol modes.

Changes:

  • Adds headless MCP stdio hosting, confirmation, subscriptions, authentication, and history isolation.
  • Routes command presentation through ShellOutput and enforces it with analyzer CZ0003.
  • Updates documentation, localization, and automated coverage.
File Description
README.md Documents stdio and output behavior.
l10n/​CosmosDBShell.json Adds canonical localized strings.
docs/​navigation.md Documents startup and machine-mode options.
docs/​mcp.md Adds comprehensive stdio guidance.
docs/​connect.md Documents headless authentication.
CosmosDBShell/​Program.cs Configures and launches stdio mode.
CosmosDBShell/​lang/​en.ftl Adds English UI strings.
CosmosDBShell/​GlobalSuppressions.cs Removes obsolete output suppressions.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Mcp/​ToolOperations.cs Adds stdio filtering and confirmation handling.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Mcp/​StdioInputStream.cs Stops the host on stdin EOF.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Mcp/​McpServer.cs Adds stream transport hosting.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Mcp/​LocationResourceSubscriptions.cs Supports stdio subscriptions.
CosmosDBShell/​Azure.Data.Cosmos.Shell.KeyBindings/​ReverseSearchHistoryCommand.cs Scopes analyzer suppressions.
CosmosDBShell/​Azure.Data.Cosmos.Shell.KeyBindings/​ClearScreenCommand.cs Uses centralized screen clearing.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Core/​ShellOutput.cs Implements category-based output routing.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Core/​OutputPolicy.cs Defines output visibility and destination.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Core/​CosmosCompletionRenderer.cs Scopes editor-output suppression.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Core/​CommandRunner.cs Supports command removal by predicate.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​WhoamiCommand.cs Centralizes result rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​WatchCommand.cs Applies output categories to streaming.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​UdfCommand.cs Centralizes UDF output.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​TtlCommand.cs Categorizes update messages.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​TriggerCommand.cs Centralizes trigger output.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ThroughputCommand.cs Centralizes throughput rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ThemeCommand.cs Routes output and throws failures.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​SprocCommand.cs Centralizes stored-procedure output.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​RmDbCommand.cs Centralizes removal results.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​RmContainerCommand.cs Centralizes removal results.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​RmCommand.cs Categorizes warnings and results.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ReplaceCommand.cs Categorizes bulk replacement diagnostics.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​QueryCommand.cs Centralizes query rendering and warnings.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​PwdCommand.cs Centralizes location rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​PatchCommand.cs Categorizes success output.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​MakeItemCommand.cs Categorizes item-write diagnostics.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​MakeDbCommand.cs Centralizes creation results.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​MakeContainerCommand.cs Centralizes creation results.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ListCommand.cs Centralizes list rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​InfoCommand.cs Centralizes informational tables.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​IndexCommand.cs Categorizes update messages.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ImportCommand.cs Categorizes import diagnostics.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​HelpCommand.cs Centralizes help output and failures.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​FtabCommand.cs Centralizes table rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ExportCommand.cs Categorizes export completion.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​EditCommand.cs Routes output and throws failures.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​DoctorCommand.cs Centralizes diagnostic rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​DisconnectCommand.cs Centralizes disconnect results.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​DirCommand.cs Centralizes directory rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ConnectCommand.cs Centralizes connection output.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ConflictCommand.cs Categorizes update output.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​ClsCommand.cs Uses centralized screen clearing.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​CdCommand.cs Categorizes navigation messages.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​CanICommand.cs Centralizes authorization rendering.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​BucketCommand.cs Categorizes bucket output.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​BatchExecutor.cs Centralizes batch results and errors.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​BatchCommand.cs Centralizes batch status rendering.
CosmosDBShell.Tests/​UtilTest/​ShellOutputTests.cs Tests output routing policy.
CosmosDBShell.Tests/​UtilTest/​OutputPolicyTests.cs Tests stdio machine mode.
CosmosDBShell.Tests/​ToolOperationsCallToolTests.cs Tests stdio tools and confirmation scope.
CosmosDBShell.Tests/​StdioInputStreamTests.cs Tests EOF shutdown behavior.
CosmosDBShell.Tests/​Shell/​ShellConfigDirectoryTests.cs Tests disabled history loading.
CosmosDBShell.Tests/​Parser/​StatementPositionalErrorTests.cs Preserves returned-error location coverage.
CosmosDBShell.Tests/​McpLocationSubscriptionTests.cs Tests stdio location subscriptions.
CosmosDBShell.Tests/​McpConfirmationTests.cs Tests stdio confirmation elicitation.
CosmosDBShell.Tests/​Integration/​ShellProcessTests.cs Tests machine and startup output.
CosmosDBShell.Tests/​Integration/​McpStdioProcessTests.cs Exercises real stdio processes.
CosmosDBShell.Tests/​CommandTests/​ThemeCommandTests.cs Updates thrown-error assertions.
CosmosDBShell.Tests/​CommandTests/​ThemeCommandDispatchTests.cs Updates theme failure tests.
CosmosDBShell.Tests/​CommandTests/​ConnectCommandTests.cs Tests non-browser authentication.
CosmosDBShell.Analyzer/​GlobalSuppressions.cs Registers analyzer release suppression.
CosmosDBShell.Analyzer/​DirectConsoleOutputAnalyzer.cs Adds direct-output analyzer CZ0003.
CHANGELOG.md Records user-visible behavior.
.github/​copilot-instructions.md Documents repository stdio constraints.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CosmosDBShell/lang/en.ftl Resolved
Comment thread CosmosDBShell/Program.cs Resolved
Cancel startup on stdin EOF, enforce a shared 60-second connection and navigation deadline, and preserve buffered protocol input. Add lifecycle and cancellation regression tests and update documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 08:15
Comment thread CosmosDBShell/Program.cs Fixed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Attached or response-file LSP options can bypass stdio conflict validation and start the wrong transport.

Review effort: Balanced
Findings: 6 High severity · 2 Medium severity

Open (8)
Previously missed (1)

In code that hasn't changed since last review

Low severity Capitalize “Interactive-only” at sentence start

README.md:47

Capitalize “Interactive-only” because it begins a new sentence.

Copilot AI balanced review requested due to automatic review settings October 6, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread CosmosDBShell/Program.cs Resolved
Comment thread README.md Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 12:38
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Headless default authentication still permits broker-based interactive sign-in despite the no-browser contract.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (3)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 15:31
Keep stdio history untouched and route HTTP command echoes through the output policy.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve structured stdio output and usage exit codes from main snapshot 3acd215.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 13:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Invalid arguments in watch, bucket, and query produce exit code 1 instead of the documented usage-error code 2, preventing automation from distinguishing argument errors from operational failures.

3 open issues

Review effort: Balanced

Preserve exit code 2 for invalid bucket values and missing machine-mode watch bounds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 13:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Human assessment is needed because malformed stdio arguments can bypass usage-error handling and terminate the process with an unhandled exception.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

Report structured usage errors before typed option access or help/LSP early returns, including response-file input.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 14:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Static review cannot establish the cross-platform guarantees for stdio EOF/cancellation with pending requests or real device-code/default-credential sign-in, so runtime validation is needed.

No open issues 🎉

Review effort: Balanced

Mike Krüger (mkrueger) added a commit that referenced this pull request Nov 18, 2026
* Centralize shell output and preserve machine-mode contracts

Extract the output policy and command migrations from #239 without MCP stdio. Preserve diagnostics and required instructions in quiet mode, report command errors consistently, and require bounded machine-mode watch results.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Preserve required prompts and theme validation diagnostics

Address review feedback in #254 without changing singleton lifetime or cleanup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Enforce console clearing policy and preserve quiet editor history

Address the previously missed overview findings in #254 and add focused analyzer and editor-history regression coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Preserve machine-mode write and output error details

Address remaining overview findings in #254.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Bound machine-mode import diagnostics

* Use the executing shell for command output and disable CI ANSI enrichers

mkitem, replace, import, and theme now read machine mode and output from the shell passed to ExecuteAsync instead of the singleton. ShellOutput's plain console no longer lets Spectre's CI profile enrichers re-enable ANSI escapes in machine-mode stderr.

* Return client bucket selection and honor interactive 2> for diagnostics

Client bucket commands now return a clientBucket result for machine mode. Outside machine mode, ShellOutput routes warnings and errors to an active 2>/2>> redirect while keeping confirmation prompts on the terminal.

* Classify info RBAC permission diagnostics as errors

Interactive info 2> now captures the permission failure and its remediation text.

* Address code-quality findings in new tests

Fault the bad-status stream mock instead of returning an undisposed ResponseMessage, and use Path.Join for the theme test path.

* Defer changelog updates in #254 until release preparation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Preserve redirected batch failure diagnostics in #254

Use the executing shell for batch renderers and avoid rendering an error a second time after PrintState reports it to stderr redirection.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Localize bulk item diagnostic prefixes in #254

Format insert, upsert, and replacement item positions through the existing localization catalog entry.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Reuse the existing bulk diagnostic localization entry

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Use executing shell output for bucket selection in #254

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Classify bucket and watch argument failures as usage errors in #254

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mkrueger

Copy link
Copy Markdown
Collaborator Author

Copilot resolve the merge conflicts in this pull request

# Conflicts:
#	CosmosDBShell.Analyzer/DirectConsoleOutputAnalyzer.cs
#	CosmosDBShell.Tests/CommandTests/BucketCommandTests.cs
#	CosmosDBShell.Tests/CommandTests/ThemeCommandTests.cs
#	CosmosDBShell.Tests/CommandTests/WatchCommandTests.cs
#	CosmosDBShell.Tests/Integration/ShellProcessTests.cs
#	CosmosDBShell.Tests/UtilTest/ShellOutputTests.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/BatchExecutor.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/BucketCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/BulkCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ConflictCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ExportCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ImportCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/IndexCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/InfoCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/MakeContainerCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/MakeDbCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/MakeItemCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/PwdCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/QueryCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ReplaceCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/RmCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ThemeCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ThroughputCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/TtlCommand.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Core/OutputPolicy.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Core/ShellInterpreter.cs
#	CosmosDBShell/Azure.Data.Cosmos.Shell.Core/ShellOutput.cs
#	CosmosDBShell/Program.cs
#	docs/commands.md
#	docs/navigation.md

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

MCP stdio mode suppresses explicitly requested help and version output, breaking documented stderr behavior and process tests, while a connection test incorrectly expects a deliberately suppressed informational banner.

2 open issues

Review effort: Balanced

}

var stderr = error.ToString();
Assert.Contains(MessageService.GetString("shell-connect-devicecode-stdio"), stderr, StringComparison.Ordinal);
Comment thread CosmosDBShell/Program.cs Resolved
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:13
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Copilot resolve the merge conflicts in this pull request

Resolved in merge commit c36c168, with follow-up fixes in f49fd73 and 5c67718. Both builds and the offline suite pass (5,940 passed, 6 skipped). The final CodeQL scan timed out; an earlier scan reported no alerts.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the MCP stdio transport changes.

1 open issue
1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the new stdio transport.

1 open issue

Review effort: Balanced

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants