dd-trace
    Preparing search index...

    Interface McpServer

    An MCP server referenced by the mcp.server_id of tool calls, sent in the mcpServers evaluate option. The SDK sends these values to AI Guard and stores them on the AI Guard span as given, without redaction: remove any credential before passing them.

    interface McpServer {
        args?: string[];
        command?: string;
        id: string;
        managed_by: "client" | "provider";
        name?: string;
        tools: { [functionName: string]: string };
        transport: "unknown" | "streamable_http" | "sse" | "stdio" | "in_process";
        url?: string;
    }
    Index
    args?: string[]

    Package or module that a stdio server runs. Leave out other arguments, which can contain paths, tokens or secrets.

    command?: string

    Program name of a stdio server command. Pass the program name, not the full path, which can contain the user name.

    id: string

    Server ID that the tool calls reference with mcp.server_id.

    managed_by: "client" | "provider"

    Who runs the MCP client: client when the application runs it, provider when the model provider runs it.

    name?: string

    Configured name of the server.

    tools: { [functionName: string]: string }

    Original MCP tool name of each function name that the model uses.

    transport: "unknown" | "streamable_http" | "sse" | "stdio" | "in_process"

    Transport of the server.

    url?: string

    Origin of the server URL: scheme, host and port only. Remove userinfo, path, query and fragment before passing it: many MCP providers put the API key there.