Ananke.MCP
0.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Ananke.MCP --version 0.2.0
NuGet\Install-Package Ananke.MCP -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ananke.MCP" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ananke.MCP" Version="0.2.0" />
<PackageReference Include="Ananke.MCP" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ananke.MCP --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ananke.MCP, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ananke.MCP@0.2.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ananke.MCP&version=0.2.0
#tool nuget:?package=Ananke.MCP&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ananke.MCP
MCP (Model Context Protocol) integration for Ananke — expose ToolKit tools and Workflow executions as MCP server capabilities, and import tools from external MCP servers into ToolKit for agent use. Supports stdio and HTTP transports via the official C# MCP SDK.
Install
dotnet add package Ananke.MCP
Quick start
Consume tools from an MCP server
await using var client = await McpClient.CreateAsync(
new StdioClientTransport(new StdioClientTransportOptions
{
Command = "npx", Arguments = ["-y", "@modelcontextprotocol/server-everything"]
}));
var toolkit = await new ToolKit("remote")
.AddMcpServerToolsAsync(client);
// Every tool from the remote server is now a ToolDefinition —
// use it in any AgentJob workflow exactly like local tools.
Expose tools as an MCP server
var toolkit = new ToolKit("stock")
.AddTool("get_price", "Gets the stock price", GetPrice, "symbol", "Ticker symbol");
builder.Services.AddMcpServer(options => { options.ServerName = "my-server"; })
.WithAnankeTools(toolkit);
Expose a workflow
builder.Services.AddMcpServer(options => { options.ServerName = "my-server"; })
.WithAnankeWorkflow(
name: "run_pipeline",
description: "Runs the ETL pipeline and returns results",
workflow: etlWorkflow,
stateFactory: args => new PipelineState { Input = args["input"].GetString()! });
Features
- MCP client —
AddMcpServerToolsAsync(IMcpClient)discovers remote tools and bridges them intoToolKit/ToolDefinitionfor transparent agent use - MCP server — register any
ToolKitorWorkflow<T>as MCP server capabilities - Supports both stdio and HTTP transports
- Compatible with Claude Desktop, VS Code Copilot, and any MCP client
Requirements
Ananke.Orchestration(transitive)ModelContextProtocolSDK ≥ 1.0.0
Documentation
Full docs, demos, and architecture: github.com/sevensamurai/Ananke
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Ananke.Orchestration (>= 0.2.0)
- ModelContextProtocol (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.