MCP-Airflow-API copilot-instructions.md

MCP-Airflow-API copilot-instructions.md is an instructions file for GitHub Copilot from call518/MCP-Airflow-API. It costs 769 tokens per session, scanned A, original, MIT.

Project-specific guidance for an MCP server that exposes Apache Airflow's REST API as tools an AI model can use. It describes the code structure, transport modes, reusable connections, and paginated results.

In plain words
What is it for?
Use it when working on Airflow API tools, session handling, pagination, transport settings, or the project’s entry point and prompt instructions.
Why use it?
It gives coding agents the project’s expected patterns, reducing guesswork when changing or extending the Airflow integration.

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/call518/mcp-airflow-api/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/call518/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/call518/mcp-airflow-api/copilot-instructions.svg)](https://agentmods.dev/instructions/call518/mcp-airflow-api/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/call518/mcp-airflow-api/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/call518/mcp-airflow-api/copilot-instructions.svg" alt="Measured on agentmods" 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. 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.00769 $0.00769
Opus 5 $0.00385 $0.00385
Sonnet 5 $0.00154 $0.00154
Haiku 4.5 $0.00077 $0.00077

Measured 4d ago against content hash 21632f08c01e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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

Copies of this mod

1 near-identical copy found in the catalogue:

.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. 4d 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 call518/MCP-Airflow-API (51 stars, last pushed 1mo ago), licensed MIT. It adds 769 tokens to every session, about $0.0038 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.