konflux-devlake-mcp: Instructions file for Codex

AGENTS.md

konflux-devlake-mcp AGENTS.md is an instructions file for Codex, OpenCode from konflux-ci/konflux-devlake-mcp. It costs 917 tokens per session, scanned A, original, Apache-2.0.

An AGENTS.md instruction file for konflux-devlake-mcp, an MCP server that provides defined tools or data to AI clients. It gives a quick reference to the server’s data flow, important paths, tool additions, and tests.

In plain words
What is it for?
Finding relevant files, understanding data movement, adding tools, and running the test suite.
Why use it?
It reduces guesswork when an AI coding assistant changes the server or investigates a failing test.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code.

This is konflux-ci/konflux-devlake-mcp's own configuration. It tells Codex and OpenCode how to work on konflux-devlake-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 konflux-devlake-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to konflux-ci/konflux-devlake-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/konflux-ci/konflux-devlake-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/konflux-ci/konflux-devlake-mcp

Made for: Codex, OpenCode.

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 konflux-devlake-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/konflux-ci/konflux-devlake-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/konflux-ci/konflux-devlake-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/konflux-ci/konflux-devlake-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/konflux-ci/konflux-devlake-mcp/agents-md/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 konflux-devlake-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/konflux-ci/konflux-devlake-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/konflux-ci/konflux-devlake-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 917 This file is loaded in full into every session.
When invoked 917 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 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.00917 $0.00917
Opus 5.5 $0.00367 $0.00367
Sonnet 5.5 $0.00183 $0.00183
Haiku 4.5 $0.00092 $0.00092

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

Security

Grade A, and why

konflux-devlake-mcp AGENTS.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 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.

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.

AGENTS.md · 60 lines

How it starts

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

Konflux DevLake MCP Server - Agent Quick Reference

Python MCP server providing engineering metrics tools for Konflux DevLake databases.

Data Flow

Request -> server/handlers/tool_handler.py (security) -> tools/tools_manager.py (routing) -> tools/devlake/<tool>.py (SQL + logic) -> utils/db.py (async MySQL pool, type conversion) -> toon_encode() response

Key Paths

tools/devlake/ metric tools | tools/base/base_tool.py BaseTool ABC | tools/tools_manager.py registry server/ MCP core | utils/db.py async MySQL pool | utils/security.py SQL injection detection skills/ Claude Code skills (must stay in sync with tools) | tests/conftest.py shared fixtures

Adding a Tool

  1. Create tools/devlake/my_tool.py extending BaseTool
  2. get_tools() -> List[mcp.types.Tool] with JSON inputSchema
  3. async call_tool() -> toon_encode(result, {"delimiter": ",", "indent": 2, "lengthMarker": ""})
  4. Register in tools/tools_manager.py _tool_modules list
  5. Add unit test: tests/unit/test_my_tool.py with @pytest.mark.unit
  6. Update skills/devlake/ if tool interface or SQL changed (see Skill Update Rule)

Test Suite

Every tool in tools/tools_manager.py _tool_modules (12 modules) must have a dedicated tests/unit/test_<name>.py. Each test file validates: get_tools() returns correct tool names and schemas, call_tool() with mocked DB rows returns toon_decode()-parseable results with success: True, error paths return success: False, and filter/limit arguments are respected. Integration tests in tests/integration/ use real MySQL and clean_database fixture.

When investigating a bug or adding a feature, verify tests/unit/test_<name>.py exists and covers call_tool() execution with expected computed values (scores, averages, classifications) -- not just response structure. If tests are missing or incomplete, add them. Commands: make test-unit (mocked DB) | make test-integration (docker compose MySQL) | make test-e2e (requires GEMINI_API_KEY, seeds from testdata/mysql/)

Read the full file on GitHub · 60 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 Changed · +10 tokens per session 781c348d2220
  2. 2mo ago First seen · 60 lines · 907 tokens per session scan A ec62b4cef943

Subscribe to this mod's changes

konflux-devlake-mcp AGENTS.md is an instructions file published in the GitHub repository konflux-ci/konflux-devlake-mcp (10 stars, last pushed today), licensed Apache-2.0. It adds 917 tokens to every session, about $0.0037 per session on Opus 5.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-31.

Related

konflux-devlake-mcp AGENTS.md compared with instructions from other repositories

konflux-devlake-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
konflux-devlake-mcp AGENTS.mdkonflux-ci/konflux-devlake-mcpInstructions file10todayApache-2.0A917Codex, OpenCode
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