Skip to content

The solution for encountering the Error "Error creating local task: Error: Timeout" when using "startup_timeout_ms" under windows #3385

@sfz009900

Description

@sfz009900

What version of the VS Code extension are you using?

v0.5.6

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

This is the situation where an error was reported before:
#3348

Now I have tried it myself and obtained a solution that can currently run MCP successfully:

[mcp_servers.context7]
command = "F:\\software\\nodejsold\\npx.cmd"
args = ["-y", "@upstash/context7-mcp", "--api-key", "xxxxxxxxxxxxxxxxxx"]
startup_timeout_ms = 20_000
env = { APPDATA="C:\\Users\\testuser000\\AppData\\Roaming", LOCALAPPDATA="C:\\Users\\testuser000\\AppData\\Local", HOME="C:\\Users\\testuser000", SystemRoot="C:\\Windows", ComSpec="C:\\Windows\\System32\\cmd.exe", NPM_CONFIG_REGISTRY="https://registry.npmmirror.com" }

it's ok :)

Image

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensionIssues related to the VS Code extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions