mcp-server-excel mcp-server-guide.instructions.md

mcp-server-excel mcp-server-guide.instructions.md is an instructions file for GitHub Copilot from sbroenne/mcp-server-excel. It costs 538 tokens per session, scanned A, original, MIT.

A set of instructions for developing MCP servers that expose tools to other programs or coding agents. It focuses on an Excel server and its existing service, routing, cancellation, error, and JSON patterns.

In plain words
What is it for?
Use it when adding or changing Excel MCP tools, defining their schemas and descriptions, handling cancellation, serializing errors, or checking behavior across connected interfaces.
Why use it?
It helps keep new tools consistent with the server’s generated routes and shared error handling. This avoids duplicated logic and incorrectly formatted responses.

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-server-excel/mcp-server-guide
Clone the repo
git clone --depth 1 https://github.com/sbroenne/mcp-server-excel

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-server-excel mcp-server-guide.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sbroenne/mcp-server-excel/mcp-server-guide.svg)](https://agentmods.dev/instructions/sbroenne/mcp-server-excel/mcp-server-guide)
Your own site
<a href="https://agentmods.dev/instructions/sbroenne/mcp-server-excel/mcp-server-guide"><img src="https://agentmods.dev/badge/instructions/sbroenne/mcp-server-excel/mcp-server-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 538 This file is loaded in full into every session.
When invoked 538 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.00538 $0.00538
Opus 5 $0.00269 $0.00269
Sonnet 5 $0.00108 $0.00108
Haiku 4.5 $0.00054 $0.00054

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

Security

Grade A, and why

mcp-server-excel mcp-server-guide.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 5d 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/instructions/mcp-server-guide.instructions.md · 73 lines

How it starts

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

MCP Server development

MCP tool methods are static and synchronous. They route to the in-process ExcelMcpService; do not add a named-pipe hop or duplicate Core behavior.

Tool pattern

Use the existing generated registry and shared boundaries:

public static string ExcelFeature(
    FeatureAction action,
    string? session_id = null,
    CancellationToken cancellationToken = default)
{
    using var cancellationScope =
        ExcelToolsBase.PushCancellationToken(cancellationToken);

    return ExcelToolsBase.ExecuteToolAction(
        "feature",
        ServiceRegistry.Feature.ToActionString(action),
        () => ServiceRegistry.Feature.RouteAction(
            action,
            session_id,
            ExcelToolsBase.ForwardToServiceFunc));
}
  • ServiceRegistry and generated routes are preferred over hand-written action dispatch.
  • Keep hand-written branches only for genuine special cases such as atomic no-session operations or extra MCP metadata.
  • Pass the SDK cancellation token through PushCancellationToken.
  • Use ExcelToolsBase.ExecuteToolAction for consistent telemetry and error serialization.

Errors and JSON

  • Tool execution failures return structured JSON with success: false and isError: true.
  • Invalid arguments and unknown actions may throw the established argument or MCP protocol exception.
  • Do not inspect a Core failure and throw a second generic exception; preserve the Service response's category, context, HRESULT, and retry information.
  • Use shared JsonOptions; never construct JSON strings manually.
  • Keep stdout exclusively for MCP JSON-RPC. Logs and diagnostics go to stderr.

Schema and descriptions

  • C# interface parameter names are camelCase; generated MCP names are snake_case.
  • Keep action enums and ToActionString mappings exhaustive.
  • Tool and parameter descriptions should state server-specific behavior, constraints, and disambiguation. Do not duplicate types or enum values already visible in the schema.
  • Avoid emojis in XML documentation and generated LLM guidance.
  • Keep destructive/read-only metadata accurate.

Read the full file on GitHub · 73 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. 5d ago First seen · 73 lines · 538 tokens per session scan A fb4b42c0df3c

Subscribe to this mod's changes

mcp-server-excel mcp-server-guide.instructions.md is an instructions file published in the GitHub repository sbroenne/mcp-server-excel (656 stars, last pushed today), licensed MIT. It adds 538 tokens to every session, about $0.0027 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.

Related

Other instructions, from other repositories

mcp-server-powerpoint copilot-instructions.md

Copilot instructions for sbroenne/mcp-server-powerpoint, covering project instructions — powerpointmcp, critical files (read these first), sister projects, what is powerpointmcp? and session model (mcp server).

sbroenne/mcp-server-powerpoint · 3,630 tokens

mcp-server-powerpoint architecture-patterns.instructions.md

Instructions for sbroenne/mcp-server-powerpoint, covering architecture patterns, .net class design (mandatory), layered architecture (critical), command pattern and structure (per domain).

sbroenne/mcp-server-powerpoint · 1,597 tokens

mcp-server-powerpoint critical-rules.instructions.md

Instructions for sbroenne/mcp-server-powerpoint, covering critical rules - must follow, rule 1: success/errormessage invariant, rule 1b: no exception suppression in core, rule 30: real-com integration tests only, strict tdd and rule: 1-based indexing everywhere.

sbroenne/mcp-server-powerpoint · 1,486 tokens

mcp-server-powerpoint mcp-server-guide.instructions.md

Instructions for sbroenne/mcp-server-powerpoint, covering mcp server development guide, llm-facing content rules, two kinds of tools: hand-written vs. generated, implementation pattern: single hand-written dispatch tool and error handling (mandatory).

sbroenne/mcp-server-powerpoint · 1,737 tokens

mcp-server-powerpoint testing-strategy.instructions.md

Instructions for sbroenne/mcp-server-powerpoint, covering testing strategy, strict tdd (red → green), test project layout, serialization is mandatory and trait tagging (required for surgical filtering).

sbroenne/mcp-server-powerpoint · 1,409 tokens

mcp-server-amazon CLAUDE.md

Instructions for rigwild/mcp-server-amazon, covering claude.md, development commands, install dependencies (use -d flag for puppeteer), build typescript to javascript and clean mock html files.

rigwild/mcp-server-amazon · 628 tokens