solr-mcp: Instructions file for Codex

AGENTS.md

solr-mcp AGENTS.md is an instructions file for Codex, OpenCode from apache/solr-mcp. It costs 7,869 tokens per session, scanned A, original, Apache-2.0.

Instructions for Solr MCP Server, a Java service that lets AI assistants search, index, and manage Apache Solr collections through the Model Context Protocol. It documents the project setup, build commands, tests, and formatting requirements.

In plain words
What is it for?
Use it to develop, build, test, format, or generate a software bill of materials for the Solr MCP server.
Why use it?
It helps coding agents follow the repository's Java, Spring Boot, Gradle, testing, and formatting conventions when changing the server.

Instructions file for CodexOpenCode ✓ vendor

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

This is apache/solr-mcp's own configuration. It tells Codex and OpenCode how to work on solr-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 solr-mcp configures →

About the project

Apache Solr MCP Server connects AI clients to Apache Solr, a search platform that indexes and retrieves documents stored in collections. It lets users search, add data to, and manage Solr collections through natural-language requests instead of manually writing Solr queries or using the administration API.

apache/solr-mcp · 21 stars · on GitHub · solr.apache.org

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/apache/solr-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/solr-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,869 This file is loaded in full into every session.
When invoked 7,869 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.07869 $0.07869
Opus 5.5 $0.03148 $0.03148
Sonnet 5.5 $0.01574 $0.01574
Haiku 4.5 $0.00787 $0.00787

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

Security

Grade A, and why

solr-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 10d 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 · 514 lines

How it starts

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

AGENTS.md

This file provides guidance to AI coding assistants when working with code in this repository.

Project Overview

Solr MCP Server is a Spring AI Model Context Protocol (MCP) server that enables AI assistants to interact with Apache Solr. It provides tools for searching, indexing, and managing Solr collections through the MCP protocol.

  • Status: Apache incubating project (v1.0.0-SNAPSHOT)
  • Java: 25+ (centralized in build.gradle.kts)
  • Framework: Spring Boot 4.1.1, Spring AI 2.0.1
  • License: Apache 2.0

Common Commands

# Build and test
./gradlew build                    # Full build with tests
./gradlew assemble                 # Build without tests (faster)

# Testing
./gradlew test                               # Run all tests
./gradlew test --tests SearchServiceTest     # Run specific test class
./gradlew test --tests "*IntegrationTest"    # Run integration tests
./gradlew test jacocoTestReport              # Tests with coverage report

# SBOM (Software Bill of Materials)
./gradlew cyclonedxBom                       # Generate build/reports/cyclonedx/application.cdx.json

# Gradle wrapper upgrade (run twice so the new version regenerates the wrapper jar;
# wrapper settings such as retries live on tasks.wrapper in build.gradle.kts)
./gradlew wrapper --gradle-version latest

# Code formatting (REQUIRED before commit)
./gradlew spotlessApply            # Apply formatting
./gradlew spotlessCheck            # Check formatting

# Docker images
./gradlew jibDockerBuild                                  # JVM (Jib):    solr-mcp:<v>                  (both stdio + http)
./gradlew bootBuildImage -Pnative                         # Native stdio: solr-mcp:<v>-native-stdio
./gradlew bootBuildImage -Pnative -Pprofile=http          # Native http:  solr-mcp:<v>-native-http
./gradlew dockerIntegrationTest                           # Test JVM Jib (stdio + http + MCP stdio)
./gradlew dockerIntegrationTest -Pnative                  # Test native stdio
./gradlew dockerIntegrationTest -Pnative -Pprofile=http   # Test native http

# Native image (requires GraalVM JDK 25; -Pnative applies the graalvm-native plugin)
./gradlew nativeCompile -Pnative             # Compile native binary (host OS only)
./gradlew nativeTest -Pnative                # Run tests as native image

# Run locally
# STDIO disables Docker Compose auto-start (spring.docker.compose.enabled=false in
# application-stdio.properties) — run `docker compose up -d` first, same as for the
# packaged jar/Docker/native image or to start the boot-ignored `lgtm` service.
docker compose up -d && ./gradlew bootRun    # STDIO mode (default)
# HTTP mode enables it (application-http.properties), so bootRun auto-starts/stops
# compose.yaml's solr/zoo via the developmentOnly spring-boot-docker-compose starter.
PROFILES=http ./gradlew bootRun    # HTTP mode

Read the full file on GitHub · 514 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. 10d ago Changed · +7 lines · +171 tokens per session 0262bb0ece8b
  2. 24d ago Changed · -1 lines · -33 tokens per session 9f6b7b3d250d
  3. 29d ago Changed · +72 lines · +1,320 tokens per session 00b49843d8df
  4. 1mo ago Changed · +4 lines · +75 tokens per session 5d87fba353d4
  5. 1mo ago Changed · +11 lines · +225 tokens per session ab907c523c0f
  6. 1mo ago Changed · +55 lines · +761 tokens per session 8825b9f9bde3
  7. 2mo ago First seen · 366 lines · 5,350 tokens per session scan A 598f98ffacc7

Subscribe to this mod's changes

solr-mcp AGENTS.md is an instructions file published in the GitHub repository apache/solr-mcp (21 stars, last pushed 11d ago), licensed Apache-2.0. It adds 7,869 tokens to every session, about $0.0315 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-30.

Related

solr-mcp AGENTS.md compared with instructions from other repositories

solr-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
solr-mcp AGENTS.mdapache/solr-mcpInstructions file2111d agoApache-2.0A7,869Codex, OpenCode
vibetags com-example-service-OrderService.instructions.mdPIsberg/vibetagsInstructions file25todayMITA553GitHub Copilot
vibetags com-example-security-SecurityConfig.instructions.mdPIsberg/vibetagsInstructions file25todayMITA281GitHub Copilot
vibetags com-example-service-TransactionalPaymentService.instructions.mdPIsberg/vibetagsInstructions file25todayMITA104GitHub Copilot
vibetags com-example-config-AsyncTestConfig.instructions.mdPIsberg/vibetagsInstructions file25todayMITA82GitHub Copilot
vibetags com-example-concurrent-SessionCache.instructions.mdPIsberg/vibetagsInstructions file25todayMITA71GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot