mcp-airflow-api: Instructions file for GitHub Copilot

.github/copilot-instructions.md

mcp-airflow-api copilot-instructions.md is an instructions file for GitHub Copilot from fastmcp-me/mcp-airflow-api. It costs 769 tokens per session, scanned A, a copy of MCP-Airflow-API copilot-instructions.md, MIT.

A set of Copilot instructions for an MCP server that exposes Apache Airflow's REST API as tools for an AI assistant. Apache Airflow is software for scheduling and monitoring data workflows.

In plain words
What is it for?
Use it when developing or maintaining the mcp-airflow-api project and its Airflow operations.
Why use it?
It explains the project's architecture and important implementation patterns, including reusable connections, retries, pagination, and local or HTTP operation.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is fastmcp-me/mcp-airflow-api's own configuration. It tells GitHub Copilot how to work on mcp-airflow-api 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 mcp-airflow-api configures →

Reuse

Borrowing it

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

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-airflow-api copilot-instructions.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fastmcp-me/mcp-airflow-api/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/fastmcp-me/mcp-airflow-api/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 769 This file is loaded in full into every session.
When invoked 769 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00769 $0.00769
Opus 5.5 $0.00308 $0.00308
Sonnet 5.5 $0.00154 $0.00154
Haiku 4.5 $0.00077 $0.00077

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

Security

Grade A, and why

mcp-airflow-api 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 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.

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.

Origin

This is a copy

100% identical to MCP-Airflow-API copilot-instructions.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/copilot-instructions.md · 69 lines

How it starts

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

Copilot Instructions for MCP-Airflow-API

Project Architecture

Core Pattern: MCP (Model Context Protocol) server exposing Apache Airflow REST API as LLM-friendly tools.

Key Components:

  • src/mcp_airflow_api/airflow_api.py: 40+ @mcp.tool() decorators defining Airflow operations
  • src/mcp_airflow_api/functions.py: Global session management with connection pooling
  • src/mcp_airflow_api/prompt_template.md: Canonical English instructions for LLMs
  • pyproject.toml: Entry point mcp-airflow-api = "mcp_airflow_mcp_main:main"

Transport Logic: Environment variable FASTMCP_TYPE controls stdio vs http mode:

transport_type = args.transport_type or os.getenv("FASTMCP_TYPE", "stdio")
if transport_type == "streamable-http":
    mcp.run(transport="streamable-http", host=host, port=port)  # Docker mode
else:
    mcp.run(transport='stdio')  # Local mode

Critical Patterns

Connection Pooling: Use global _airflow_session for performance:

# functions.py - persistent session with retry strategy
_airflow_session = requests.Session()  # Reused across all API calls

Pagination Strategy: All tools return {data, total_entries, limit, offset, has_more_pages, next_offset}:

# Standard pattern in airflow_api.py
def list_dags(limit=20, offset=0): 
    # Returns pagination metadata for large environments (1000+ DAGs)

Configuration Files: Multiple configs for different deployment modes:

  • mcp-config.json.stdio: Local python -m mcp_airflow_mcp_main
  • mcp-config.json.http: Docker "url": "http://host.docker.internal:18002/mcp"

Docker Multi-Service Pattern

docker-compose.yml orchestrates 3 services:

  • mcp-server: FastMCP server (port 18002→8080 internal)
  • mcpo-proxy: MCP-to-REST converter (Swagger at :8002/docs)
  • open-webui: Web interface (port 3002)

Build Commands: Use versioned Docker images:

./build-mcp-server-docker-image.sh  # Builds call518/mcp-server-airflow-api:1.0.0

Read the full file on GitHub · 69 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 · 69 lines · 769 tokens per session scan A 21632f08c01e

Subscribe to this mod's changes

mcp-airflow-api copilot-instructions.md is an instructions file published in the GitHub repository fastmcp-me/mcp-airflow-api (0 stars, last pushed 1y ago), licensed MIT. It adds 769 tokens to every session, about $0.0031 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to MCP-Airflow-API copilot-instructions.md, differing in 0 lines, and is treated as a copy.

Related

mcp-airflow-api copilot-instructions.md compared with instructions from other repositories

mcp-airflow-api copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-airflow-api copilot-instructions.mdfastmcp-me/mcp-airflow-apiInstructions file01y agoMITA769GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode