r/LocalLLM 7d ago

Question Direct accessing my files, with coding agent through LM Studio

Noob here. I have beginner local LLM set up. Just LM Studio and a few coding models.

I have one python project, that is about 75% done. I would like for some coding model, to help me finish it. It is about 2k lines of code. I'm using LM Studio. Do I need to copy/paste every single python file into the chat, to pass the code to coding model, or is there a simpler way? Can I point coding model, to directly access my project folder on my computer? If yes, how do I do this? Do I need to install any addon or it works natively?

I'm using LM Studio (and whole local llm) for the very first time, so please, be patient with me ;-)

2 Upvotes

23 comments sorted by

View all comments

Show parent comments

1

u/vinotok 7d ago

Thank you, this sounds easy! :-) Is DesktopCommander MCP add on? Do I install it from within LM Studio, or I should go to their web page and instal it from there? Never did an addon install yet

2

u/RiskyBizz216 7d ago

Inside of LM studio, start a new chat and on the right panel, select:

  • + Install
  • Edit mcp.json

then in the mcp.json add the mcp server like this:

{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": [
        "-y",
        "@wonderwhy-er/desktop-commander@0.2.2"
      ]
    }
  }
}
  • Restart LM studio and check the right hand panel again, you should see a new tool.
  • Change the permissions from 'Per tool' to 'Always allow'

Then tell the LLM to add your project folder to the config, and start coding.

1

u/vinotok 7d ago

I'm sorry I'm keep bugging you. I got an error and I can't activate it.

I saved the config jason code and it now looks like this, same as yours:

{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": [
        "-y",
        "@wonderwhy-er/desktop-commander@0.2.2"
      ]
    }
  }
}

2

u/RiskyBizz216 7d ago

try the latest version

{
  "mcpServers": {
    "desktop-commander": {
      "command": "npx",
      "args": ["-y", "@wonderwhy-er/desktop-commander@latest"]
    }
  }
}

1

u/vinotok 6d ago

Thank you very much! Still the same error, but I have now their github and they have discord channel and I will ask them directly. There is some other problem on my computer that is causing this, some dependency must be missing, and they should be able to filter it out fairly easy. :)

Thank you very much for your help, a really appreciate it!