Skip to content

[Bug] (Win) Not utilizing PATH env var when adding MCP #213

@exalsch

Description

@exalsch

With v0.8.7 (as lates does not work on windows) there is the issue when adding this MCP config ends up with file not found:

{
  "mcpServers": {
    "ms365": {
      "command": "npx",
      "args": [
        "-y",
        "@softeria/ms-365-mcp-server"
      ]
    }
  }
}

Adjusting to the full path of npx and it works:

{
  "mcpServers": {
    "ms365": {
      "transport": "stdio",
      "enabled": true,
      "command": "C:/Program Files/nodejs/npx.cmd",
      "args": [
        "-y",
        "@softeria/ms-365-mcp-server"
      ],
      "env": {},
      "url": null,
      "headers": null
    }
  }
}

npx command works fine in a CMD as C:\Program Files\nodejs\ is in %PATH%

But when having this MPC enabled ANY chat fails with:
Error in query, "Reference '#/properties/body/anyOf/1/properties/from/properties/application' not found." which I assume is connected to not utilizing path env var.

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