DesktopCommanderMCP icon indicating copy to clipboard operation
DesktopCommanderMCP copied to clipboard

Add Linux Platform Support and Update Dependencies

Open gluneau opened this issue 10 months ago • 5 comments

Summary

This PR adds support for Linux platforms in the Claude Desktop Commander by properly detecting Linux systems and using the correct configuration file path (~/.config/Claude/claude_desktop_config.json). It also updates the MCP SDK dependency to the latest version.

Changes

  • Updated setup-claude-server.js to detect Linux platforms using a switch statement for handling different OS types
  • Added Linux-specific configuration path (~/.config/Claude/claude_desktop_config.json)
  • Updated README.md to document the Linux configuration file location
  • Bumped @modelcontextprotocol/sdk dependency from 1.0.1 to 1.6.1

Motivation

The current implementation only supports Windows and macOS, making it difficult for Linux users to set up and use Claude Desktop Commander. This PR ensures Linux users have the same seamless experience as users on other platforms.

Testing

Tested on Linux to verify the script correctly:

  • Detects Linux platform
  • Creates configuration in the standard Linux location (~/.config/Claude/)
  • Successfully configures Claude Desktop for MCP server integration

Notes

This implementation follows the XDG Base Directory Specification for Linux, using ~/.config/ as the base configuration directory, which is the standard for user-specific configuration files on Linux systems.

gluneau avatar Mar 20 '25 17:03 gluneau

Ouh interesting. What client are you using this with on Linux? Does Claude Desktop work on linux?

I will try to test and if it does not break things on windows and mac will merge, can't really test on Linux though.

wonderwhy-er avatar Mar 21 '25 08:03 wonderwhy-er

Seems there are many unofficial ports of the Windows Electron app to run on Linux: https://www.reddit.com/r/ClaudeAI/comments/1hgsmpq/i_successfully_ran_claude_desktop_natively_on/

ottok avatar Mar 21 '25 23:03 ottok

The Claude desktop app does not seem to be open source, so we can't get it into official distribution. If did however notice that this was released a couple weeks ago https://github.com/anthropics/claude-code which is open source and may serve the same use case.

ottok avatar Mar 21 '25 23:03 ottok

I installed Claude Desktop on linux based on this repo: https://github.com/aaddrick/claude-desktop-debian

It has very minimal changes and just works. Anthropic should just do it at this point.

gluneau avatar Mar 22 '25 12:03 gluneau

Ouh interesting. What client are you using this with on Linux? Does Claude Desktop work on linux?

I will try to test and if it does not break things on windows and mac will merge, can't really test on Linux though.

Hi. I just got this working on Ubuntu 22.04

SmileyEgrett avatar Mar 24 '25 11:03 SmileyEgrett

I've been using claude-desktop-bin on Arch Linux.

I added ClaudeDesktopMCP in claude_desktop_config.json manually. I'm not sure if the list of blocked commands are being stored properly. It works with minimal issues (the font is too small on a 4k screen when using --enable-features=UseOzonePlatform --ozone-platform=wayland to tell electron to use wayland instead of X11, but I can use Ctrl + '+' to increase the size and this is an issue for Chromium too).

I've also added an "ai" user and use sudo to run node/nxp MCP's as this user. Sometimes Claude gets confused when it doesn't have sudo rights or rights to commit git files...

nbanks avatar Mar 29 '25 02:03 nbanks

Tested on windows 10, works, needs rebased on master, I may "fork" pr, fix issues and merge separatly after I test on mac

wonderwhy-er avatar Mar 29 '25 08:03 wonderwhy-er

Hey man, I needed to fix some things so checked your PR locally and merged them not trough github Closing PR as its merged now, commits related to your work are with your authorship. Thanks for contribution

wonderwhy-er avatar Mar 29 '25 15:03 wonderwhy-er

closed as it was marged manually

wonderwhy-er avatar Mar 29 '25 15:03 wonderwhy-er