Skip to content

feat: support cwd parameter for stdio mcpServers (child process working directory) #288

@listenerri

Description

@listenerri

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Current mcpServers configuration does not support a cwd field for stdio-type servers, so it is not possible to set the working directory for the child process via the config file.

Desired Solution you'd like

support cwd field:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"],
      "cwd": "/tmp"
    }
}

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions