MCPTool Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| MCPTool() |
Initializes a new instance of MCPTool for deserialization. |
| MCPTool(String, String) |
Initializes a new instance of MCPTool. |
| MCPTool(ToolType, IDictionary<String,BinaryData>, String, String, IDictionary<String,String>, BinaryData, BinaryData, String) |
Initializes a new instance of MCPTool. |
MCPTool()
- Source:
- MCPTool.cs
Initializes a new instance of MCPTool for deserialization.
public MCPTool();
Public Sub New ()
Applies to
MCPTool(String, String)
- Source:
- MCPTool.cs
Initializes a new instance of MCPTool.
public MCPTool(string serverLabel, string serverUrl);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPTool : string * string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPTool
Public Sub New (serverLabel As String, serverUrl As String)
Parameters
- serverLabel
- String
A label for this MCP server, used to identify it in tool calls.
- serverUrl
- String
The URL for the MCP server.
Exceptions
serverLabel or serverUrl is null.
Applies to
MCPTool(ToolType, IDictionary<String,BinaryData>, String, String, IDictionary<String,String>, BinaryData, BinaryData, String)
- Source:
- MCPTool.cs
Initializes a new instance of MCPTool.
public MCPTool(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolType type, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string serverLabel, string serverUrl, System.Collections.Generic.IDictionary<string,string> headers, BinaryData allowedTools, BinaryData requireApproval, string projectConnectionId);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPTool : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolType * System.Collections.Generic.IDictionary<string, BinaryData> * string * string * System.Collections.Generic.IDictionary<string, string> * BinaryData * BinaryData * string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPTool
Public Sub New (type As ToolType, serializedAdditionalRawData As IDictionary(Of String, BinaryData), serverLabel As String, serverUrl As String, headers As IDictionary(Of String, String), allowedTools As BinaryData, requireApproval As BinaryData, projectConnectionId As String)
Parameters
- type
- ToolType
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.
- serverLabel
- String
A label for this MCP server, used to identify it in tool calls.
- serverUrl
- String
The URL for the MCP server.
- headers
- IDictionary<String,String>
Optional HTTP headers to send to the MCP server. Use for authentication or other purposes.
- allowedTools
- BinaryData
List of allowed tool names or a filter object.
- requireApproval
- BinaryData
Specify which of the MCP server's tools require approval.
- projectConnectionId
- String
The connection ID in the project for the MCP server. The connection stores authentication and other connection details needed to connect to the MCP server.