Skip to content

error: unexpected argument '--directory' found #4

Description

@arjun-ms

Getting an ERROR like this:

2025-05-01T02:08:54.971Z [x-mcp] [info] Initializing server...
2025-05-01T02:08:55.019Z [x-mcp] [info] Server started and connected successfully
2025-05-01T02:08:55.022Z [x-mcp] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
2025-05-01T02:08:59.463Z [Runner] Connecting to server: {"id":"x-mcp","connectionTypes":["stdio"]}
2025-05-01T02:08:59.465Z [Runner] Starting child process setup...
2025-05-01T02:08:59.847Z [Runner] Executing: {"command":"uv","args":["--directory","E:\\\\MCP\\\\x-mcp","run","x-mcp"]}
error: unexpected argument '--directory' found

Usage: uv [OPTIONS] <COMMAND>

For more information, try '--help'.
2025-05-01T02:08:59.900Z [Runner] Child process terminated
2025-05-01T02:08:59.900Z [Runner] Process terminated unexpectedly while running
2025-05-01T02:08:59.900Z [Runner] Exit handler triggered, starting shutdown...
2025-05-01T02:08:59.900Z [Runner] Starting cleanup...
2025-05-01T02:08:59.900Z [Runner] Attempting to close transport...
2025-05-01T02:08:59.901Z [Runner] Transport closed successfully
2025-05-01T02:08:59.901Z [Runner] Cleanup completed
2025-05-01T02:09:55.106Z [x-mcp] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":0,"reason":"Error: MCP error -32001: Request timed out"}}
2025-05-01T02:09:55.107Z [x-mcp] [info] Client transport closed
2025-05-01T02:09:55.108Z [x-mcp] [info] Server transport closed
2025-05-01T02:09:55.108Z [x-mcp] [info] Client transport closed
2025-05-01T02:09:55.108Z [x-mcp] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-05-01T02:09:55.108Z [x-mcp] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) {"context":"connection"}
2025-05-01T02:09:55.111Z [Runner] STDIN closed (client disconnected)
2025-05-01T02:09:55.111Z [Runner] Exit handler triggered, starting shutdown...
2025-05-01T02:09:55.111Z [Runner] Cleanup already in progress, skipping...
2025-05-01T02:09:55.112Z [Runner] Exit handler triggered, starting shutdown...
2025-05-01T02:09:55.112Z [Runner] Cleanup already in progress, skipping...
2025-05-01T02:09:55.113Z [Runner] Final cleanup on exit
2025-05-01T02:09:55.148Z [x-mcp] [info] Server transport closed
2025-05-01T02:09:55.148Z [x-mcp] [info] Client transport closed

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