kusto-mcp: Instructions file for Claude Code

CLAUDE.md

kusto-mcp CLAUDE.md is an instructions file for Claude Code from johnib/kusto-mcp. It costs 1,118 tokens per session, scanned A, original, MIT.

A repository instruction file for kusto-mcp, a connector for Kusto queries, which are used to search and analyse telemetry data. It documents rules for telemetry, testing, and local development.

In plain words
What is it for?
Use it when changing kusto-mcp telemetry, tests, CI, repository files, or code that calls the connector.
Why use it?
It records project-specific constraints so coding agents do not accidentally collect disallowed data, expose query details, or run local tests against the wrong telemetry destination.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is johnib/kusto-mcp's own configuration. It tells Claude Code how to work on kusto-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 kusto-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to johnib/kusto-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/johnib/kusto-mcp/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/johnib/kusto-mcp

Made for: Claude Code.

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 kusto-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/johnib/kusto-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/johnib/kusto-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/johnib/kusto-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/johnib/kusto-mcp/claude-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 kusto-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/johnib/kusto-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/johnib/kusto-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,118 This file is loaded in full into every session.
When invoked 1,118 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.01118 $0.01118
Opus 5.5 $0.00447 $0.00447
Sonnet 5.5 $0.00224 $0.00224
Haiku 4.5 $0.00112 $0.00112

Measured 5d ago against content hash 8cf57fd9dcd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kusto-mcp CLAUDE.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 5d 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.

CLAUDE.md · 70 lines

How it starts

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

kusto-mcp

Telemetry (product code)

  • Telemetry is always on. Never add an opt-out, enable flag, or env kill-switch — not even "for local dev". Only salted hashes and bounded enums may ship — except execute-query's optional purpose, sent as written when off-list; README's "What is NEVER collected" is the contract.
  • Never export error messages or stacks — they echo query text and identifiers. Error class name only, plus an errno code where present (see recordSpanError).
  • Crash-path telemetry must never throw. A second failure inside a crash handler is what turned #180/#196 into a 100% CPU spin.
  • Never delete autoDetectResources: false (src/common/telemetry.ts:117). NodeSDK's default detectors add host.id, host.name and process.owner as resource attributes — under every span, and invisible to a span-attribute review.
  • Every local run ships real spans to the production Honeycomb dataset. src/index.ts starts telemetry unconditionally and npm run test:e2e spawns the built server and mocks nothing. machine.id persists to disk, so the machine joins the fleet permanently. Export OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:9999 before running the server or e2e locally.
  • azure-kusto-data 7.2 rethrows DNS/refused failures from its cloud-metadata lookup as a plain Error with no code, so kustomcp.connection.failure_category is unknown for them. The user-facing hint re-probes the host (probeReachability); telemetry does not.
  • Before analysing the Honeycomb kusto-mcp environment, read docs/telemetry-semantics.md if you have it — it holds the counting conventions and query gotchas. It is maintainer-local and deliberately untracked, so it is absent from a fresh clone and from CI; without it, derive conventions from the code rather than assuming span volume means anything.

Tests and CI

  • CI runs the unit project only; tests/e2e never runs there (it needs az login and a live cluster). Any regression guard that must hold goes in tests/unit.
  • CI order is lint → typecheck → test → build, so dist/ does not exist while unit tests run.
  • npm run typecheck (tsc -p tsconfig.test.json) typechecks src/ and all of tests/, e2e included, and CI runs it before the unit tests. It is the only type gate on tests: ts-jest does not fail a run on type errors. Nothing lints tests/ — every lint script is eslint src.
  • npm run format is scoped to src/**/*.ts. Never prettier --write README.md or docs/*.md — it reflows unrelated lines into the diff.
  • CI is ubuntu-latest only, but Windows is ~75% of the fleet. A platform-specific fix gets no Closes # until a windows-latest A/B (baseline vs patched) has actually run.
  • Check CI with gh pr view --json statusCheckRollup, not by parsing gh pr checks — it renders cancelled jobs as fail.

Read the full file on GitHub · 70 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. 5d ago Changed · +4 lines · +78 tokens per session 8cf57fd9dcd8
  2. 25d ago Changed · +4 lines · +71 tokens per session 0583e4651af7
  3. 1mo ago Changed · +1 lines · +20 tokens per session 1e0e8e45d081
  4. 1mo ago Changed · +1 lines · +40 tokens per session cb47b74799d5
  5. 2mo ago First seen · 60 lines · 909 tokens per session scan A 58112aa20a0c

Subscribe to this mod's changes

kusto-mcp CLAUDE.md is an instructions file published in the GitHub repository johnib/kusto-mcp (8 stars, last pushed 6d ago), licensed MIT. It adds 1,118 tokens to every session, about $0.0045 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

kusto-mcp CLAUDE.md compared with instructions from other repositories

kusto-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kusto-mcp CLAUDE.mdjohnib/kusto-mcpInstructions file86d agoMITA1,118Claude Code
data-scientist copilot-instructions.mdrealnghon/data-scientistInstructions file24mo agoMITA373GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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