Darkspyre.Inference.Connect.HostTools
11.19.3-rc.2
Prefix Reserved
dotnet add package Darkspyre.Inference.Connect.HostTools --version 11.19.3-rc.2
NuGet\Install-Package Darkspyre.Inference.Connect.HostTools -Version 11.19.3-rc.2
<PackageReference Include="Darkspyre.Inference.Connect.HostTools" Version="11.19.3-rc.2" />
<PackageVersion Include="Darkspyre.Inference.Connect.HostTools" Version="11.19.3-rc.2" />
<PackageReference Include="Darkspyre.Inference.Connect.HostTools" />
paket add Darkspyre.Inference.Connect.HostTools --version 11.19.3-rc.2
#r "nuget: Darkspyre.Inference.Connect.HostTools, 11.19.3-rc.2"
#:package Darkspyre.Inference.Connect.HostTools@11.19.3-rc.2
#addin nuget:?package=Darkspyre.Inference.Connect.HostTools&version=11.19.3-rc.2&prerelease
#tool nuget:?package=Darkspyre.Inference.Connect.HostTools&version=11.19.3-rc.2&prerelease
Darkspyre.Inference.Connect.HostTools
The host-tools local service and its client. An application registers an agent session's tools with the service and
answers their calls; an MCP program that an agent CLI starts lists the session's tools and forwards each call through
the same service. Darkspyre.Inference.Connect.Antigravity uses it to give the Antigravity CLI the application's tools.
Install
dotnet add package Darkspyre.Inference.Connect.HostTools
The package carries the service built for each supported runtime: osx-arm64, osx-x64, linux-x64, linux-arm64,
win-x64 and win-arm64. At build time it copies the one for the application's RuntimeIdentifier, or for the build
machine's runtime when the application names none, to hosttools/service/ beside the library.
Register
The package needs no service registration. HostToolsRuntime.ConnectAsync installs the bundled service in the
application's data folder, starts it when no process runs it, and returns a connected HostToolsClient.
Example
string package = Path.Combine(AppContext.BaseDirectory, HostToolsRuntime.PackageFolder);
await using HostToolsClient client = await HostToolsRuntime.ConnectAsync(package,
new ServiceFolders(pluginDataFolder, null, CreateIfMissing: true), cancellationToken);
await using IAsyncDisposable registration = await client.RegisterAsync(sessionId, toolsList,
(parameters, token) => RunToolAsync(parameters, token), cancellationToken);
toolsList is the session's MCP tools/list result. The handler runs one MCP tools/call and returns its
CallToolResult. Disposing the registration removes the session from the service.
Limits
- The client never owns or ends the shared service process.
HostToolsRuntime.StopServiceAsyncstops the service of a data folder; every connection to it closes, including the MCP programs' connections. - An MCP program joins with
CreateIfMissing: false. Joining a folder where no service is set up fails and creates nothing. - Tool calls run as long as the host tool needs; the agent's own cancellation ends them.
The Darkspyre.Inference packages
This package is one library of the Darkspyre.Inference family. The family runs AI inference from .NET applications through typed, provider-neutral contracts.
Darkspyre.Inference.Commonholds the contracts every other package shares: requests, results, capabilities, failures and the provider setup model.Darkspyre.Inference.Connect.Commonholds the conversation and embedding services. Each Connect provider package adds one provider, andAddLlmConnect()discovers every provider package the application references.- The Tensor packages load and run models inside the application's own process.
- The UI.Settings packages provide the setup editors a host places in its own window or page.
Every package of the family carries the same version. Reference all of them at the same version: each package depends on the exact version of the family packages it uses.
The packages are licensed under the MIT license. LICENSE.md in each package holds the license text.
| Package | Holds |
|---|---|
| Darkspyre.Inference.Common | Shared contracts for Connect and Tensor |
| Darkspyre.Inference.Connect | Image, speech and audio connectors |
| Darkspyre.Inference.Connect.Common | Conversation and embedding services and provider discovery |
| Darkspyre.Inference.Connect.Codex | Conversations on a ChatGPT subscription |
| Darkspyre.Inference.Connect.Claude | Conversations on a Claude subscription through the Claude CLI |
| Darkspyre.Inference.Connect.HostTools | The host-tools local service and its client |
| Darkspyre.Inference.Connect.Antigravity | Conversations on a Google subscription through the Antigravity CLI |
| Darkspyre.Inference.Connect.Grok | Conversations on a Grok subscription |
| Darkspyre.Inference.Connect.OpenAiApi | Conversations and embeddings through the OpenAI API |
| Darkspyre.Inference.Connect.SelfHost | Conversations and embeddings on engines the application runs |
| Darkspyre.Inference.Tensor.Common | Model packs, the model lifecycle and the Tensor capability interfaces |
| Darkspyre.Inference.Tensor.Decision.Laya | Laya typed decisions through ONNX Runtime |
| Darkspyre.Inference.Tensor.Embedding | Text embeddings from GGUF sentence encoders |
| Darkspyre.Inference.Tensor.Embedding.Gemma | EmbeddingGemma text and image embeddings |
| Darkspyre.Inference.Tensor.Ggml | The process's GGML and MLX native runtime |
| Darkspyre.Inference.Tensor.Image.Supra | Supra2-IMG image generation |
| Darkspyre.Inference.Tensor.LLM.Qwen | Qwen GGUF text generation |
| Darkspyre.Inference.Tensor.Registry | Registration and discovery of the Tensor engines |
| Darkspyre.Inference.Tensor.STT.Whisper | Whisper speech transcription |
| Darkspyre.Inference.UI.Settings.Core | Editor state and host contracts both setup editors share |
| Darkspyre.Inference.UI.Settings.Avalonia | The Avalonia setup editor |
| Darkspyre.Inference.UI.Settings.Blazor | The Blazor setup editor |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Darkspyre.Inference.Connect.HostTools:
| Package | Downloads |
|---|---|
|
Darkspyre.Inference.Connect.Antigravity
Conversations and native agent sessions on a Google subscription through the official Antigravity CLI. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.19.3-rc.2 | 37 | 10/31/2026 |
| 11.17.3-rc.2 | 69 | 10/26/2026 |