DevOnBike.Overfit.Mcp 10.0.29

dotnet add package DevOnBike.Overfit.Mcp --version 10.0.29
                    
NuGet\Install-Package DevOnBike.Overfit.Mcp -Version 10.0.29
                    
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="DevOnBike.Overfit.Mcp" Version="10.0.29" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DevOnBike.Overfit.Mcp" Version="10.0.29" />
                    
Directory.Packages.props
<PackageReference Include="DevOnBike.Overfit.Mcp" />
                    
Project file
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 DevOnBike.Overfit.Mcp --version 10.0.29
                    
#r "nuget: DevOnBike.Overfit.Mcp, 10.0.29"
                    
#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 DevOnBike.Overfit.Mcp@10.0.29
                    
#: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=DevOnBike.Overfit.Mcp&version=10.0.29
                    
Install as a Cake Addin
#tool nuget:?package=DevOnBike.Overfit.Mcp&version=10.0.29
                    
Install as a Cake Tool

DevOnBike.Overfit.Mcp

An MCP (Model Context Protocol) server for the Overfit in-process LLM runtime — dependency-free JSON-RPC 2.0 over stdio, with typed wire contracts (Protocol/) serialized through a source-generated JsonSerializerContext (no SDK, no reflection, no DI), so it drops cleanly into a Native-AOT single binary (AOT-verified end-to-end). Plug local, zero-egress AI tools into any MCP host: Claude Code, Claude Desktop, IDEs.

What you get

  • McpServer — a minimal stdio MCP server (initialize / ping / tools/list / tools/call, newline-delimited JSON-RPC, logs on stderr). Requests are served one at a time (single-tenant model session underneath — same stance as the OpenAI server).
  • McpTool — name + description + raw JSON Schema + a Func<JsonElement?, McpToolResult> handler. Tool-execution failures flow back as isError results (so the host model can self-correct), never as protocol errors.
  • Protocol/ — the typed JSON-RPC/MCP wire contracts (JsonRpcRequest, JsonRpcResponse<T>, McpInitializeResult, McpToolsListResult, McpCallToolResult, …) with a source-generated McpJsonContext : JsonSerializerContext: compile-time serializers, no reflection, every closed JsonRpcResponse<T> registered explicitly. JsonElement is used only where the JSON is genuinely dynamic (the echoed id, params/arguments, inputSchema). The same contracts will serve the future MCP client (host role) — the framing is symmetric.
  • OverfitMcpTools — factories for the built-in tools backed by the Overfit runtime:
    • ask — prompt → a local GGUF chat model (Qwen / Llama / Phi / Gemma / Mistral / Bielik …)
    • rag_query — question → answer with citations over a private, locally-indexed document folder
    • transcribe — WAV/MP3 file → text via Whisper, pure C# on the CPU

Usage

using DevOnBike.Overfit.LanguageModels;
using DevOnBike.Overfit.Mcp;

using var client = OverfitClient.LoadGguf(@"C:\models\qwen2.5-3b-instruct-q4_k_m.gguf");

var tools = new[] { OverfitMcpTools.CreateAsk(client) };
var server = new McpServer("overfit", "10.0.23", tools, log: Console.Error);
server.Run(Console.In, Console.Out);   // blocks until the host closes stdin

This is exactly what the overfit mcp CLI command runs. Register it with an MCP host, e.g. Claude Code:

claude mcp add overfit -- overfit mcp C:\models\model.gguf

Or use the helper scripts next to this README: mcp-register.cmd / mcp-unregister.cmd / mcp-status.cmd / mcp-run.cmd (foreground debug) / mcp-smoke.cmd (no-Claude handshake test).

No .NET on the machine? Use the Docker image (devonbikeit/overfit:mcp, ~34 MB, stdio piped via docker run -i): mcp-register-docker.cmd / mcp-smoke-docker.cmd. See docs/mcp.md.

Notes

  • stdio transport only (local process = on-brand zero egress). The protocol layer is host-agnostic — an HTTP transport can reuse it.
  • Everything stays on your machine: the model, the documents, the audio. No keys, no egress.
  • Validated three ways: 12 model-free protocol tests, end-to-end over stdio against the real CLI binary, and inside real Claude Code (✔ Connected + a live session driving all three tools — including a Polish RAG question, confirming the chat-model embeddings are multilingual). Details and the PowerShell -- gotcha: docs/mcp.md.

License

Dual-licensed: AGPL-3.0-or-later for open source; a commercial license is available for closed-source / SaaS / regulated use — see COMMERCIAL.md.

Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.29 103 7/5/2026
10.0.28 111 6/26/2026
10.0.27 109 6/22/2026
10.0.26 109 6/20/2026
10.0.25 106 6/12/2026
10.0.24 115 6/11/2026