codemcp: "Error: MCP error -32001: Request timed out"

I’m brand new to this, and I’m not sure what I’m doing wrong, but this is the result when I try to use codemcp in Claude desktop in Windows for this project. It’s kind of a sloppy project but it’s small, and I get the same error on more organized projects.

D:\PROJECTS\SHOW_START_MENU_COPY
|   # show menu.py
|   .gitignore
|   asyncio2_open_shell.py
|   asyncio_open_shell.py
|   braviacontrol.py
|   codemcp.toml
|   deploy.log
|   import hid.py
|   import threading.py
|   osm.py
|   SeleniumWebDriver.py
|   Show_Open_Shell Right.py
|   Show_Open_Shell.py
|   Show_Open_Shel_Leftl.py
|   StartMenu.png
|   voice-assistant.json
|
\---.git
    |   COMMIT_EDITMSG
    |   config
    |   description
    |   HEAD
    |   index
    |   ORIG_HEAD
    |
    +---codemcp
    |       counter
... etc
{
  `path`: `D:\\Projects\\show_start_menu_copy`,
  `subtool`: `InitProject`,
  `user_prompt`: `Describe this project`,
  `subject_line`: `docs: explore project structure`
}
No result received from client-side tool execution.

claude_desktop_config.json

{
    "mcpServers": {
         "codemcp": {
               "command": "python",
               "args": ["-m", "codemcp"]
            }
    }
}

codemcp.toml

[commands]
format = ["./run_format.sh"]
test = ["./run_test.sh"]

mcp-server-codemcp.log

2025-04-17T18:48:14.319Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":7}
2025-04-17T18:48:14.321Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":7,"result":{"resources":[]}}
2025-04-17T18:48:14.322Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":8}
2025-04-17T18:48:14.324Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":8,"result":{"prompts":[]}}
2025-04-17T18:48:43.980Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":9}
2025-04-17T18:48:43.981Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":9,"result":{"resources":[]}}
2025-04-17T18:48:43.982Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":10}
2025-04-17T18:48:43.983Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":10,"result":{"prompts":[]}}
2025-04-17T18:49:08.120Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":11}
2025-04-17T18:49:08.122Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":11,"result":{"resources":[]}}
2025-04-17T18:49:08.136Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":12}
2025-04-17T18:49:08.137Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":12,"result":{"prompts":[]}}
2025-04-17T18:49:38.122Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":13}
2025-04-17T18:49:38.123Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":13,"result":{"resources":[]}}
2025-04-17T18:49:38.124Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":14}
2025-04-17T18:49:38.125Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":14,"result":{"prompts":[]}}
2025-04-17T18:49:58.830Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":15}
2025-04-17T18:49:58.832Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":15,"result":{"resources":[]}}
2025-04-17T18:49:58.863Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":16}
2025-04-17T18:49:58.864Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":16,"result":{"prompts":[]}}
2025-04-17T18:50:05.835Z [codemcp] [info] Message from client: {"method":"tools/call","params":{"name":"codemcp","arguments":{"subtool":"InitProject","path":"D:\\Projects\\show_start_menu_copy","subject_line":"docs: explore project structure","user_prompt":"Describe this project"}},"jsonrpc":"2.0","id":17}
2025-04-17 14:50:05,836 - root - INFO - Running command: git rev-parse --show-toplevel
2025-04-17T18:50:29.318Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":18}
2025-04-17T18:50:29.321Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":18,"result":{"resources":[]}}
2025-04-17T18:50:29.322Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":19}
2025-04-17T18:50:29.325Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":19,"result":{"prompts":[]}}
2025-04-17 14:50:29,341 - root - INFO - Running command: git rev-parse --show-toplevel
2025-04-17T18:50:59.317Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":20}
2025-04-17T18:50:59.320Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":20,"result":{"resources":[]}}
2025-04-17T18:50:59.321Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":21}
2025-04-17T18:50:59.323Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":21,"result":{"prompts":[]}}
2025-04-17 14:50:59,339 - root - INFO - Running command: git rev-parse --show-toplevel
2025-04-17T18:51:29.317Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":22}
2025-04-17T18:51:29.319Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":22,"result":{"resources":[]}}
2025-04-17T18:51:29.320Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":23}
2025-04-17T18:51:29.322Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":23,"result":{"prompts":[]}}
2025-04-17 14:51:29,341 - root - INFO - Running command: git rev-parse --show-toplevel
2025-04-17T18:51:59.318Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":24}
2025-04-17T18:51:59.321Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":24,"result":{"resources":[]}}
2025-04-17T18:51:59.321Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":25}
2025-04-17T18:51:59.323Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":25,"result":{"prompts":[]}}
2025-04-17 14:51:59,339 - root - INFO - Running command: git rev-parse --show-toplevel
2025-04-17T18:53:16.322Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":26}
2025-04-17T18:53:16.326Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":26,"result":{"resources":[]}}
2025-04-17T18:53:16.326Z [codemcp] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":27}
2025-04-17T18:53:16.329Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":27,"result":{"prompts":[]}}
2025-04-17 14:53:16,347 - root - INFO - Running command: git rev-parse --verify HEAD
2025-04-17T18:54:06.318Z [codemcp] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":17,"reason":"Error: MCP error -32001: Request timed out"}}
2025-04-17T18:54:06.321Z [codemcp] [info] Message from server: {"jsonrpc":"2.0","id":17,"error":{"code":0,"message":"Request cancelled"}}
2025-04-17T18:54:13.960Z [codemcp] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":28}
  + Exception Group Traceback (most recent call last):
  |   File "<frozen runpy>", line 198, in _run_module_as_main
  |   File "<frozen runpy>", line 88, in _run_code
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\codemcp\__main__.py", line 10, in <module>
  |     run()
  |     ~~~^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\codemcp\main.py", line 391, in run
  |     mcp.run()
  |     ~~~~~~~^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\mcp\server\fastmcp\server.py", line 159, in run
  |     anyio.run(self.run_stdio_async)
  |     ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\anyio\_core\_eventloop.py", line 74, in run
  |     return async_backend.run(func, args, {}, backend_options)
  |            ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\anyio\_backends\_asyncio.py", line 2310, in run
  |     return runner.run(wrapper())
  |            ~~~~~~~~~~^^^^^^^^^^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 118, in run
  |     return self._loop.run_until_complete(task)
  |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 725, in run_until_complete
  |     return future.result()
  |            ~~~~~~~~~~~~~^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\anyio\_backends\_asyncio.py", line 2298, in wrapper
  |     return await func(*args)
  |            ^^^^^^^^^^^^^^^^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\mcp\server\fastmcp\server.py", line 460, in run_stdio_async
  |     async with stdio_server() as (read_stream, write_stream):
  |                ~~~~~~~~~~~~^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 221, in __aexit__
  |     await anext(self.gen)
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\mcp\server\stdio.py", line 83, in stdio_server
  |     async with anyio.create_task_group() as tg:
  |                ~~~~~~~~~~~~~~~~~~~~~~~^^
  |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\anyio\_backends\_asyncio.py", line 772, in __aexit__
  |     raise BaseExceptionGroup(
  |         "unhandled errors in a TaskGroup", self._exceptions
  |     ) from None
  | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\mcp\server\stdio.py", line 69, in stdin_reader
    |     await read_stream_writer.send(message)
    |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\anyio\streams\memory.py", line 242, in send
    |     self.send_nowait(item)
    |     ~~~~~~~~~~~~~~~~^^^^^^
    |   File "C:\Users\dhite\AppData\Local\Programs\Python\Python313\Lib\site-packages\anyio\streams\memory.py", line 213, in send_nowait
    |     raise BrokenResourceError
    | anyio.BrokenResourceError
    +------------------------------------
2025-04-17T18:54:14.094Z [codemcp] [info] Server transport closed
2025-04-17T18:54:14.095Z [codemcp] [info] Client transport closed
2025-04-17T18:54:14.095Z [codemcp] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-04-17T18:54:14.095Z [codemcp] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) {"context":"connection"}
2025-04-17T18:54:14.096Z [codemcp] [info] Client transport closed

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

There was some evidence we had Windows users from bug reports. I probably can’t debug this until I get to my Windows laptop, unfortunately.