Skip to content

Tools.GetFromMcpServers #248

@changweihua

Description

@changweihua

var ollamaTools = await Tools.GetFromMcpServers(new OllamaSharp.ModelContextProtocol.McpClientOptions
{
InitializationTimeout = TimeSpan.FromMinutes(10),
}, new OllamaSharp.ModelContextProtocol.Server.McpServerConfiguration
{
Name = "MCP Server",
Command = "http://localhost:5185/sse",
TransportType = OllamaSharp.ModelContextProtocol.Server.McpServerTransportType.Sse,
//Options
});

Exception:
System.TypeLoadException:“Could not load type 'ModelContextProtocol.Protocol.Transport.IClientTransport' from assembly 'ModelContextProtocol, Version=0.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.”

Image

Tks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions