Skip to content

[Bug] "fetch failed sending request" error when using MCP with Unreal Engine #24

Closed
@wxdfc

Description

@wxdfc

Hello,

I'm trying to set up the unreal-mcp project and control Unreal Engine using the gemini-cli as the MCP client, following the project's README.md and Python README.md instructions.

I have successfully installed and run the Python MCP server, but when I try to send a command from Gemini CLI, I get a [API Error: exception TypeError: fetch failed sending request] error.

Steps I have taken to reproduce the issue:

Downloaded the project from the GitHub repository and placed it in E:\MyProjects\unreal-mcp.

Successfully installed Node.js v22.16.0 and Gemini CLI using npm install -g.

Successfully compiled the Unreal Engine project after clicking "Yes" to rebuild missing modules.

Started the Python MCP server in E:\MyProjects\unreal-mcp\Python by running python unreal_mcp_server.py. The server appears to be running correctly and is not crashing.

Manually created the MCP configuration file at C:\Users\xjk.config\google-gemini-cli\mcp.json.

Validated the JSON syntax using jsonlint.com, and it was confirmed as valid.

Executed the command from a new terminal window: gemini -p "In Unreal Engine, create a cube at position (100, 0, 0)."

Observed the error: [API Error: exception TypeError: fetch failed sending request] in the terminal.

Verified that the Python server terminal did not show any new logs or activity after sending the command from the CLI.

Temporarily disabled Windows Defender Firewall (for both Public and Private networks) and re-ran the command, but the error persisted.

My environment:

Operating System: Windows 11 .

Gemini CLI Version: 0.1.4 .

Node.js Version: v22.16.0

Python Version: 3.13.5 .

Unreal Engine Version: 5.5 .

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions