Skip to content

The insert_execute_code_cell tool stuck when PYTHONDEVMODE=1 environment variable is set #160

@Atry

Description

@Atry

Description

The insert_execute_code_cell tool stuck when PYTHONDEVMODE=1 environment variable is set

Reproduce

  1. Create the following .mcp.json
    {
      "mcpServers": {
        "jupyter": {
          "command": "uvx",
          "args": [ "jupyter-mcp-server" ],
          "env": {
            "JUPYTER_URL": "http://localhost:8888",
            "JUPYTER_TOKEN": "my token",
            "ALLOW_IMG_OUTPUT": "true",
            "PYTHONDEVMODE": "1"
          }
        }
      }
    }
    
  2. Run claude cli
  3. Ask the agent to use insert_execute_code_cell

Then claude cli stuck.

Expected behavior

claude cli should not get stuck.

Context

Workaround: unset PYTHONDEVMODE

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