Skip to content

.Net: Bug: .Net: Add uvx MCP to Agent #12620

Closed
@dododo612

Description

@dododo612

Describe the bug
Any examples to add a stdio MCP based on uvx command to Agent?
I didn't find anything about it from official doc, and code example is not that clear
I tried as bellow, but "uvx" can't be recognized(I have already installed uvx).
await using IMcpClient mcpClient = await McpClientFactory.CreateAsync(
clientTransport: new StdioClientTransport(new StdioClientTransportOptions
{
Name = "MCPServer",
Command = "uvx",
Arguments = new[] { "xxx", "xxx", "xxx" }
})
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETIssue or Pull requests regarding .NET codebugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions