MCPServer: {
    allowed_tools?: AllowedTools[];
    headers?: { [k: string]: string };
    name?: string;
    type: "mcp_server";
    url?: string;
}

A MCPServer is a server that can be called by the model to perform actions.

Type declaration

  • Optionalallowed_tools?: AllowedTools[]

    The allowed tools.

  • Optionalheaders?: { [k: string]: string }

    Optional: Fields for authentication headers, timeouts, etc., if needed.

  • Optionalname?: string

    The name of the MCPServer.

  • type: "mcp_server"
  • Optionalurl?: string

    The full URL for the MCPServer endpoint.

    Example: "https://api.example.com/mcp"