Nutrient Web SDK
    Preparing search index...

    Interface MCPHttpServerConfig

    Configuration for one HTTP/HTTPS Model Context Protocol (MCP) server the AI Agent should connect to.

    HTTP is the only supported MCP transport — see AIAssistant.AgentConfiguration.mcps for worked authentication examples.

    interface MCPHttpServerConfig {
        headers?: Record<string, string>;
        name: string;
        tools?: string[];
        transport: "http";
        url: string;
    }
    Index

    Properties

    headers?: Record<string, string>

    Optional HTTP headers sent with each request to the MCP server. The primary mechanism for authenticating against an MCP server — see the worked examples on the mcps field for Bearer-token and API-key conventions.

    name: string

    A unique name to identify this MCP server. Used in tool names (mcp__<name>__<tool>) and in approval-rule patterns (mcp__<name>__*).

    tools?: string[]

    Optional allow-list of tool names to expose from this server. When omitted, every tool the server advertises is available to the agent.

    tools: ['search', 'fetch']
    
    transport: "http"

    Transport type. Always 'http'.

    url: string

    The HTTP(S) endpoint URL for the MCP server, as a string.

    url: 'https://api.example.com/mcp'