Intellectus.AIAgent.MCPServer 1.0.0

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

Intellectus AI Agent MCP Server

Packages Version Downloads
Intellectus.AIAgent.Framework Nuget Version Downloads count
Intellectus.AIAgent.MCPServer Nuget Version Downloads count
Intellectus.AIAgent.MCPServer.Client Nuget Version Downloads count
ts-intellectus-aiagent-mcpserver-client NPM Version Downloads count

Overview

Library provides an OpenAI Agent for .NET applications.

The agent is designed to facilitate communication between your application and OpenAI's large language models (LLMs),

enabling you to build intelligent conversational interfaces.

You can tell the Agent about your tools & the Agent can figure out which tool to use, given a natural language input.

Model Context Protocol (MCP) Server

You can use the Intellectus.AIAgent.MCPServer package to build an MCP Server.

All your Tools reside in your Server. The Server communicates with OpenAI LLMs.

The Clients talk to the Server using HTTP/stdio and get a response back.

Sample Server

Create a Console project.

In the .csproj,

change the SDK to Web as shown below:

<Project Sdk="Microsoft.NET.Sdk.Web">

and add below properties in the PropertyGroup.

<RuntimeIdentifiers>win-x64;win-arm64;osx-arm64;linux-x64;linux-arm64;linux-musl-x64</RuntimeIdentifiers>


<SelfContained>true</SelfContained>
<PublishSelfContained>true</PublishSelfContained>


<PublishSingleFile>true</PublishSingleFile>

Then, hook up your server in Program.cs as shown below:

using Intellectus.AIAgent.Framework;
using Intellectus.AIAgent.MCPServer;
using MCPServer.Sample;

Console.WriteLine("Intellectus AI Agent MCP Server...");

var builder = WebApplication.CreateBuilder(args);

var apiKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY");

// Register tools with DI
builder.Services.AddScoped<ITool, SalesTool>();
builder.Services.AddScoped<ITool, ProductTool>();

// Register the server and configure settings
builder.Services.AddIntellectusMCPServer(settings =>
{
    settings.OpenAIAPIKey = apiKey;
    settings.OpenAILLMModel = "gpt-4o-mini";
    settings.ReasoningResult = @"<ProductName>:<Year>
                                    Year is optional.
                                ";
    //Add tools without using DI
    //settings.Tools = new List<ITool> { new SalesTool(), new ProductTool() };
});

var app = builder.Build();

app.UseIntellectusMCPServer();

await app.RunAsync();

To call the MCP Server using HTTP, use a JSON request like below:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ai_agent_respond",
    "arguments": {
      "userInput": "<--Your input here-->"
    }
  }
}

Sample MCP Server

Sample Client

Tests

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
1.0.0 90 8/3/2026

Initial release.