Interface MCPServerDescription

interface MCPServerDescription {
    args?: string[];
    autostart?: boolean;
    command: string;
    env?: {
        [key: string]: string;
    };
    error?: string;
    name: string;
    status?: MCPServerStatus;
    tools?: ToolInformation[];
}

Properties

args?: string[]

An array of arguments to pass to the command.

autostart?: boolean

Flag indicating whether the server should automatically start when the application starts.

command: string

The command to execute the MCP server.

env?: {
    [key: string]: string;
}

Optional environment variables to set when starting the server.

Type declaration

  • [key: string]: string
error?: string

Last error message that the server has returned.

name: string

The unique name of the MCP server.

The current status of the server. Optional because only set by the server.

tools?: ToolInformation[]

List of available tools for the server. Returns the name and description if available.