- New sk-proj OpenAI Key Truncated? WebRequest Always Returns You didn t provide an API key.
- MetaTrader 5 Beta Build 5955: MCP and Agentic AI support
- How to Start with Metatrader 5
I managed to connect to MCP server using Github Copilot from VS Code.
This is the configuration:
- Connection is defined in mcp.json in .vscode folder
- I copied server definitions from MT5:
{
"servers": {
"metaeditor": {
"type": "http",
"url": "http://127.0.0.1:22345/mcp",
"headers": {
"Authorization": "Bearer ****"
}
},
"mt5terminal": {
"type": "http",
"url": "http://127.0.0.1:22346/mcp",
"headers": {
"Authorization": "Bearer ***"
}
},
"marketdata": {
"type": "http",
"url": "https://www.metatrader.com/mcp",
"headers": {
"Authorization": "Bearer mq-***"
}
}
}
} First, I tried to manually add definition using Github Copilot GUI, but I got 401 same as you. Then I copied configuration and it worked.
Using above configuration, I managed to open and close charts and to start and run strategy tester.
I'm also using portable MT5 setup.
Now I see that you are mentioning Codex. I don't have experience with it, but I think that I saw that it uses `toml` file. Did you try that?
I managed to connect to MCP server using Github Copilot from VS Code.
This is the configuration:
- Connection is defined in mcp.json in .vscode folder
- I copied server definitions from MT5:
First, I tried to manually add definition using Github Copilot GUI, but I got 401 same as you. Then I copied configuration and it worked.
Using above configuration, I managed to open and close charts and to start and run strategy tester.
I'm also using portable MT5 setup.
Now I see that you are mentioning Codex. I don't have experience with it, but I think that I saw that it uses `toml` file. Did you try that?
Did you generated a new API Key ?
As the problem with it newly generated key, not connecting with the default one.
Connecting to Claude or Codex with the default key is working just fine.
Did you generated a new API Key ?
As the problem with it newly generated key, not connecting with the default one.
Connecting to Claude or Codex with the default key is working just fine.
I used the default key that was already generated and I didn't have any problems connecting.
The OP - @CoralFish reported problems connecting.
I have a problem retrieving information from the strategy tester:
Forum on trading, automated trading systems and testing trading strategies
Problem with running strategy tester through MCP server
Drazen Penic, 2026.08.22 14:45
I successfully configured an MCP server and I managed to start a local indicator tester session. I could see a correct indicator being tested in the strategy tester.
MT5 returned tester run_id: 7676818232884649938
While the test was still running, I asked for the tester status, but the MCP server couldn't find that run_id: “tester_get_status requested run_id does not match the active tester job”
When the tester finished, I asked for the test report, but it answered with: "tester_get_report requested run_id does not match the last tester job"
I didn't run any other test.
The tester log file doesn't contain "run_id", nor could I find it in the MT5.
MT5 v6140
I tried this from VS Code, using Github Copilot.
Does this work for testing indicators?
Am I missing something?
I used the default key that was already generated and I didn't have any problems connecting.
The OP - @CoralFish reported problems connecting.
I have a problem retrieving information from the strategy tester:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use