konflux-devlake-mcp: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from konflux-ci/konflux-devlake-mcp. It costs 2,103 tokens per session, scanned A, original, Apache-2.0.

An MCP server that provides tools for querying and analysing Konflux DevLake data. DevLake is a system that collects software-development and delivery data in one place.

In plain words
What is it for?
Use it for database operations, incident analysis, deployment tracking, and pull-request retest analysis.
Why use it?
It lets the coding agent investigate project activity and delivery information without manually searching the database.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is konflux-ci/konflux-devlake-mcp's own configuration. It tells Cursor 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/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/konflux-ci/konflux-devlake-mcp

Made for: Cursor.

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 cursorrules

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/konflux-ci/konflux-devlake-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/konflux-ci/konflux-devlake-mcp/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,103 This file is loaded in full into every session.
When invoked 2,103 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.02103 $0.02103
Opus 5.5 $0.00841 $0.00841
Sonnet 5.5 $0.00421 $0.00421
Haiku 4.5 $0.00210 $0.00210

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

Security

Grade A, and why

cursorrules 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.

.cursorrules · 248 lines

How it starts

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

Konflux DevLake MCP Server - Cursor Rules

Project Overview

This is a Model Context Protocol (MCP) server that provides tools for querying and analyzing data from the Konflux DevLake database. The server exposes tools for database operations, incident analysis, deployment tracking, and PR retest analysis.

Code Style & Formatting

Python Code Style

  • Formatter: Use black with line length 100
    • Command: black --line-length 100 .
    • Always format code before committing
  • Linter: Use flake8 for code quality
    • Command: flake8 .
    • Fix all linting errors before committing
  • Type Hints: Use type hints for all function parameters and return types
  • Docstrings: Use Google-style docstrings for all classes and functions

YAML Code Style

  • Linter: Use yamllint for YAML file validation
    • Command: yamllint .
    • Configuration file: .yamllint (extends default, max line length 200)
    • Fix all linting errors before committing
    • Applies to: .github/workflows/*.yaml, k8s/*.yaml, and all other YAML files

Code Formatting Rules

  • Maximum line length: 100 characters
  • Use double quotes for strings (black default)
  • Use trailing commas in multi-line collections
  • Use f-strings for string formatting (not .format() or %)
  • Use async/await for all database operations and tool calls
  • NO EMOJIS: Do not use any emojis in code, comments, docstrings, or any project files

Architecture Patterns

Tool Creation Pattern

All tools must:

  1. Inherit from BaseTool in tools/base/base_tool.py
  2. Implement get_tools() method returning a list of Tool objects
  3. Implement call_tool(name, arguments) method for async tool execution
  4. Use log_tool_call() for all tool invocations
  5. Return TOON-encoded strings for token efficiency (not JSON)

Tool Structure

class MyTool(BaseTool):
    def __init__(self, db_connection):
        super().__init__(db_connection)
        self.logger = get_logger(f"{__name__}.MyTool")
    
    def get_tools(self) -> List[Tool]:
        return [Tool(name="...", description="...", inputSchema={...})]
    
    async def call_tool(self, name: str, arguments: Dict[str, Any]) -> str:
        # Use toon_encode for output
        return toon_encode(result, {"delimiter": ",", "indent": 2, "lengthMarker": ""})

Read the full file on GitHub · 248 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 · +3 tokens per session 41e1edaa13e9
  2. 2mo ago First seen · 248 lines · 2,100 tokens per session scan A 2d78654503b0

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository konflux-ci/konflux-devlake-mcp (10 stars, last pushed today), licensed Apache-2.0. It adds 2,103 tokens to every session, about $0.0084 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

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorruleskonflux-ci/konflux-devlake-mcpCursor rule10todayApache-2.0A2,103Cursor
as-contract-cast-smellprisma/ormCursor rule48kyesterdayApache-2.0A943Cursor
no-backward-compatibilityprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor
postgresqlsanjeed5/awesome-cursor-rules-mdcCursor rule3.6k5mo agoCC0-1.0A2,337Cursor
ehs-ims-conventionsSafetyMP/Autonomous-EHS-ManagementCursor rule96d agoApache-2.0A722Cursor
sync-timedb-archive-janitor-contractTACC/HPCPerfStatsCursor rule60todayLGPL-2.1A0Cursor
schemaGktuOktay/ai-skillsCursor rule22mo agoMITA0Cursor