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.
npx agentmods add instructions/cqtrinv/trinvmcp/gemini-mdgit clone --depth 1 https://github.com/cqtrinv/trinvmcpWrote 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.
[](https://agentmods.dev/instructions/cqtrinv/trinvmcp/gemini-md)<a href="https://agentmods.dev/instructions/cqtrinv/trinvmcp/gemini-md"><img src="https://agentmods.dev/badge/instructions/cqtrinv/trinvmcp/gemini-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00594 | $0.00594 |
| Opus 5 | $0.00297 | $0.00297 |
| Sonnet 5 | $0.00119 | $0.00119 |
| Haiku 4.5 | $0.00059 | $0.00059 |
Grade A, and why
trinvmcp GEMINI.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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GEMINI.md
Project Overview
This project is a TypeScript-based MCP (Model Context Protocol) server named mcp-trinv-server. It is designed to augment AI assistants like Gemini and Claude with tools to interact with the TRINV service. The server provides functionalities to search for French communes by name fragments and to find cadastral parcels within a commune based on their surface area.
The core logic is implemented in src/index.ts. It uses the @modelcontextprotocol/sdk for creating the MCP server and zod for schema validation. The server exposes two main tools: trinv-chercher-commune and trinv-chercher-parcelle. These tools make REST API calls to the TRINV API (https://trinv.fr/api/...) to fetch the required data.
The project is configured to be built from the src directory into the dist directory, as specified in tsconfig.json. The package.json file defines the project's dependencies, scripts, and metadata.
Building and Running
Building the project
To build the project, run the following command:
npm run build
This command executes tsc to compile the TypeScript code from src to JavaScript in dist and then makes the main script executable.
Running the server
The server is intended to be run as a command-line tool. Once built, it can be started with:
./dist/index.js
Alternatively, during development, you can run the compiled output directly:
node dist/index.js
The server uses a stdio transport layer to communicate with the AI assistant.
Development Conventions
- Language: TypeScript
- Code Style: The code follows standard TypeScript conventions. It uses
async/awaitfor asynchronous operations and defines types for the data structures exchanged with the TRINV API. - Dependencies: Project dependencies are managed with
npm. Key dependencies include@modelcontextprotocol/sdkandzod. Development dependencies includetypescript,@types/node, and@google/gemini-cli. - Modularity: The server is organized into a single main file (
src/index.ts) that defines the server and its tools. - API Interaction: The server interacts with the TRINV API using
fetch. The API endpoints arehttps://trinv.fr/api/countybyfragment.jsonandhttps://trinv.fr/api/areas.json. - Error Handling: Basic error handling is in place, with errors being thrown for failed API requests or ambiguous inputs.
- Caching: The server implements a simple in-memory cache using
Mapobjects to store results from thetrinv-chercher-communetool, which are then used by thetrinv-chercher-parcelletool.
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.
- 4d ago First seen · 48 lines · 594 tokens per session scan A 8b493c2618c3
trinvmcp GEMINI.md is an instructions file published in the GitHub repository cqtrinv/trinvmcp (2 stars, last pushed 11mo ago), licensed MIT. It adds 594 tokens to every session, about $0.0030 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.
Other instructions, from other repositories
react-seed AGENTS.md
Instructions for guokaigdg/react-seed, covering agents.md, 目录, 1. 项目概览, 2. 技术栈 and 3. 目录结构.
agentic-playwright enums.instructions.md
Instructions for idavidov13/agentic-playwright, covering enums, critical, file locations, instructions and phase 1: decide if the value belongs in an enum.
ui-extensions-sdk CLAUDE.md
Instructions for contentful/ui-extensions-sdk, covering claude project instructions — ui-extensions-sdk, identity & scope, working style, sharp edges and verification before claiming done.
starknet-agentic CLAUDE.md
Instructions for keep-starknet-strange/starknet-agentic, covering starknet agentic -- development context, cairo, typescript, skills and git.
solo copilot-instructions.md
Copilot instructions for hiero-ledger/solo, covering github copilot instructions for hiero-ledger/solo and highest-frequency rules.
openmcp-client CLAUDE.md
Instructions for LSTM-Kirigaya/openmcp-client, covering claude.md, development commands, setup and installation, development and service development.