Skip to content

Azure Toolkit for IntelliJ spawns azmcp server with 170k+ inotify watches, breaking dev tools #11304

@eirikb

Description

@eirikb

When Azure Toolkit for IntelliJ is enabled, it automatically starts one or more azmcp server start processes.
Each process consumes ~170,000+ inotify watches (on my machine, when I looked). On Linux this exhausts system limits, causing unrelated dev tools (e.g., vite) to crash with:

> vite

node:internal/fs/watchers:254
    const error = new UVException({
                  ^

Error: ENOSPC: System limit for number of file watchers reached, watch ....

I found a inotify-counter-script-thing and it prints:

PID      WATCHES    INSTANCES  USER         COMMAND
1594656  177829     1          eirikb       /home/eirikb/.local/share/JetBrains/IntelliJIdea2025.2/azure-toolkit-for-intellij/azmcp/azmcp_package_Azure.Mcp.Server-0.8.3/package/dist/azmcp server start
1586008  173564     1          eirikb       /home/eirikb/.local/share/JetBrains/IntelliJIdea2025.2/azure-toolkit-for-intellij/azmcp/azmcp_package_Azure.Mcp.Server-0.8.3/package/dist/azmcp server start
1586964  172799     1          eirikb       /home/eirikb/.local/share/JetBrains/IntelliJIdea2025.2/azure-toolkit-for-intellij/azmcp/azmcp_package_Azure.Mcp.Server-0.8.3/package/dist/azmcp server start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions