Skip to content

McpToolHeaders.Binding

Namespace: Vercel.AI.Mcp

public sealed class McpToolHeaders.Binding

One header bound to a tool argument path.

Inheritance: object

View source

Binding(string, IReadOnlyList<string>, string)

Section titled “Binding(string, IReadOnlyList<string>, string)”
public Binding(string headerName, IReadOnlyList<string> path, string valueType)

Creates a binding.

Parameters

Name Type Description
headerName string
path IReadOnlyList<string>
valueType string

View source

public string HeaderName { get; }

HTTP header token from x-mcp-header.

Value: string

View source

public IReadOnlyList<string> Path { get; }

Property path from the input object.

Value: IReadOnlyList<string>

View source

public string ValueType { get; }

string, integer, or boolean.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product