Class Tools
- Namespace
- OllamaSharp.ModelContextProtocol
- Assembly
- OllamaSharp.ModelContextProtocol.dll
Contains entry point extensions for the Model Context Protocol (MCP) support.
public static class Tools
- Inheritance
-
Tools
- Inherited Members
Methods
GetFromMcpServers(McpClientOptions?, params McpServerConfiguration[])
Gets the tools from the specified MCP server configurations.
public static Task<McpClientTool[]> GetFromMcpServers(McpClientOptions? clientOptions, params McpServerConfiguration[] mcpServers)
Parameters
clientOptionsMcpClientOptionsThe client options to use when connecting to the MCP servers.
mcpServersMcpServerConfiguration[]List of MCP server configurations
Returns
Exceptions
GetFromMcpServers(params McpServerConfiguration[])
Gets the tools from the specified MCP server configurations.
public static Task<McpClientTool[]> GetFromMcpServers(params McpServerConfiguration[] mcpServers)
Parameters
mcpServersMcpServerConfiguration[]
Returns
Exceptions
GetFromMcpServers(string, McpClientOptions?)
Gets the tools from the specified MCP server configuration file.
public static Task<McpClientTool[]> GetFromMcpServers(string configurationFilePath, McpClientOptions? clientOptions = null)
Parameters
configurationFilePathstringFile path to the configuration file.
clientOptionsMcpClientOptionsThe client options to use when connecting to the MCP servers.