@modelcontextprotocol/sdk
    Preparing search index...

    Type Alias StdioServerParameters

    type StdioServerParameters = {
        args?: string[];
        command: string;
        cwd?: string;
        env?: Record<string, string>;
        stderr?: IOType | Stream | number;
    }
    Index

    Properties

    args?: string[]

    Command line arguments to pass to the executable.

    command: string

    The executable to run to start the server.

    cwd?: string

    The working directory to use when spawning the process.

    If not specified, the current working directory will be inherited.

    env?: Record<string, string>

    The environment to use when spawning the process.

    If not specified, the result of getDefaultEnvironment() will be used.

    stderr?: IOType | Stream | number

    How to handle stderr of the child process. This matches the semantics of Node's child_process.spawn.

    The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr.