Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation issues on windows #36

Closed
plasmax opened this issue Dec 2, 2024 · 5 comments
Closed

installation issues on windows #36

plasmax opened this issue Dec 2, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@plasmax
Copy link

plasmax commented Dec 2, 2024

Love this idea, trying to install/get it working on windows, so if anyone else has please let me know your steps.

Other mcp servers are working with this caude_desktop_config.json:

{
  "mcpServers": {
    "filesystem": {
      "command": "node",
      "args": [
        "C:\\Users\\Max\\AppData\\Roaming\\npm\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js", 
        "E:\\Repositories\\sandbox"
      ]
    },
    "git": {
      "command": "python",
      "args": ["-m", "mcp_server_git", "--repository", "E:\\Repositories\\bloom\\"]
    },
    "mcpserver": {
      "command": "uv",
      "args": [
        "--directory",
        "E:\\Repositories\\sandbox\\mcpserver",
        "run",
        "mcpserver"
      ]
    },  
    "Demo": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "E:\\Repositories\\sandbox\\demo.py"
      ]
    }
  }
}

I've tried (in windsurf cmd prompt):

E:\Repositories\sandbox>uv pip install fastmcp      
Audited 1 package in 13ms

E:\Repositories\sandbox>fastmcp install demo.py
'fastmcp' is not recognized as an internal or external command,
operable program or batch file.

E:\Repositories\sandbox>C:\Users\Max\AppData\Roaming\Python\Python312\Scripts\fastmcp.exe install demo.py
[12/02/24 09:17:43] 
INFO     Added server 'Demo' to Claude config            claude.py:108                    
INFO     Successfully installed Demo in Claude app       cli.py:402

So the installation went well, but when restarting Claude Desktop, it failed to recognise fastmcp. The cmd terminal launches in the background, but then closes, suggesting an error somewhere, but there's no traceback.

Not sure if we can run servers externally? I tried this and it just sits there, and Claude doesn't recognise it even after a restart:

E:\Repositories\sandbox>C:\Users\Max\AppData\Roaming\Python\Python312\Scripts\fastmcp.exe run demo.py    

then I tried this:

E:\Repositories\sandbox>C:\Users\Max\AppData\Roaming\Python\Python312\Scripts\fastmcp.exe run E:\Repositories\sandbox\demo.py
File not found: E:\Repositories\sandbox\E

Which suggests that's the root of the problem - maybe fastmcp is not handling windows paths very well at the moment? How can I get more verbose output?

I've tried with and without venv, pip installing directly, using uv, etc...

I've also tried calling fastmcp directly from claude's config:

    "Demo": {
      "command": "C:\\Users\\Max\\AppData\\Roaming\\Python\\Python312\\Scripts\\fastmcp.exe",
      "args": [
        "run",
        "E:\\Repositories\\sandbox\\demo.py"
      ]
    }

So far no luck.

@github-actions github-actions bot added bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Dec 2, 2024
@jlowin
Copy link
Owner

jlowin commented Dec 2, 2024

Thanks for the report - definitely odd, I will look into this. If you have any other detail / logs please share them, and I can try to add more verbose output in places that will help.

@justjoehere
Copy link
Contributor

See #42 for a fix

@jlowin
Copy link
Owner

jlowin commented Dec 3, 2024

I believe this was closed in #42, please reopen if not!

@jlowin jlowin closed this as completed Dec 3, 2024
@jlowin
Copy link
Owner

jlowin commented Dec 3, 2024

(release should go out tonight)

@jlowin
Copy link
Owner

jlowin commented Dec 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants