mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-31 20:14:32 +00:00
* feat(mcp): add remote MCP server support via Streamable HTTP transport Support connecting to remote MCP servers using the Streamable HTTP transport from go-sdk. Users configure remote servers with type=remote, a URL, and optional headers (with environment variable expansion for secrets). Authentication stays outside OCR — users provide tokens via headers, matching CLI tool conventions. Closes #335 * docs(mcp): document remote MCP server support and shell expansion warning Add remote transport (Streamable HTTP) documentation to MCP Server sections in all READMEs and CLI help text. Include type/url/headers field descriptions, remote server examples (CLI and JSON config), and a tip about using single quotes to prevent shell expansion. * fix(mcp): harden remote MCP client validation and error handling - Reject URLs with missing host (e.g. "http://") in config validation - Make empty-after-expansion header values a fatal error instead of a warning - Detect HTTP 401/403 responses and surface clear authentication error messages - Drain response body before closing to preserve connection pool reuse * test(mcp): add tests for header env var expansion failure in NewRemoteClient Verify that NewRemoteClient returns a clear error when header values expand to empty strings, covering both explicitly empty env vars and completely unset env vars. |
||
|---|---|---|
| .. | ||
| background_file.go | ||
| background_file_test.go | ||
| config_cmd.go | ||
| config_cmd_test.go | ||
| config_dispatch_test.go | ||
| delegate_cmd.go | ||
| emit_run_result_test.go | ||
| flags.go | ||
| flags_test.go | ||
| git.go | ||
| git_test.go | ||
| llm_cmd.go | ||
| main.go | ||
| output.go | ||
| output_helpers_test.go | ||
| output_test.go | ||
| procattr_unix.go | ||
| procattr_windows.go | ||
| provider_cmd.go | ||
| provider_cmd_test.go | ||
| provider_tui.go | ||
| provider_tui_funcs_test.go | ||
| provider_tui_test.go | ||
| review_cmd.go | ||
| review_cmd_test.go | ||
| rules_cmd.go | ||
| scan_cmd.go | ||
| scan_cmd_test.go | ||
| session_cmd.go | ||
| session_cmd_test.go | ||
| shared.go | ||
| shared_test.go | ||
| shell_unix.go | ||
| shell_windows.go | ||
| smallfiles_test.go | ||
| version.go | ||
| viewer_cmd.go | ||