mcp-windows copilot-instructions.md

mcp-windows copilot-instructions.md is an instructions file for GitHub Copilot from sbroenne/mcp-windows. It costs 1,131 tokens per session, scanned A, original, MIT.

A set of coding guidelines for mcp-windows, a Windows-only MCP server that automates user-interface actions. It also covers related Excel and PowerPoint automation projects.

In plain words
What is it for?
Use it when developing or reviewing mcp-windows, especially for architecture, automation workflows, process management, command-line and MCP entry points, or reusable fixes across the project family.
Why use it?
It gives contributors shared design rules and points them to existing patterns for command-line tools, MCP servers, background processes, and checks. This reduces inconsistent fixes across related projects.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/sbroenne/mcp-windows/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/sbroenne/mcp-windows

Made for: GitHub Copilot.

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 mcp-windows copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sbroenne/mcp-windows/copilot-instructions.svg)](https://agentmods.dev/instructions/sbroenne/mcp-windows/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/sbroenne/mcp-windows/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/sbroenne/mcp-windows/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,131 This file is loaded in full into every session.
When invoked 1,131 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01131 $0.01131
Opus 5 $0.00566 $0.00566
Sonnet 5 $0.00226 $0.00226
Haiku 4.5 $0.00113 $0.00113

Measured 4d ago against content hash 1bea59c2fe83, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-windows copilot-instructions.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 4d 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.

.github/copilot-instructions.md · 90 lines

How it starts

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

Copilot Instructions for mcp-windows

Sister Projects

mcp-windows is one of a family of Windows-only MCP-server repos maintained by the same author (sbroenne). The family also includes:

  • mcp-server-excel (sbroenne/mcp-server-excel) — Excel COM automation. This is the authoritative architectural template for the family's general server-side patterns: layered architecture (Core → Service → CLI/MCP Server), the "two equal entry points" (MCP Server + CLI) principle, Unified Service Architecture (shared daemon/session registry), and its support/audit scripts (scripts/*.ps1) and CI Gate workflow. mcp-windows is UI-automation-focused (FlaUI/ pywinauto patterns) rather than COM/Office-interop-focused, so not every Excel pattern applies directly — but when solving a cross-cutting problem (session lifecycle, CLI/MCP parity, daemon process management, pre-commit audit tooling), check how Excel solved it first.
  • mcp-server-powerpoint (sbroenne/mcp-server-powerpoint) — PowerPoint COM automation, structurally mirrors mcp-server-excel.

If you fix a real bug or process/tooling gap here that likely also exists in the other repos, flag it so the same fix can be considered there.

Core Principles

The project follows these NON-NEGOTIABLE principles:

  • Test-First Development - Write tests before implementation
  • MCP Protocol Compliance - Follow MCP specification strictly
  • Augmentation, Not Duplication - Tools are "dumb actuators", no complex logic in tools
  • Microsoft Libraries First - Prefer official Microsoft libraries over third-party alternatives
  • Security Best Practices - No secrets in code, validate inputs, follow security guidelines
  • Modern .NET & C# - Use current .NET and C# language features
  • xUnit Testing - All .NET tests use xUnit framework
  • LLM Integration Testing - Use pytest-skill-engineering with GitHub Copilot SDK
  • Token Optimization - Optimize MCP responses for LLM token efficiency
  • UI Automation First - Semantic UI automation is the primary approach

Read the full file on GitHub · 90 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. 4d ago First seen · 90 lines · 1,131 tokens per session scan A 1bea59c2fe83

Subscribe to this mod's changes

mcp-windows copilot-instructions.md is an instructions file published in the GitHub repository sbroenne/mcp-windows (88 stars, last pushed yesterday), licensed MIT. It adds 1,131 tokens to every session, about $0.0057 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-30.