Skip to content

ANcpLua/netagents

Repository files navigation

NuGet NuGet NuGet NuGet License: MIT

netagents

.agents package manager and compile-time MCP server source generator for .NET.

Packages

Package Purpose
NetAgents CLI tool for bootstrapping, installing, syncing, and trusting .agents skill repositories
Qyl.Agents.Abstractions [McpServer] and [Tool] marker attributes (netstandard2.0)
Qyl.Agents.Generator Source generator that emits MCP dispatch, schema, metadata, and OTel instrumentation
Qyl.Agents Runtime: MCP transport, protocol handler, HTTP hosting, well-known discovery

Installation

# CLI tool
dotnet tool install --global NetAgents

# MCP server libraries
dotnet add package Qyl.Agents.Abstractions
dotnet add package Qyl.Agents.Generator
dotnet add package Qyl.Agents

Quick Start

using Qyl.Agents;

[McpServer("calc-server")]
public partial class CalcServer
{
    [Tool]
    public int Add(int a, int b) => a + b;
}

The generator produces MCP dispatch and metadata at build time. The runtime package hosts the server over stdio or HTTP.

netagents init
netagents add getsentry/dotagents
netagents install

Related

About

.agents package manager and compile-time MCP server source generator for .NET

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages