Skip to content

[FEATURE] Path support for HAOS (non-Windows) installs#285

Description

@klmarlowe

馃殌 Feature Request

Is your feature request related to a problem? Please describe.

The Claude LLM always tries to initiate file directory traverses at C:. That won't work on a non-Windows system.

Describe the solution you'd like

From Claude, when prompted with "I note that when you do a file system search (and the allowed_directories check), you're looking at "C:." This is an HAOS system running under Proxmox and the root is "". Do I need to modify your JSON or is the error in the MCP server code?"

Good catch! The issue is in the MCP server code, not your configuration. The MCP server is incorrectly returning "C:" as an allowed directory when it should be returning "/" for a Linux-based system (which Home Assistant OS on Proxmox definitely is).

This is a bug in the Home Assistant MCP Server add-on. Let me check what file system access should actually be available:
...

Yes, you can see config_dir is /config (Linux path), but the file system MCP is reporting Windows paths. This is definitely a bug in the HA MCP Server add-on.

The proper allowed directories should be:

/config - Your main HA config directory
/config/www - Web-accessible files
/media - Media storage
Why this happened: The MCP server add-on developer likely tested on Windows or has platform detection code that's incorrectly identifying your system as Windows when running in the HA OS container.

Describe alternatives you've considered

It's just a nuisance that sucks CPU cycles - Claude usually finds a workaround

Implementation Considerations

  • Requires new dependencies
  • Affects E2E testing
  • [ X] Performance implications
  • Breaking changes
  • [X ] Documentation updates needed

Testing Strategy

How should this feature be tested?

  • Unit tests sufficient
  • [ X] Integration tests needed
  • E2E tests required
  • Performance testing needed

Additional Context

Add any other context, screenshots, or examples about the feature request here.

Priority

  • Low (nice to have)
  • [ X] Medium (would improve workflow)
  • High (blocking current work)
  • Critical (system broken without this)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requestedtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions