Skip to content

Interopability error Invalid MCP configuration: mcpServers.calc: Invalid input #177

@andrew-vdb

Description

@andrew-vdb

I understand that this use case might not be supported
The calculator script example works fine if I call python directly within wsl
It does not work when I try to run it via my dotnet application with Process class running in wsl (its working with single shot query example)

I'm kind of stuck with this strange error... the error 100% not related with mcp configuration for sure

Error: Invalid MCP configuration: mcpServers.calc: Invalid input
Fatal error in message reader: Command failed with exit code 1 (exit code: 1)
Error output: Check stderr output for details
Traceback (most recent call last):
  File "/home/{redacted}/.cc-sdk-env/lib/python3.12/site-packages/anyio/_core/_tasks.py", line 115, in fail_after
    yield cancel_scope
  File "/home/{redacted}/.cc-sdk-env/lib/python3.12/site-packages/claude_code_sdk/_internal/query.py", line 310, in _send_control_request
    await event.wait()
  File "/home/{redacted}/.cc-sdk-env/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 1774, in wait
    await self._event.wait()
  File "/usr/lib/python3.12/asyncio/locks.py", line 212, in wait
    await fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 7ff1c1539fd0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/{redacted}/.cc-sdk-env/lib/python3.12/site-packages/claude_code_sdk/_internal/query.py", line 309, in _send_control_request
    with anyio.fail_after(60.0):
  File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__
    self.gen.throw(value)
  File "/home/{redacted}/.cc-sdk-env/lib/python3.12/site-packages/anyio/_core/_tasks.py", line 118, in fail_after
    raise TimeoutError
TimeoutError

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions