wemo-mcp-server: Instructions file for GitHub Copilot

.github/copilot-instructions.md

wemo-mcp-server copilot-instructions.md is an instructions file for GitHub Copilot from apiarya/wemo-mcp-server. It costs 7,061 tokens per session, scanned C, original, MIT.

Repository instructions for contributors to a WeMo MCP server, a service that lets AI assistants discover and control WeMo smart-home devices. They define mandatory checks before commits and approval before pushes.

In plain words
What is it for?
Use them when changing this project to run its specified tests and checks before committing, and to review the commit summary before pushing.
Why use it?
They reduce the risk of committing failing code and sending changes to the remote repository without the user’s confirmation.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is apiarya/wemo-mcp-server's own configuration. It tells GitHub Copilot how to work on wemo-mcp-server 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 wemo-mcp-server configures β†’

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python tests/test_e2e.py.

Reuse

Borrowing it

Nothing to install: this file belongs to apiarya/wemo-mcp-server. 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/apiarya/wemo-mcp-server/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/apiarya/wemo-mcp-server

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apiarya/wemo-mcp-server/copilot-instructions/github.svg)](https://agentmods.dev/instructions/apiarya/wemo-mcp-server/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/apiarya/wemo-mcp-server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/apiarya/wemo-mcp-server/copilot-instructions/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 wemo-mcp-server copilot-instructions.md

Your own site Β· 80Γ—15
<a href="https://agentmods.dev/instructions/apiarya/wemo-mcp-server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/apiarya/wemo-mcp-server/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,061 This file is loaded in full into every session.
When invoked 7,061 The same file β€” it is already loaded in full.
Security scan C 1 finding. 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.07061 $0.07061
Opus 5.5 $0.02824 $0.02824
Sonnet 5.5 $0.01412 $0.01412
Haiku 4.5 $0.00706 $0.00706

Measured 2mo ago against content hash 67ef0c88b19f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

wemo-mcp-server copilot-instructions.md scanned grade C with 1 finding 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 2mo 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Use this file to provide workspace-specific custom instructions to Copilot. For more details, visit https://code.visualstudio.com/docs/copilot/copilot-customization#_use-a-githubcopilotinstructionsmd-file -->
.github/copilot-instructions.md Β· 822 lines

How it starts

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

WeMo MCP Server - Copilot Instructions

πŸ€– Mandatory Rules for AI Agents

These rules apply to GitHub Copilot and any AI assistant making changes in this repo. Violating them has caused CI failures and broken releases in the past.

BEFORE EVERY git commit β€” no exceptions

  1. Run the full test suite and confirm it passes:

    .venv/bin/python -m pytest tests/test_server.py tests/test_phase2.py tests/test_models.py -q --tb=short
    # Must show: X passed, 0 failed
    
    • This takes ~5 seconds. There is no acceptable reason to skip it.
    • Do NOT use --no-verify. Pre-commit hooks run black, ruff, mypy, and pytest automatically.
    • If a test fails, fix the test or the code before committing. Do not commit broken tests.
  2. Only after the test suite passes, commit normally (no --no-verify):

    git commit -m "your message"
    

    The pre-commit hooks will run black, ruff, mypy, and pytest automatically. If any hook fails, fix the issue and retry.

BEFORE EVERY git push β€” always ask the user first

Show the commit summary and wait for explicit confirmation before pushing:

git log origin/main..HEAD --oneline

Exception: user has explicitly said "push" or "commit and push" in their request.

WHY THIS MATTERS

The cache_keys removal (Feb 21 2026) broke CI because tests were not run before committing. A 5-second local test run would have caught it immediately. Never let a CI failure be the first signal that something is broken.

Production-ready MCP Server for WeMo smart home device control via AI assistants.

Project Identity

Read the full file on GitHub Β· 822 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. 2mo ago First seen Β· 822 lines Β· 7,061 tokens per session scan C 67ef0c88b19f

Subscribe to this mod's changes

wemo-mcp-server copilot-instructions.md is an instructions file published in the GitHub repository apiarya/wemo-mcp-server (1 stars, last pushed 4mo ago), licensed MIT. It adds 7,061 tokens to every session, about $0.0282 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

wemo-mcp-server copilot-instructions.md compared with instructions from other repositories

wemo-mcp-server copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wemo-mcp-server copilot-instructions.mdapiarya/wemo-mcp-serverInstructions file14mo agoMITC7,061GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode