tokenlite-mysql-mcp: Instructions file for Codex

AGENTS.md

tokenlite-mysql-mcp AGENTS.md is an instructions file for Codex, OpenCode from andezdev/tokenlite-mysql-mcp. It costs 1,164 tokens per session, scanned A, original, MIT.

Repository instructions for the TokenLite MySQL MCP server, which lets AI agents inspect a database schema and run approved database queries. They define the server's tools and safety rules.

In plain words
What is it for?
Use them when working with the andezdev/tokenlite-mysql-mcp project, especially for schema discovery, safe queries, schema refreshes, builds, or tests.
Why use it?
They steer agents toward the server's schema search and protected query tools instead of unsafe or incomplete manual database inspection.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is andezdev/tokenlite-mysql-mcp's own configuration. It tells Codex and OpenCode how to work on tokenlite-mysql-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 tokenlite-mysql-mcp configures โ†’

Reuse

Borrowing it

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

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

Your own site ยท 80ร—15
<a href="https://agentmods.dev/instructions/andezdev/tokenlite-mysql-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/andezdev/tokenlite-mysql-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,164 This file is loaded in full into every session.
When invoked 1,164 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.01164 $0.01164
Opus 5.5 $0.00466 $0.00466
Sonnet 5.5 $0.00233 $0.00233
Haiku 4.5 $0.00116 $0.00116

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

Security

Grade A, and why

tokenlite-mysql-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 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.

AGENTS.md ยท 67 lines

How it starts

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

๐Ÿค– AI Agents Guide: TokenLite MySQL MCP

Notice to LLMs, Agents, and Coding Assistants: If you are reading this file, you have been connected to the TokenLite MySQL MCP Server. This server is heavily protected and optimized to prevent hallucinations, reduce context window bloat, and block dangerous operations.

Tool names are prefixed with the database name (e.g., mydb_search_schema, mydb_execute_safe_query). If a custom TOOL_PREFIX is set, that prefix is used instead.

You MUST follow the rules below strictly.

๐Ÿšจ Golden Rules

  1. NEVER use SHOW TABLES or DESCRIBE manually.

    • Rule: You MUST use the search_schema tool instead.
    • Why: search_schema provides a compressed, heuristic-based Graph (Auto-Join Context) that gives you the DDL of the requested table and its implicitly related tables. It also injects business semantics from metadata.json.
  2. NEVER manually query information_schema.

    • Rule: If a query fails because of a missing column or table (e.g., ER_BAD_FIELD_ERROR), you MUST use the refresh_schema tool to rebuild the internal graph, and then use search_schema again. Do not attempt to query information_schema directly.
  3. NEVER write business metrics SQL manually (when templates are configured).

    • Rule: If templates.json is loaded, search_schema will include a reminder to use the query_templates prompt before writing analytical SQL (e.g., LTV, Revenue, Active Users).
    • Why: The company has predefined, vetted SQL templates. Hallucinating metrics leads to incorrect dashboards.
  4. DO NOT add LIMIT to your exploratory queries.

    • Rule: When using execute_safe_query, the server will automatically inject a LIMIT at the AST level (default: MCP_QUERY_ROW_LIMIT=500). Do not manually append LIMIT unless you need a very specific offset pagination.
    • Truncation: If results reach the applied LIMIT, the CSV output includes a -- rows: N (truncated at LIMIT X) footer. Do not assume you have the full dataset.

Read the full file on GitHub ยท 67 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 ยท 67 lines ยท 1,164 tokens per session scan A aaefcf2f8050

Subscribe to this mod's changes

tokenlite-mysql-mcp AGENTS.md is an instructions file published in the GitHub repository andezdev/tokenlite-mysql-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 1,164 tokens to every session, about $0.0047 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode ยท 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js ยท 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode ยท 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain ยท 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode ยท 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno ยท 3,077 tokens