Agent Client Protocol - v0.2.0-alpha.8
    Preparing search index...

    Type Alias McpServer

    McpServer:
        | { headers: HttpHeader[]; name: string; type: "http"; url: string }
        | { headers: HttpHeader[]; name: string; type: "sse"; url: string }
        | Stdio

    Configuration for connecting to an MCP (Model Context Protocol) server.

    MCP servers provide tools and context that the agent can use when processing prompts.

    See protocol docs: MCP Servers

    Type Declaration

    • { headers: HttpHeader[]; name: string; type: "http"; url: string }
      • headers: HttpHeader[]

        HTTP headers to set when making requests to the MCP server.

      • name: string

        Human-readable name identifying this MCP server.

      • type: "http"
      • url: string

        URL to the MCP server.

    • { headers: HttpHeader[]; name: string; type: "sse"; url: string }
      • headers: HttpHeader[]

        HTTP headers to set when making requests to the MCP server.

      • name: string

        Human-readable name identifying this MCP server.

      • type: "sse"
      • url: string

        URL to the MCP server.

    • Stdio