Skip to content

add support for Claude Desktop for Linux [feature request] #164

@tomasohara

Description

@tomasohara

It would be good to support Claude Desktop for Linux. This can be done as follows:

$ git diff mcp_client_for_ollama/utils/constants.py
...
 """Constants used throughout the MCP Client for Ollama application."""
 
 import os
+import platform
 
 # Default Claude config file location
-DEFAULT_CLAUDE_CONFIG = os.path.expanduser("~/Library/Application Support/Claude/claude_desktop_config.json")
+DEFAULT_CLAUDE_CONFIG = (
+    os.path.expanduser("~/Library/Application Support/Claude/claude_desktop_config.json")
+    if platform.system() != 'Linux'
+    else os.path.expanduser("~/.config/Claude/claude_desktop_config.json"))
 
 # Default config directory and filename for MCP client for Ollama
 DEFAULT_CONFIG_DIR = os.path.expanduser("~/.config/ollmcp")

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions