When I run the metatrader-mcp-server I get an "Invalid path" error upon startup:
File "C:\Users\Skype\AppData\Roaming\Python\Python310\site-packages\metatrader_client\connection\connect.py", line 15,
in connect
_initialize_terminal(connection)
File "C:\Users\Skype\AppData\Roaming\Python\Python310\site-packages\metatrader_client\connection\_initialize_terminal.
py", line 62, in _initialize_terminal
raise InitializationError(f"Failed to initialize MetaTrader 5 terminal: {error_message} (Error code: {error_code})")
metatrader_client.exceptions.InitializationError: Failed to initialize MetaTrader 5 terminal: Invalid "path" argument (Error code: -2)
When I run Python with the basic MetaTrader5 package it connects without problems. However for some reason metatrader-mcp-server does not work at all.
With the native MetaTrader5 package I don't need to specify a path, it just works.
The metatrader-mcp-server command has no argument to specity the path, so how can I fix this issue?
Thank you.
Edit:
Commenting out the path argument in _initialize_terminal.py makes it work.
When I run the metatrader-mcp-server I get an "Invalid path" error upon startup:
When I run Python with the basic MetaTrader5 package it connects without problems. However for some reason metatrader-mcp-server does not work at all.
With the native MetaTrader5 package I don't need to specify a path, it just works.
The metatrader-mcp-server command has no argument to specity the path, so how can I fix this issue?
Thank you.
Edit:
Commenting out the path argument in _initialize_terminal.py makes it work.