open-code-review/internal/tool
kite 6adcb1ecd4
feat: add standard MCP tool support (#212)
* feat(mcp): add Model Context Protocol server support

Add MCP client and provider packages that allow integrating external
MCP tool servers into the review loop. Includes config commands for
managing MCP servers, stdio subprocess integration tests, and
comprehensive test coverage.

* refactor(mcp): rename loop variable in contentToText to avoid shadowing Client receiver

* fix(mcp): use platform-specific shell for setup command

The MCP server setup command was hardcoded to use `sh -c`, which
fails on Windows. Extract a `shellCommand` helper behind build tags
to use `cmd /c` on Windows and `sh -c` elsewhere.

* docs(mcp): add MCP server documentation to all README locales
2026-07-01 19:10:16 +08:00
..
code_comment.go fix: handle previously swallowed json.Unmarshal errors (#78) 2026-06-08 21:03:00 +08:00
code_comment_test.go test: expand unit test coverage for agent, llm, llmloop, and tool packages 2026-06-26 23:09:11 +08:00
code_search.go fix: enable code_search to find content in untracked files 2026-06-26 00:01:44 +08:00
code_search_test.go test: improve coverage for tool package from 79.5% to 93.6% 2026-06-27 11:00:23 +08:00
comment_collector.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
comment_collector_test.go test: improve coverage for tool package from 79.5% to 93.6% 2026-06-27 11:00:23 +08:00
definitions.go feat: add standard MCP tool support (#212) 2026-07-01 19:10:16 +08:00
definitions_test.go feat: add standard MCP tool support (#212) 2026-07-01 19:10:16 +08:00
file_find.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
file_find_test.go test: improve coverage for tool package from 79.5% to 93.6% 2026-06-27 11:00:23 +08:00
file_read.go perf(tool): stream file reads line-by-line to avoid full-file memory allocation 2026-06-06 20:59:05 +08:00
file_read_diff.go fix(tool): make Registry and DiffMap concurrency-safe via freeze semantics 2026-06-06 19:41:11 +08:00
file_read_diff_test.go test: add unit tests for pure logic functions across 6 packages 2026-06-26 22:41:35 +08:00
file_read_test.go test: improve coverage for tool package from 79.5% to 93.6% 2026-06-27 11:00:23 +08:00
filereader.go Fix workspace symlink diff containment (#125) 2026-06-15 00:03:36 +08:00
filereader_read_test.go test: improve coverage for tool package from 79.5% to 93.6% 2026-06-27 11:00:23 +08:00
filereader_test.go test: add unit tests for pure logic functions across 6 packages 2026-06-26 22:41:35 +08:00
response_message.go feat: init 2026-05-20 22:03:52 +08:00
response_message_test.go test: improve coverage for tool package from 79.5% to 93.6% 2026-06-27 11:00:23 +08:00
stub.go fix(tool): propagate context.Context to all tool providers to enable subprocess cancellation 2026-06-06 19:26:34 +08:00
stub_test.go test: improve coverage for tool package from 79.5% to 93.6% 2026-06-27 11:00:23 +08:00