.agents package manager and compile-time MCP server source generator for .NET.
| 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 |
# 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.Agentsusing 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