git-project-xray-mcp: Instructions file for GitHub Copilot

.github/copilot-instructions.md

git-project-xray-mcp copilot-instructions.md is an instructions file for GitHub Copilot from Jamie-BitFlight/git-project-xray-mcp. It costs 2,759 tokens per session, scanned C, original, from a forked repository, MIT.

Repository instructions for GitHub Copilot when working with the XRAY MCP server, a tool that helps AI assistants inspect code structure and dependencies.

In plain words
What is it for?
Helping Copilot explore the codebase, find functions or classes, identify code that depends on a symbol, install the project, and run its development workflow.
Why use it?
They give Copilot the project background, required tools, setup steps, and development commands needed to work in the repository correctly.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is Jamie-BitFlight/git-project-xray-mcp's own configuration. It tells GitHub Copilot how to work on git-project-xray-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 git-project-xray-mcp configures →

Reuse

Borrowing it

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

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 git-project-xray-mcp copilot-instructions.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jamie-bitflight/git-project-xray-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/jamie-bitflight/git-project-xray-mcp/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,759 This file is loaded in full into every session.
When invoked 2,759 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 fork From a forked repository.
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.02759 $0.02759
Opus 5.5 $0.01104 $0.01104
Sonnet 5.5 $0.00552 $0.00552
Haiku 4.5 $0.00276 $0.00276

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

Security

Grade C, and why

git-project-xray-mcp 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf dist/ build/ *.egg-info/
.github/copilot-instructions.md · 426 lines

How it starts

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

GitHub Copilot Instructions for XRAY MCP

Repository Overview

XRAY is a Model Context Protocol (MCP) server providing progressive code intelligence for AI assistants. It uses ast-grep (tree-sitter powered) for structural code analysis without requiring language servers or databases.

Core Capabilities:

  • explore_repo - Progressive codebase exploration (directories → symbols)
  • find_symbol - Fuzzy symbol search (functions, classes, methods)
  • what_breaks - Reverse dependency analysis (find references)

Repository Stats:

  • ~5MB source code (excluding .git and .venv)
  • Primary language: Python 3.10+
  • 4 Python source files in src/xray/
  • ~900 lines of core code (mcp_server.py + indexer.py)
  • Stateless design with git-commit-based caching

Key Technologies:

  • FastMCP (≥0.1.0) - MCP server framework
  • ast-grep-cli (≥0.39.0) - Structural code search
  • thefuzz (≥0.20.0) - Fuzzy string matching
  • uv - Fast Python package manager (recommended)

Build & Installation Commands

Prerequisites

ALWAYS check these first:

python --version  # Must be ≥3.10
uv --version      # If not installed: pip install uv

Development Installation (RECOMMENDED)

Use this sequence for local development:

# 1. Create virtual environment (ALWAYS do this first)
uv venv

# 2. Install in editable mode (MUST be run from repo root)
uv pip install -e .

# 3. Verify installation
python -m xray.mcp_server --help
# Expected: FastMCP banner with "XRAY Code Intelligence" server name

CRITICAL: The server is an MCP server, NOT a CLI tool. It expects stdio communication from MCP clients. The --help output shows it's working but will wait for MCP protocol messages.

Building the Package

# Clean build (ALWAYS clean before building for distribution)
rm -rf dist/ build/ *.egg-info/

# Build package (takes ~30 seconds)
uv build
# Expected output:
#   Successfully built dist/git_project_xray_mcp-VERSION.tar.gz
#   Successfully built dist/git_project_xray_mcp-VERSION-py3-none-any.whl

# Verify artifacts
ls dist/
# Should show: .tar.gz and .whl files

Read the full file on GitHub · 426 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. 1mo ago First seen · 426 lines · 2,759 tokens per session scan C 7f229dfadf13

Subscribe to this mod's changes

git-project-xray-mcp copilot-instructions.md is an instructions file published in the GitHub repository Jamie-BitFlight/git-project-xray-mcp (0 stars, last pushed 8mo ago), licensed MIT. It adds 2,759 tokens to every session, about $0.0110 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It comes from a forked repository.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens