server: Instructions file for GitHub Copilot

.github/copilot-instructions.md

server copilot-instructions.md is an instructions file for GitHub Copilot from mcpambassador/server. It costs 1,101 tokens per session, scanned A, original, Apache-2.0.

Repository-specific instructions for MCP Ambassador Server, a pnpm monorepo containing a Fastify server, React web interface, SQLite database, and plugin-based authentication, permissions, and audit features. A monorepo stores multiple related packages in one repository.

In plain words
What is it for?
Use them when working on the MCP Ambassador Server, especially its server packages, shared schemas, database code, React interface, or service-provider plugins.
Why use it?
They give an agent the project’s structure, technology choices, and architecture rules before it changes code. This reduces edits that conflict with how the repository is organized.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is mcpambassador/server's own configuration. It tells GitHub Copilot how to work on 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 server configures →

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mcpambassador/server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/mcpambassador/server/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,101 This file is loaded in full into every session.
When invoked 1,101 The same file — it is already loaded in full.
Security scan A 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.01101 $0.01101
Opus 5.5 $0.00440 $0.00440
Sonnet 5.5 $0.00220 $0.00220
Haiku 4.5 $0.00110 $0.00110

Measured 3d ago against content hash 852e15400f89, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

server copilot-instructions.md scanned grade A 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 3d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

execSync(`command ${userParam}`)
.github/copilot-instructions.md · 99 lines

How it starts

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

MCP Ambassador Server — Copilot Instructions

Repo Context

This is the mcpambassador_server repository — a pnpm monorepo containing the Ambassador Server. It is the core of the platform: a Fastify HTTP server with a React SPA, SQLite database, and a plugin-based architecture for auth, authorization, and audit.

Version: 0.10.4
Stack: Node.js 22+, TypeScript strict, pnpm workspaces, Fastify, Zod, Drizzle ORM (SQLite), React 19, Tailwind v4, Vite, Docker

Monorepo Package Structure

packages/
  core/          # Database schema (Drizzle), migrations, shared types
  protocol/      # MCP protocol types and wire format
  contracts/     # Shared Zod schemas for API contracts
  authn-ephemeral/ # SPI implementation: authentication (ephemeral sessions)
  authz-local/   # SPI implementation: authorization (local RBAC)
  audit-file/    # SPI implementation: audit logging (append-only file)
  server/        # Main Fastify server, routes, plugin wiring
  spa/           # React 19 SPA (admin + user UI)

Architecture Patterns

SPI (Service Provider Interface)

AuthN, AuthZ, and Audit are injected as SPI plugins — never hardcoded. The server core depends on interfaces (IAuthnProvider, IAuthzProvider, IAuditProvider), not implementations. When adding auth-related code, always work through these interfaces.

Fastify Conventions

  • All routes must use schema: { body: ZodSchema, params: ZodSchema } — never skip validation
  • Error responses use the canonical format: { error: { code: string, message: string } }
  • Never expose stack traces, internal error messages, or Zod validation internals in responses
  • Use Fastify's reply.code(n).send(...) pattern consistently

Drizzle ORM

  • Schema lives in packages/core/src/schema.ts
  • Migrations live in packages/core/drizzle/
  • Any schema change requires a migration — do NOT use push in production
  • Sensitive columns (credentials, tokens) are encrypted at the application layer before storage

Read the full file on GitHub · 99 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. 3d ago Changed 852e15400f89
  2. 5d ago Changed 2a144da4178b
  3. 6d ago Changed · -3 tokens per session d8b49f9bce28
  4. 2mo ago First seen · 99 lines · 1,104 tokens per session scan A d071f4d5b255

Subscribe to this mod's changes

server copilot-instructions.md is an instructions file published in the GitHub repository mcpambassador/server (3 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,101 tokens to every session, about $0.0044 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

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

server copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
server copilot-instructions.mdmcpambassador/serverInstructions file34d agoApache-2.0A1,101GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot