Skip to content

WSL #14

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

Open
lmontanares opened this issue Mar 5, 2025 · 0 comments
Open

WSL #14

lmontanares opened this issue Mar 5, 2025 · 0 comments

Comments

@lmontanares
Copy link

Hello, I'm trying to make this MCP work on WSL. I already successfully made @executeautomation/playwright-mcp-server and @modelcontextprotocol/server-filesystem work.

Right now mcp-pandoc is kinda working, but I have 2 problems.

2025-03-05T19:02:09.013Z [mcp-pandoc] [info] Message from server: {"jsonrpc":"2.0","id":76,"error":{"code":-32601,"message":"Method not found"}}
2025-03-05T19:01:57.033Z [mcp-pandoc] [info] Message from client: {"method":"tools/call","params":{"name":"convert-contents","arguments":{"input_file":"/home/somebody/dev/claude_mpc/hello.txt","input_format":"txt","output_format":"docx","output_file":"/home/somebody/dev/claude_mpc/hello.docx"}},"jsonrpc":"2.0","id":70}
2025-03-05T19:01:57.059Z [mcp-pandoc] [error] Expected property name or '}' in JSON at position 1 (line 1 column 2) {"context":"connection","stack":"SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)\n    at JSON.parse (<anonymous>)\n    at mPe (C:\\Users\\luciano\\AppData\\Local\\AnthropicClaude\\app-0.8.0\\resources\\app.asar\\.vite\\build\\index.js:82:189)\n    at pPe.readMessage (C:\\Users\\luciano\\AppData\\Local\\AnthropicClaude\\app-0.8.0\\resources\\app.asar\\.vite\\build\\index.js:82:115)\n    at yPe.processReadBuffer (C:\\Users\\luciano\\AppData\\Local\\AnthropicClaude\\app-0.8.0\\resources\\app.asar\\.vite\\build\\index.js:83:1842)\n    at Socket.<anonymous> (C:\\Users\\luciano\\AppData\\Local\\AnthropicClaude\\app-0.8.0\\resources\\app.asar\\.vite\\build\\index.js:83:1523)\n    at Socket.emit (node:events:518:28)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)"}
2025-03-05T19:01:57.059Z [mcp-pandoc] [info] Message from server: {"jsonrpc":"2.0","id":70,"result":{"content":[{"type":"text","text":"Error converting file from txt to docx: No pandoc was found: either install pandoc and add it\nto your PATH or or call pypandoc.download_pandoc(...) or\ninstall pypandoc wheels with included pandoc."}],"isError":true}}

Full Log: https://pastebin.com/WEfGS17i

and this is my Claude config:

{
  "mcpServers": {
    "filesystem": {
      "command": "wsl.exe",
      "args": [
        "-d",
        "Debian",
        "bash",
        "-c",
        "export PATH=\"/home/somebody/.nvm/versions/node/v23.5.0/bin:/bin:/usr/bin:$PATH\" && SHELL=/bin/bash /home/somebody/.nvm/versions/node/v23.5.0/bin/npx -y @modelcontextprotocol/server-filesystem /home/somebody/dev"
      ]
    },
    "playwright": {
      "command": "wsl.exe",
      "args": [
        "-d",
        "Debian",
        "bash",
        "-c",
        "export PATH=\"/home/somebody/.nvm/versions/node/v23.5.0/bin:/bin:/usr/bin:$PATH\" && SHELL=/bin/bash /home/somebody/.nvm/versions/node/v23.5.0/bin/npx -y npx -y @executeautomation/playwright-mcp-server"
      ]
    },
    "mcp-pandoc": {
      "command": "wsl.exe",
      "args": [
        "-d",
        "Debian",
        "bash",
        "-c",
        "export PATH=\"/home/somebody/.local/bin:/bin:/usr/bin:$PATH\" && SHELL=/bin/bash && /home/somebody/.local/bin/uv --directory '/home/somebody/dev/claude_mpc/mcp-pandoc' run mcp-pandoc"
      ]
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant