Skip to content

bug: doesn't work in PowerShell #27

@VELIKII-DIVAN

Description

@VELIKII-DIVAN

I got it working in cmd but it doesn't work in PowerShell.

System

Win 10
PowerShell 7.2.24

Console output (last mesages)

[notice] A new release of pip is available: 24.2 -> 25.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Starting Next.js frontend...
Starting FastAPI backend...
Starting MCP server...
Waiting for Frontend to start...
Frontend is ready!
Waiting for Backend to start...
Backend is ready!
All services are running!
Frontend: http://localhost:3001
Backend: http://localhost:24125
Logs: ./logs/
Press Ctrl+C to stop all services
One or more services have stopped unexpectedly

Shutting down services...
All services stopped

How to reproduce

git clone <...>
fast-markdown-mcp\setup.bat
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
.\start.ps1

mcp.log

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "d:\work\DevDocs\fast-markdown-mcp\src\fast_markdown_mcp\server.py", line 590, in <module>
    asyncio.run(main())
  File "C:\Users\Dima\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\Dima\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Dima\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "d:\work\DevDocs\fast-markdown-mcp\src\fast_markdown_mcp\server.py", line 572, in main
    setup_logging()
  File "d:\work\DevDocs\fast-markdown-mcp\src\fast_markdown_mcp\server.py", line 542, in setup_logging
    file_handler = logging.FileHandler(str(log_path))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Dima\AppData\Local\Programs\Python\Python312\Lib\logging\__init__.py", line 1231, in __init__
    StreamHandler.__init__(self, self._open())
                                 ^^^^^^^^^^^^
  File "C:\Users\Dima\AppData\Local\Programs\Python\Python312\Lib\logging\__init__.py", line 1263, in _open
    return open_func(self.baseFilename, self.mode,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'D:\\work\\DevDocs\\logs\\mcp.log'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions