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

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/andezdev/tokenlite-mysql-mcp/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.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.svg" alt="Measured on agentmods" 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. 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.01164 $0.01164
Opus 5 $0.00582 $0.00582
Sonnet 5 $0.00233 $0.00233
Haiku 4.5 $0.00116 $0.00116

Measured 3d ago against content hash aaefcf2f8050, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 22d ago), licensed MIT. It adds 1,164 tokens to every session, about $0.0058 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-31.