CereBro

CereBro is a model-agnostic AI Agent Wrapper for .Net that supports the Model Context Protocol, allowing developers to write tools compatible with various AI models like OpenAI without code changes.

17
1

CereBro

GitHub release
NuGet stable version
GitHub license

CereBro is a model-agnostic AI Agent Wrapper for .Net, leveraging the Model Context Protocol and its Official C# SDK. This allows developers to create tools compatible with various AI models without code modification.

Models

Supported:

Planned:

  • Claude, Grok, DeepSeek, Gemini, and Ollama.

Installation

Install via NuGet:

dotnet add package Rob1997.CereBro

dotnet add package Rob1997.CereBro.Open-AI

Usage

  1. Configure MCP servers in servers.json.
  2. Set your OpenAI API Key as an environment variable.
  3. Use builder.BuildCereBro with CereBroConfig in Program.cs.
  4. Run with dotnet run.

CereBro uses the Console as a chat dispatcher, but you can implement IChatDispatcher for custom dispatchers.

Adding a new Model

Implement Microsoft.Extensions.AI.IChatClient and create a FunctionInvokingChatClient placeholder. Use the UseChatClient<T> extension method to add the model. Note that CereBro currently supports one model at a time.

Contributing

Contributions are welcome via pull requests and issue reports.

Repository

RO
rob1997

rob1997/CereBro

Created

March 9, 2025

Updated

March 28, 2025

Language

C#

Category

AI