wcgw 2.8.5__tar.gz → 2.8.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wcgw might be problematic. Click here for more details.

Files changed (174) hide show
  1. {wcgw-2.8.5 → wcgw-2.8.7}/PKG-INFO +55 -16
  2. {wcgw-2.8.5 → wcgw-2.8.7}/README.md +54 -15
  3. {wcgw-2.8.5 → wcgw-2.8.7}/pyproject.toml +3 -2
  4. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/file_ops/diff_edit.py +7 -3
  5. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/file_ops/search_replace.py +50 -9
  6. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/mcp_server/server.py +2 -1
  7. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/tools.py +92 -81
  8. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/file_ops/test_search_replace.py +73 -61
  9. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_tools_extended.py +51 -31
  10. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_tools_shell.py +73 -73
  11. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_command_validation.py +16 -14
  12. wcgw-2.8.7/tests/client/tools/test_docker_operations.py +39 -0
  13. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_error_handling.py +2 -0
  14. wcgw-2.8.7/tests/client/tools/test_error_handling_full.py +152 -0
  15. wcgw-2.8.7/tests/client/tools/test_execute_bash.py +110 -0
  16. wcgw-2.8.7/tests/client/tools/test_file_errors.py +22 -0
  17. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_is_int.py +3 -3
  18. wcgw-2.8.7/tests/client/tools/test_large_blocks.py +37 -0
  19. wcgw-2.8.7/tests/client/tools/test_prompt_update.py +48 -0
  20. wcgw-2.8.7/tests/client/tools/test_terminal_output_incremental.py +46 -0
  21. wcgw-2.8.7/tests/client/tools/test_terminal_output_raw.py +57 -0
  22. wcgw-2.8.7/tests/client/tools/test_terminal_sequence.py +50 -0
  23. wcgw-2.8.7/tests/client/tools/test_timeout_handling.py +100 -0
  24. wcgw-2.8.7/tests/client/tools/test_timeout_state.py +30 -0
  25. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_user_interaction.py +21 -15
  26. wcgw-2.8.7/tests/test_initialize.py +250 -0
  27. {wcgw-2.8.5 → wcgw-2.8.7}/uv.lock +1 -1
  28. wcgw-2.8.5/tests/client/tools/test_docker_operations.py +0 -22
  29. wcgw-2.8.5/tests/client/tools/test_execute_bash.py +0 -71
  30. wcgw-2.8.5/tests/client/tools/test_large_blocks.py +0 -21
  31. wcgw-2.8.5/tests/test_initialize.py +0 -281
  32. {wcgw-2.8.5 → wcgw-2.8.7}/.github/workflows/python-publish.yml +0 -0
  33. {wcgw-2.8.5 → wcgw-2.8.7}/.github/workflows/python-tests.yml +0 -0
  34. {wcgw-2.8.5 → wcgw-2.8.7}/.github/workflows/python-types.yml +0 -0
  35. {wcgw-2.8.5 → wcgw-2.8.7}/.gitignore +0 -0
  36. {wcgw-2.8.5 → wcgw-2.8.7}/.gitmodules +0 -0
  37. {wcgw-2.8.5 → wcgw-2.8.7}/.python-version +0 -0
  38. {wcgw-2.8.5 → wcgw-2.8.7}/.vscode/settings.json +0 -0
  39. {wcgw-2.8.5 → wcgw-2.8.7}/Dockerfile +0 -0
  40. {wcgw-2.8.5 → wcgw-2.8.7}/LICENSE +0 -0
  41. {wcgw-2.8.5 → wcgw-2.8.7}/gpt_action_json_schema.json +0 -0
  42. {wcgw-2.8.5 → wcgw-2.8.7}/gpt_instructions.txt +0 -0
  43. {wcgw-2.8.5 → wcgw-2.8.7}/openai.md +0 -0
  44. {wcgw-2.8.5 → wcgw-2.8.7}/src/__init__.py +0 -0
  45. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.git +0 -0
  46. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  47. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  48. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.github/workflows/main-checks.yml +0 -0
  49. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.github/workflows/publish-pypi.yml +0 -0
  50. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.github/workflows/pull-request-checks.yml +0 -0
  51. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.github/workflows/shared.yml +0 -0
  52. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.gitignore +0 -0
  53. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/.python-version +0 -0
  54. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/CODE_OF_CONDUCT.md +0 -0
  55. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/CONTRIBUTING.md +0 -0
  56. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/LICENSE +0 -0
  57. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/README.md +0 -0
  58. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/RELEASE.md +0 -0
  59. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/SECURITY.md +0 -0
  60. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/README.md +0 -0
  61. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-prompt/.python-version +0 -0
  62. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-prompt/README.md +0 -0
  63. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/__init__.py +0 -0
  64. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/__main__.py +0 -0
  65. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/server.py +0 -0
  66. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-prompt/pyproject.toml +0 -0
  67. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-resource/.python-version +0 -0
  68. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-resource/README.md +0 -0
  69. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/__init__.py +0 -0
  70. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/__main__.py +0 -0
  71. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/server.py +0 -0
  72. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-resource/pyproject.toml +0 -0
  73. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-tool/.python-version +0 -0
  74. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-tool/README.md +0 -0
  75. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/__init__.py +0 -0
  76. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/__main__.py +0 -0
  77. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/server.py +0 -0
  78. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/examples/servers/simple-tool/pyproject.toml +0 -0
  79. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/pyproject.toml +0 -0
  80. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/__init__.py +0 -0
  81. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/client/__init__.py +0 -0
  82. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/client/__main__.py +0 -0
  83. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/client/session.py +0 -0
  84. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/client/sse.py +0 -0
  85. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/client/stdio.py +0 -0
  86. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/py.typed +0 -0
  87. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/server/__init__.py +0 -0
  88. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/server/__main__.py +0 -0
  89. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/server/models.py +0 -0
  90. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/server/session.py +0 -0
  91. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/server/sse.py +0 -0
  92. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/server/stdio.py +0 -0
  93. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/server/websocket.py +0 -0
  94. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/__init__.py +0 -0
  95. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/context.py +0 -0
  96. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/exceptions.py +0 -0
  97. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/memory.py +0 -0
  98. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/progress.py +0 -0
  99. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/session.py +0 -0
  100. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/version.py +0 -0
  101. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/src/mcp_wcgw/types.py +0 -0
  102. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/__init__.py +0 -0
  103. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/client/__init__.py +0 -0
  104. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/client/test_session.py +0 -0
  105. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/client/test_stdio.py +0 -0
  106. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/conftest.py +0 -0
  107. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/server/__init__.py +0 -0
  108. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/server/test_session.py +0 -0
  109. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/server/test_stdio.py +0 -0
  110. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/shared/test_memory.py +0 -0
  111. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/tests/test_types.py +0 -0
  112. {wcgw-2.8.5 → wcgw-2.8.7}/src/mcp_wcgw_fork/uv.lock +0 -0
  113. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/__init__.py +0 -0
  114. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/__init__.py +0 -0
  115. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/common.py +0 -0
  116. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/computer_use.py +0 -0
  117. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/diff-instructions.txt +0 -0
  118. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/mcp_server/Readme.md +0 -0
  119. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/mcp_server/__init__.py +0 -0
  120. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/memory.py +0 -0
  121. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/modes.py +0 -0
  122. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/repo_ops/display_tree.py +0 -0
  123. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/repo_ops/path_prob.py +0 -0
  124. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/repo_ops/paths_model.vocab +0 -0
  125. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/repo_ops/paths_tokens.model +0 -0
  126. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/repo_ops/repo_context.py +0 -0
  127. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/client/sys_utils.py +0 -0
  128. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/relay/serve.py +0 -0
  129. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/relay/static/privacy.txt +0 -0
  130. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw/types_.py +0 -0
  131. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw_cli/__init__.py +0 -0
  132. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw_cli/__main__.py +0 -0
  133. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw_cli/anthropic_client.py +0 -0
  134. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw_cli/cli.py +0 -0
  135. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw_cli/openai_client.py +0 -0
  136. {wcgw-2.8.5 → wcgw-2.8.7}/src/wcgw_cli/openai_utils.py +0 -0
  137. {wcgw-2.8.5 → wcgw-2.8.7}/static/claude-ss.jpg +0 -0
  138. {wcgw-2.8.5 → wcgw-2.8.7}/static/computer-use.jpg +0 -0
  139. {wcgw-2.8.5 → wcgw-2.8.7}/static/example.jpg +0 -0
  140. {wcgw-2.8.5 → wcgw-2.8.7}/static/rocket-icon.png +0 -0
  141. {wcgw-2.8.5 → wcgw-2.8.7}/static/ss1.png +0 -0
  142. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/file_ops/test_diff_edit.py +0 -0
  143. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/repo_ops/__init__.py +0 -0
  144. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/repo_ops/test_display_tree.py +0 -0
  145. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/repo_ops/test_display_tree_simple.py +0 -0
  146. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/repo_ops/test_path_prob.py +0 -0
  147. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/repo_ops/test_repo_context.py +0 -0
  148. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_anthropic_client_utils.py +0 -0
  149. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_memory.py +0 -0
  150. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_openai_utils.py +0 -0
  151. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_tools_basic.py +0 -0
  152. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_tools_file_ops.py +0 -0
  153. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_tools_files.py +0 -0
  154. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/test_tools_validation.py +0 -0
  155. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/__init__.py +0 -0
  156. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_file_operations.py +0 -0
  157. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_files/test1.py +0 -0
  158. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_files/test2.py +0 -0
  159. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_files/test_file.py +0 -0
  160. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_full_coverage.py +0 -0
  161. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_knowledge_transfer.py +0 -0
  162. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_render_terminal.py +0 -0
  163. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_terminal_output.py +0 -0
  164. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_terminal_output_full.py +0 -0
  165. {wcgw-2.8.5 → wcgw-2.8.7}/tests/client/tools/test_write_file.py +0 -0
  166. {wcgw-2.8.5 → wcgw-2.8.7}/tests/conftest.py +0 -0
  167. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_anthropic_client.py +0 -0
  168. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_basic.py +0 -0
  169. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_common.py +0 -0
  170. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_computer_use.py +0 -0
  171. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_computer_use_base.py +0 -0
  172. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_computer_use_shell.py +0 -0
  173. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_sys_utils.py +0 -0
  174. {wcgw-2.8.5 → wcgw-2.8.7}/tests/test_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wcgw
3
- Version: 2.8.5
3
+ Version: 2.8.7
4
4
  Summary: Shell and coding agent on claude and chatgpt
5
5
  Project-URL: Homepage, https://github.com/rusiaaman/wcgw
6
6
  Author-email: Aman Rusia <gapypi@arcfu.com>
@@ -29,10 +29,11 @@ Description-Content-Type: text/markdown
29
29
 
30
30
  # Shell and Coding agent for Claude and Chatgpt
31
31
 
32
+ Empowering chat applications to code, build and run on your local machine.
33
+
32
34
  - Claude - An MCP server on claude desktop for autonomous shell and coding agent. (mac only)
33
35
  - Chatgpt - Allows custom gpt to talk to your shell via a relay server. (linux or mac)
34
36
 
35
-
36
37
  ⚠️ Warning: do not allow BashCommand tool without reviewing the command, it may result in data loss.
37
38
 
38
39
  [![Tests](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml)
@@ -42,13 +43,14 @@ Description-Content-Type: text/markdown
42
43
  [![smithery badge](https://smithery.ai/badge/wcgw)](https://smithery.ai/server/wcgw)
43
44
 
44
45
  ## Updates
45
- - [15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
46
+
47
+ - [15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
46
48
 
47
49
  - [8 Jan 2025] Context saving tool for saving relevant file paths along with a description in a single file. Can be used as a task checkpoint or for knowledge transfer.
48
50
 
49
51
  - [29 Dec 2024] Syntax checking on file writing and edits is now stable. Made `initialize` tool call useful; sending smart repo structure to claude if any repo is referenced. Large file handling is also now improved.
50
52
 
51
- - [9 Dec 2024] [Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
53
+ - [9 Dec 2024] [Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
52
54
 
53
55
  - [01 Dec 2024] Removed author hosted relay server for chatgpt.
54
56
 
@@ -60,19 +62,19 @@ Description-Content-Type: text/markdown
60
62
  - ⚡ **Large file edit**: Supports large file incremental edits to avoid token limit issues. Faster than full file write.
61
63
  - ⚡ **Syntax checking on edits**: Reports feedback to the LLM if its edits have any syntax errors, so that it can redo it.
62
64
  - ⚡ **Interactive Command Handling**: Supports interactive commands using arrow keys, interrupt, and ansi escape sequences.
63
- - ⚡ **File protections**:
64
- - The AI needs to read a file at least once before it's allowed to edit or rewrite it. This avoids accidental overwrites.
65
- - Avoids context filling up while reading very large files. Files get chunked based on token length.
65
+ - ⚡ **File protections**:
66
+ - The AI needs to read a file at least once before it's allowed to edit or rewrite it. This avoids accidental overwrites.
67
+ - Avoids context filling up while reading very large files. Files get chunked based on token length.
66
68
  - On initialisation the provided workspace's directory structure is returned after selecting important files (based on .gitignore as well as a statistical approach)
67
69
  - File edit based on search-replace tries to find correct search block if it has multiple matches based on previous search blocks. Fails otherwise (for correctness).
68
70
  - File edit has spacing tolerant matching, with warning on issues like indentation mismatch. If there's no match, the closest match is returned to the AI to fix its mistakes.
69
71
  - Using Aider-like search and replace, which has better performance than tool call based search and replace.
70
- - ⚡ **Shell optimizations**:
72
+ - ⚡ **Shell optimizations**:
71
73
  - Only one command is allowed to be run at a time, simplifying management and avoiding rogue processes. There's only single shell instance at any point of time.
72
- - Current working directory is always returned after any shell command to prevent AI from getting lost.
74
+ - Current working directory is always returned after any shell command to prevent AI from getting lost.
73
75
  - Command polling exits after a quick timeout to avoid slow feedback. However, status checking has wait tolerance based on fresh output streaming from a command. Both of these approach combined provides a good shell interaction experience.
74
76
  - ⚡ **Saving repo context in a single file**: Task checkpointing using "ContextSave" tool saves detailed context in a single file. Tasks can later be resumed in a new chat asking "Resume `task id`". The saved file can be used to do other kinds of knowledge transfer, such as taking help from another AI.
75
- - ⚡ **Easily switch between various modes**:
77
+ - ⚡ **Easily switch between various modes**:
76
78
  - Ask it to run in 'architect' mode for planning. Inspired by adier's architect mode, work with Claude to come up with a plan first. Leads to better accuracy and prevents premature file editing.
77
79
  - Ask it to run in 'code-writer' mode for code editing and project building. You can provide specific paths with wild card support to prevent other files getting edited.
78
80
  - By default it runs in 'wcgw' mode that has no restrictions and full authorisation.
@@ -150,25 +152,29 @@ over here
150
152
  Then ask claude to execute shell commands, read files, edit files, run your code, etc.
151
153
 
152
154
  #### Task checkpoint or knowledge transfer
155
+
153
156
  - You can do a task checkpoint or a knowledge transfer by attaching "KnowledgeTransfer" prompt using "Attach from MCP" button.
154
157
  - On running "KnowledgeTransfer" prompt, the "ContextSave" tool will be called saving the task description and all file content together in a single file. An id for the task will be generated.
155
158
  - You can in a new chat say "Resume '<task id>'", the AI should then call "Initialize" with the task id and load the context from there.
156
159
  - Or you can directly open the file generated and share it with another AI for help.
157
160
 
158
161
  #### Modes
162
+
159
163
  There are three built-in modes. You may ask Claude to run in one of the modes, like "Use 'architect' mode"
160
- | **Mode** | **Description** | **Allows** | **Denies** | **Invoke prompt** |
164
+ | **Mode** | **Description** | **Allows** | **Denies** | **Invoke prompt** |
161
165
  |-----------------|-----------------------------------------------------------------------------|---------------------------------------------------------|----------------------------------------------|----------------------------------------------------------------------------------------------------|
162
- | **Architect** | Designed for you to work with Claude to investigate and understand your repo. | Read-only commands | FileEdit and Write tool | Run in mode='architect' |
163
- | **Code-writer** | For code writing and development | Specified path globs for editing or writing, specified commands | FileEdit for paths not matching specified glob, Write for paths not matching specified glob | Run in code writer mode, only 'tests/**' allowed, only uv command allowed |
164
- | **wcgw** | Default mode with everything allowed | Everything | Nothing | No prompt, or "Run in wcgw mode" |
166
+ | **Architect** | Designed for you to work with Claude to investigate and understand your repo. | Read-only commands | FileEdit and Write tool | Run in mode='architect' |
167
+ | **Code-writer** | For code writing and development | Specified path globs for editing or writing, specified commands | FileEdit for paths not matching specified glob, Write for paths not matching specified glob | Run in code writer mode, only 'tests/**' allowed, only uv command allowed |
168
+ | **wcgw\*\* | Default mode with everything allowed | Everything | Nothing | No prompt, or "Run in wcgw mode" |
165
169
 
166
170
  Note: in code-writer mode either all commands are allowed or none are allowed for now. If you give a list of allowed commands, Claude is instructed to run only those commands, but no actual check happens. (WIP)
167
171
 
168
- ### [Optional] Vs code extension
172
+ ### [Optional] Vs code extension
173
+
169
174
  https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw
170
175
 
171
- Commands:
176
+ Commands:
177
+
172
178
  - Select a text and press `cmd+'` and then enter instructions. This will switch the app to Claude and paste a text containing your instructions, file path, workspace dir, and the selected text.
173
179
 
174
180
  ## Chatgpt Setup
@@ -200,3 +206,36 @@ Then run
200
206
  `uvx --from wcgw@latest wcgw_local --claude`
201
207
 
202
208
  You can now directly write messages or press enter key to open vim for multiline message and text pasting.
209
+
210
+ ## Tools
211
+
212
+ The server provides the following MCP tools:
213
+
214
+ **Shell Operations:**
215
+
216
+ - `Initialize`: Reset shell and set up workspace environment
217
+ - Parameters: `any_workspace_path` (string), `initial_files_to_read` (string[]), `mode_name` ("wcgw"|"architect"|"code_writer"), `task_id_to_resume` (string)
218
+ - `BashCommand`: Execute shell commands with timeout control
219
+ - Parameters: `command` (string), `wait_for_seconds` (int, optional)
220
+ - `BashInteraction`: Send keyboard input to running programs
221
+ - Parameters: `send_text` (string) or `send_specials` (["Enter"|"Key-up"|...]) or `send_ascii` (int[]), `wait_for_seconds` (int, optional)
222
+
223
+ **File Operations:**
224
+
225
+ - `ReadFiles`: Read content from one or more files
226
+ - Parameters: `file_paths` (string[])
227
+ - `WriteIfEmpty`: Create new files or write to empty files
228
+ - Parameters: `file_path` (string), `file_content` (string)
229
+ - `FileEdit`: Edit existing files using search/replace blocks
230
+ - Parameters: `file_path` (string), `file_edit_using_search_replace_blocks` (string)
231
+ - `ReadImage`: Read image files for display/processing
232
+ - Parameters: `file_path` (string)
233
+
234
+ **Project Management:**
235
+
236
+ - `ContextSave`: Save project context and files for Knowledge Transfer or saving task checkpoints to be resumed later
237
+ - Parameters: `id` (string), `project_root_path` (string), `description` (string), `relevant_file_globs` (string[])
238
+ - `ResetShell`: Emergency reset for shell environment
239
+ - Parameters: `should_reset` (boolean)
240
+
241
+ All tools support absolute paths and include built-in protections against common errors. See the [MCP specification](https://modelcontextprotocol.io/) for detailed protocol information.
@@ -1,9 +1,10 @@
1
1
  # Shell and Coding agent for Claude and Chatgpt
2
2
 
3
+ Empowering chat applications to code, build and run on your local machine.
4
+
3
5
  - Claude - An MCP server on claude desktop for autonomous shell and coding agent. (mac only)
4
6
  - Chatgpt - Allows custom gpt to talk to your shell via a relay server. (linux or mac)
5
7
 
6
-
7
8
  ⚠️ Warning: do not allow BashCommand tool without reviewing the command, it may result in data loss.
8
9
 
9
10
  [![Tests](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml)
@@ -13,13 +14,14 @@
13
14
  [![smithery badge](https://smithery.ai/badge/wcgw)](https://smithery.ai/server/wcgw)
14
15
 
15
16
  ## Updates
16
- - [15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
17
+
18
+ - [15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
17
19
 
18
20
  - [8 Jan 2025] Context saving tool for saving relevant file paths along with a description in a single file. Can be used as a task checkpoint or for knowledge transfer.
19
21
 
20
22
  - [29 Dec 2024] Syntax checking on file writing and edits is now stable. Made `initialize` tool call useful; sending smart repo structure to claude if any repo is referenced. Large file handling is also now improved.
21
23
 
22
- - [9 Dec 2024] [Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
24
+ - [9 Dec 2024] [Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
23
25
 
24
26
  - [01 Dec 2024] Removed author hosted relay server for chatgpt.
25
27
 
@@ -31,19 +33,19 @@
31
33
  - ⚡ **Large file edit**: Supports large file incremental edits to avoid token limit issues. Faster than full file write.
32
34
  - ⚡ **Syntax checking on edits**: Reports feedback to the LLM if its edits have any syntax errors, so that it can redo it.
33
35
  - ⚡ **Interactive Command Handling**: Supports interactive commands using arrow keys, interrupt, and ansi escape sequences.
34
- - ⚡ **File protections**:
35
- - The AI needs to read a file at least once before it's allowed to edit or rewrite it. This avoids accidental overwrites.
36
- - Avoids context filling up while reading very large files. Files get chunked based on token length.
36
+ - ⚡ **File protections**:
37
+ - The AI needs to read a file at least once before it's allowed to edit or rewrite it. This avoids accidental overwrites.
38
+ - Avoids context filling up while reading very large files. Files get chunked based on token length.
37
39
  - On initialisation the provided workspace's directory structure is returned after selecting important files (based on .gitignore as well as a statistical approach)
38
40
  - File edit based on search-replace tries to find correct search block if it has multiple matches based on previous search blocks. Fails otherwise (for correctness).
39
41
  - File edit has spacing tolerant matching, with warning on issues like indentation mismatch. If there's no match, the closest match is returned to the AI to fix its mistakes.
40
42
  - Using Aider-like search and replace, which has better performance than tool call based search and replace.
41
- - ⚡ **Shell optimizations**:
43
+ - ⚡ **Shell optimizations**:
42
44
  - Only one command is allowed to be run at a time, simplifying management and avoiding rogue processes. There's only single shell instance at any point of time.
43
- - Current working directory is always returned after any shell command to prevent AI from getting lost.
45
+ - Current working directory is always returned after any shell command to prevent AI from getting lost.
44
46
  - Command polling exits after a quick timeout to avoid slow feedback. However, status checking has wait tolerance based on fresh output streaming from a command. Both of these approach combined provides a good shell interaction experience.
45
47
  - ⚡ **Saving repo context in a single file**: Task checkpointing using "ContextSave" tool saves detailed context in a single file. Tasks can later be resumed in a new chat asking "Resume `task id`". The saved file can be used to do other kinds of knowledge transfer, such as taking help from another AI.
46
- - ⚡ **Easily switch between various modes**:
48
+ - ⚡ **Easily switch between various modes**:
47
49
  - Ask it to run in 'architect' mode for planning. Inspired by adier's architect mode, work with Claude to come up with a plan first. Leads to better accuracy and prevents premature file editing.
48
50
  - Ask it to run in 'code-writer' mode for code editing and project building. You can provide specific paths with wild card support to prevent other files getting edited.
49
51
  - By default it runs in 'wcgw' mode that has no restrictions and full authorisation.
@@ -121,25 +123,29 @@ over here
121
123
  Then ask claude to execute shell commands, read files, edit files, run your code, etc.
122
124
 
123
125
  #### Task checkpoint or knowledge transfer
126
+
124
127
  - You can do a task checkpoint or a knowledge transfer by attaching "KnowledgeTransfer" prompt using "Attach from MCP" button.
125
128
  - On running "KnowledgeTransfer" prompt, the "ContextSave" tool will be called saving the task description and all file content together in a single file. An id for the task will be generated.
126
129
  - You can in a new chat say "Resume '<task id>'", the AI should then call "Initialize" with the task id and load the context from there.
127
130
  - Or you can directly open the file generated and share it with another AI for help.
128
131
 
129
132
  #### Modes
133
+
130
134
  There are three built-in modes. You may ask Claude to run in one of the modes, like "Use 'architect' mode"
131
- | **Mode** | **Description** | **Allows** | **Denies** | **Invoke prompt** |
135
+ | **Mode** | **Description** | **Allows** | **Denies** | **Invoke prompt** |
132
136
  |-----------------|-----------------------------------------------------------------------------|---------------------------------------------------------|----------------------------------------------|----------------------------------------------------------------------------------------------------|
133
- | **Architect** | Designed for you to work with Claude to investigate and understand your repo. | Read-only commands | FileEdit and Write tool | Run in mode='architect' |
134
- | **Code-writer** | For code writing and development | Specified path globs for editing or writing, specified commands | FileEdit for paths not matching specified glob, Write for paths not matching specified glob | Run in code writer mode, only 'tests/**' allowed, only uv command allowed |
135
- | **wcgw** | Default mode with everything allowed | Everything | Nothing | No prompt, or "Run in wcgw mode" |
137
+ | **Architect** | Designed for you to work with Claude to investigate and understand your repo. | Read-only commands | FileEdit and Write tool | Run in mode='architect' |
138
+ | **Code-writer** | For code writing and development | Specified path globs for editing or writing, specified commands | FileEdit for paths not matching specified glob, Write for paths not matching specified glob | Run in code writer mode, only 'tests/**' allowed, only uv command allowed |
139
+ | **wcgw\*\* | Default mode with everything allowed | Everything | Nothing | No prompt, or "Run in wcgw mode" |
136
140
 
137
141
  Note: in code-writer mode either all commands are allowed or none are allowed for now. If you give a list of allowed commands, Claude is instructed to run only those commands, but no actual check happens. (WIP)
138
142
 
139
- ### [Optional] Vs code extension
143
+ ### [Optional] Vs code extension
144
+
140
145
  https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw
141
146
 
142
- Commands:
147
+ Commands:
148
+
143
149
  - Select a text and press `cmd+'` and then enter instructions. This will switch the app to Claude and paste a text containing your instructions, file path, workspace dir, and the selected text.
144
150
 
145
151
  ## Chatgpt Setup
@@ -171,3 +177,36 @@ Then run
171
177
  `uvx --from wcgw@latest wcgw_local --claude`
172
178
 
173
179
  You can now directly write messages or press enter key to open vim for multiline message and text pasting.
180
+
181
+ ## Tools
182
+
183
+ The server provides the following MCP tools:
184
+
185
+ **Shell Operations:**
186
+
187
+ - `Initialize`: Reset shell and set up workspace environment
188
+ - Parameters: `any_workspace_path` (string), `initial_files_to_read` (string[]), `mode_name` ("wcgw"|"architect"|"code_writer"), `task_id_to_resume` (string)
189
+ - `BashCommand`: Execute shell commands with timeout control
190
+ - Parameters: `command` (string), `wait_for_seconds` (int, optional)
191
+ - `BashInteraction`: Send keyboard input to running programs
192
+ - Parameters: `send_text` (string) or `send_specials` (["Enter"|"Key-up"|...]) or `send_ascii` (int[]), `wait_for_seconds` (int, optional)
193
+
194
+ **File Operations:**
195
+
196
+ - `ReadFiles`: Read content from one or more files
197
+ - Parameters: `file_paths` (string[])
198
+ - `WriteIfEmpty`: Create new files or write to empty files
199
+ - Parameters: `file_path` (string), `file_content` (string)
200
+ - `FileEdit`: Edit existing files using search/replace blocks
201
+ - Parameters: `file_path` (string), `file_edit_using_search_replace_blocks` (string)
202
+ - `ReadImage`: Read image files for display/processing
203
+ - Parameters: `file_path` (string)
204
+
205
+ **Project Management:**
206
+
207
+ - `ContextSave`: Save project context and files for Knowledge Transfer or saving task checkpoints to be resumed later
208
+ - Parameters: `id` (string), `project_root_path` (string), `description` (string), `relevant_file_globs` (string[])
209
+ - `ResetShell`: Emergency reset for shell environment
210
+ - Parameters: `should_reset` (boolean)
211
+
212
+ All tools support absolute paths and include built-in protections against common errors. See the [MCP specification](https://modelcontextprotocol.io/) for detailed protocol information.
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  authors = [{ name = "Aman Rusia", email = "gapypi@arcfu.com" }]
3
3
  name = "wcgw"
4
- version = "2.8.5"
4
+ version = "2.8.7"
5
5
  description = "Shell and coding agent on claude and chatgpt"
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.11, <3.13"
@@ -35,11 +35,12 @@ requires = ["hatchling"]
35
35
  build-backend = "hatchling.build"
36
36
 
37
37
  [tool.hatch.build.targets.wheel]
38
- packages = ["src/wcgw", "src/mcp_wcgw_fork/src/mcp_wcgw"]
38
+ packages = ["src/wcgw", "src/mcp_wcgw_fork/src/mcp_wcgw", "src/wcgw_cli"]
39
39
 
40
40
  [tool.hatch.build.targets.wheel.sources]
41
41
  "src/mcp_wcgw_fork/src/mcp_wcgw" = "mcp_wcgw"
42
42
  "src/wcgw" = "wcgw"
43
+ "src/wcgw_cli" = "wcgw_cli"
43
44
 
44
45
  [project.scripts]
45
46
  wcgw_local = "wcgw_cli:app"
@@ -6,6 +6,10 @@ from typing import Callable, DefaultDict, Literal, Optional
6
6
  TOLERANCE_TYPES = Literal["SILENT", "WARNING", "ERROR"]
7
7
 
8
8
 
9
+ class SearchReplaceMatchError(Exception):
10
+ pass
11
+
12
+
9
13
  @dataclass
10
14
  class Tolerance:
11
15
  line_process: Callable[[str], str]
@@ -45,7 +49,7 @@ class FileEditOutput:
45
49
  Got error while processing the following search block:
46
50
  ---
47
51
  ```
48
- {'\n'.join(search_)}
52
+ {"\n".join(search_)}
49
53
  ```
50
54
  ---
51
55
  Error:
@@ -53,7 +57,7 @@ Error:
53
57
  ---
54
58
  """)
55
59
  if len(errors) >= max_errors:
56
- raise Exception("\n".join(errors))
60
+ raise SearchReplaceMatchError("\n".join(errors))
57
61
  if last_idx < span.start:
58
62
  new_lines.extend(self.original_content[last_idx : span.start])
59
63
 
@@ -64,7 +68,7 @@ Error:
64
68
  new_lines.extend(self.original_content[last_idx:])
65
69
 
66
70
  if errors:
67
- raise Exception("\n".join(errors))
71
+ raise SearchReplaceMatchError("\n".join(errors))
68
72
 
69
73
  return new_lines, set(warnings)
70
74
 
@@ -1,32 +1,71 @@
1
1
  import re
2
2
  from typing import Callable
3
3
 
4
- from .diff_edit import FileEditInput, FileEditOutput
4
+ from .diff_edit import FileEditInput, FileEditOutput, SearchReplaceMatchError
5
5
 
6
+ # Global regex patterns
7
+ SEARCH_MARKER = re.compile(r"^<<<<<<+\s*SEARCH\s*$")
8
+ DIVIDER_MARKER = re.compile(r"^======*\s*$")
9
+ REPLACE_MARKER = re.compile(r"^>>>>>>+\s*REPLACE\s*$")
10
+
11
+ class SearchReplaceSyntaxError(Exception):
12
+ def __init__(self, message: str):
13
+ message =f"""Got syntax error while parsing search replace blocks:
14
+ {message}
15
+ ---
16
+
17
+ Make sure blocks are in correct sequence, and the markers are in separate lines:
18
+
19
+ <{'<<<<<< SEARCH'}
20
+ example old
21
+ =======
22
+ example new
23
+ >{'>>>>>> REPLACE'}
24
+
25
+ """
26
+ super().__init__(message)
6
27
 
7
28
  def search_replace_edit(
8
29
  lines: list[str], original_content: str, logger: Callable[[str], object]
9
30
  ) -> tuple[str, str]:
10
31
  if not lines:
11
- raise Exception("Error: No input to search replace edit")
32
+ raise SearchReplaceSyntaxError("Error: No input to search replace edit")
33
+
12
34
  original_lines = original_content.split("\n")
13
35
  n_lines = len(lines)
14
36
  i = 0
15
37
  search_replace_blocks = list[tuple[list[str], list[str]]]()
38
+
16
39
  while i < n_lines:
17
- if re.match(r"^<<<<<<+\s*SEARCH\s*$", lines[i]):
40
+ if SEARCH_MARKER.match(lines[i]):
41
+ line_num = i + 1
18
42
  search_block = []
19
43
  i += 1
20
- while i < n_lines and not re.match(r"^======*\s*$", lines[i]):
44
+
45
+ while i < n_lines and not DIVIDER_MARKER.match(lines[i]):
46
+ if SEARCH_MARKER.match(lines[i]) or REPLACE_MARKER.match(lines[i]):
47
+ raise SearchReplaceSyntaxError(f"Line {i+1}: Found stray marker in SEARCH block: {lines[i]}")
21
48
  search_block.append(lines[i])
22
49
  i += 1
23
- i += 1
50
+
51
+ if i >= n_lines:
52
+ raise SearchReplaceSyntaxError(f"Line {line_num}: Unclosed SEARCH block - missing ======= marker")
53
+
24
54
  if not search_block:
25
- raise Exception("SEARCH block can not be empty")
55
+ raise SearchReplaceSyntaxError(f"Line {line_num}: SEARCH block cannot be empty")
56
+
57
+ i += 1
26
58
  replace_block = []
27
- while i < n_lines and not re.match(r"^>>>>>>+\s*REPLACE\s*$", lines[i]):
59
+
60
+ while i < n_lines and not REPLACE_MARKER.match(lines[i]):
61
+ if SEARCH_MARKER.match(lines[i]) or DIVIDER_MARKER.match(lines[i]):
62
+ raise SearchReplaceSyntaxError(f"Line {i+1}: Found stray marker in REPLACE block: {lines[i]}")
28
63
  replace_block.append(lines[i])
29
64
  i += 1
65
+
66
+ if i >= n_lines:
67
+ raise SearchReplaceSyntaxError(f"Line {line_num}: Unclosed block - missing REPLACE marker")
68
+
30
69
  i += 1
31
70
 
32
71
  for line in search_block:
@@ -38,10 +77,12 @@ def search_replace_edit(
38
77
 
39
78
  search_replace_blocks.append((search_block, replace_block))
40
79
  else:
80
+ if REPLACE_MARKER.match(lines[i]) or DIVIDER_MARKER.match(lines[i]):
81
+ raise SearchReplaceSyntaxError(f"Line {i+1}: Found stray marker outside block: {lines[i]}")
41
82
  i += 1
42
83
 
43
84
  if not search_replace_blocks:
44
- raise Exception(
85
+ raise SearchReplaceSyntaxError(
45
86
  "No valid search replace blocks found, ensure your SEARCH/REPLACE blocks are formatted correctly"
46
87
  )
47
88
 
@@ -80,7 +121,7 @@ def greedy_context_replace(
80
121
  if len(best_matches) > 1:
81
122
  # Duplicate found, try to ground using previous blocks.
82
123
  if current_block_offset == 0:
83
- raise Exception(f"""
124
+ raise SearchReplaceMatchError(f"""
84
125
  The following block matched more than once:
85
126
  ---
86
127
  ```
@@ -318,7 +318,8 @@ async def main(computer_use: bool) -> None:
318
318
  if computer_use:
319
319
  COMPUTER_USE_ON_DOCKER_ENABLED = True
320
320
 
321
- version = importlib.metadata.version("wcgw")
321
+ version = str(importlib.metadata.version("wcgw"))
322
+ tools.console.log("wcgw version: " + version)
322
323
  # Run the server using stdin/stdout streams
323
324
  async with mcp_wcgw.server.stdio.stdio_server() as (read_stream, write_stream):
324
325
  await server.run(