trinvmcp GEMINI.md

trinvmcp GEMINI.md is an instructions file for Gemini CLI from cqtrinv/trinvmcp. It costs 594 tokens per session, scanned A, original, MIT.

Project instructions for trinvmcp, a TypeScript server using the Model Context Protocol. It connects AI assistants to TRINV, a service for searching French communes and cadastral parcels by area.

In plain words
What is it for?
Use it as a reference when building the TypeScript project, running its server, or understanding its two TRINV search tools and REST API connection.
Why use it?
It gives contributors the project overview and the commands needed to build and run the server, reducing uncertainty when working on the codebase.

Instructions file for Gemini CLI

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/cqtrinv/trinvmcp/gemini-md
Clone the repo
git clone --depth 1 https://github.com/cqtrinv/trinvmcp

Made for: Gemini CLI.

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 trinvmcp GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cqtrinv/trinvmcp/gemini-md.svg)](https://agentmods.dev/instructions/cqtrinv/trinvmcp/gemini-md)
Your own site
<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>
Per session 594 This file is loaded in full into every session.
When invoked 594 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.00594 $0.00594
Opus 5 $0.00297 $0.00297
Sonnet 5 $0.00119 $0.00119
Haiku 4.5 $0.00059 $0.00059

Measured 4d ago against content hash 8b493c2618c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

GEMINI.md · 48 lines

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/await for 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/sdk and zod. Development dependencies include typescript, @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 are https://trinv.fr/api/countybyfragment.json and https://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 Map objects to store results from the trinv-chercher-commune tool, which are then used by the trinv-chercher-parcelle tool.

Read the full file on GitHub · 48 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. 4d ago First seen · 48 lines · 594 tokens per session scan A 8b493c2618c3

Subscribe to this mod's changes

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.