dotnet-template-mcp: Instructions file for Codex

AGENTS.md

dotnet-template-mcp AGENTS.md is an instructions file for Codex, OpenCode from YuliiaKovalova/dotnet-template-mcp. It costs 1,240 tokens per session, scanned A, original, MIT.

Instructions for an MCP server that wraps the .NET Template Engine. It helps an AI assistant find, inspect, compare, preview, and create .NET projects from templates.

In plain words
What is it for?
Use it to search or compare .NET templates, inspect solutions, preview generated files, create projects, and upgrade NuGet package versions.
Why use it?
It gives project setup a structured process with template discovery, parameter checks, and previews before files are created.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is YuliiaKovalova/dotnet-template-mcp's own configuration. It tells Codex and OpenCode how to work on dotnet-template-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dotnet-template-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to YuliiaKovalova/dotnet-template-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/YuliiaKovalova/dotnet-template-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/YuliiaKovalova/dotnet-template-mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-template-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yuliiakovalova/dotnet-template-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/yuliiakovalova/dotnet-template-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/yuliiakovalova/dotnet-template-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/yuliiakovalova/dotnet-template-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-template-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yuliiakovalova/dotnet-template-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/yuliiakovalova/dotnet-template-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,240 This file is loaded in full into every session.
When invoked 1,240 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01240 $0.01240
Opus 5 $0.00620 $0.00620
Sonnet 5 $0.00248 $0.00248
Haiku 4.5 $0.00124 $0.00124

Measured 9d ago against content hash c5b3d1725dda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dotnet-template-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — AI Agent Instructions for dotnet-template-mcp

Project Overview

MCP server wrapping the .NET Template Engine for AI-driven template discovery, inspection, and instantiation. Ships as a dotnet tool (DotnetTemplateMCP) on NuGet.

Build & Test

dotnet build
dotnet test
  • Targets net8.0 and net10.0 (see global.json for SDK version).
  • Uses Central Package Management — all versions in Directory.Packages.props.
  • CI runs on ubuntu-latest and windows-latest (see .github/workflows/ci.yml).
  • When the MCP server is running locally (e.g., as a tool provider), dotnet build may fail with a file lock on bin/Debug/net10.0/DotnetTemplateMcp.exe. Use -o <tempdir> to build to an alternate output path.

Architecture

Tool Registration Pattern

Each MCP tool is a static async method in a sealed class under src/DotnetTemplateMcp/Tools/:

[McpServerToolType]
internal sealed class MyTool
{
    [McpServerTool(Name = "tool_name")]
    [Description("Description shown to AI agents — lead with the pain point, not the feature name.")]
    public static async Task<string> MyMethodAsync(
        TemplateEngineService engineService,    // DI-injected service
        McpFeatureFlags featureFlags,           // DI-injected feature flags
        [Description("...")] string param1,     // User-facing params with [Description]
        CancellationToken cancellationToken = default)
    {
        // 1. Telemetry
        using var activity = McpTelemetry.StartToolActivity("tool_name");
        var sw = Stopwatch.StartNew();
        try
        {
            // 2. Profile check (for non-lite tools)
            if (!featureFlags.IsToolEnabled("tool_name"))
            {
                return ToolProfileResponse.DisabledMessage("tool_name", "Hint for the user.");
            }

            // 3. Tool logic
            // ...
        }
        finally
        {
            McpTelemetry.RecordDuration("tool_name", sw.Elapsed.TotalMilliseconds);
        }
    }
}

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 102 lines · 1,240 tokens per session scan A c5b3d1725dda

Subscribe to this mod's changes

dotnet-template-mcp AGENTS.md is an instructions file published in the GitHub repository YuliiaKovalova/dotnet-template-mcp (8 stars, last pushed 19d ago), licensed MIT. It adds 1,240 tokens to every session, about $0.0062 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.