maven-code-search

maven-code-search is a skill for Codex from salitaba/maven-decoder-mcp. It costs 109 tokens per session (1,686 once invoked), scanned A, original, MIT.

A skill for inspecting Java and other JVM dependencies already stored in the local Maven cache. Maven is a build and dependency-management tool; the skill can look up APIs, methods, versions, and usage examples before code is written against them.

In plain words
What is it for?
Use it in Java, Maven, Gradle, Spring, Jakarta, Android, or other JVM projects to find classes, methods, packages, dependency versions, and examples. It cannot inspect artifacts that are not in the local cache.
Why use it?
It replaces guesses about third-party library internals with inspection of the installed artifact, using source code when available or decompiled code when it is not.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it in Java, Maven, Gradle, Spring, Jakarta, Android, or other JVM projects to find classes, methods, packages, dependency versions, and examples. It cannot inspect artifacts that are not in the local cache.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/salitaba/maven-decoder-mcp/maven-code-search
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.

Any agent
npx skills add salitaba/maven-decoder-mcp --skill maven-code-search
Clone the repo
git clone --depth 1 https://github.com/salitaba/maven-decoder-mcp

Made for: Codex.

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 maven-code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/salitaba/maven-decoder-mcp/maven-code-search/github.svg)](https://agentmods.dev/skills/salitaba/maven-decoder-mcp/maven-code-search)
Your own site
<a href="https://agentmods.dev/skills/salitaba/maven-decoder-mcp/maven-code-search"><img src="https://agentmods.dev/badge/skills/salitaba/maven-decoder-mcp/maven-code-search/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 maven-code-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/salitaba/maven-decoder-mcp/maven-code-search"><img src="https://agentmods.dev/badge/skills/salitaba/maven-decoder-mcp/maven-code-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,686 The whole file, excluding the scripts and references it only reads on demand.
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.00109 $0.01686
Opus 5.5 $0.00044 $0.00674
Sonnet 5.5 $0.00022 $0.00337
Haiku 4.5 $0.00011 $0.00169

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

Security

Grade A, and why

maven-code-search 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 1mo 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.

skills/maven-code-search/SKILL.md · 107 lines

How it starts

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

Overview

Use the maven-decoder MCP server before guessing about third-party Java dependencies. It can search the user's installed Maven repository, search Maven Central online, inspect jars, prefer source jars when available, and decompile bytecode when source is missing.

The MCP sees both local and remote artifacts. Artifacts already in the local Maven repository are used directly; anything else is downloaded from Maven Central into a separate cache on demand, so you can inspect a library the user has never installed. Local copies always take precedence.

If a remote lookup fails, check whether offline mode is enabled (MAVEN_OFFLINE) before telling the user an artifact does not exist.

Quick Workflow

  1. Identify the target coordinates when possible: group_id, artifact_id, and version. Read pom.xml, build.gradle, lockfiles, or existing imports if the user did not provide them.
  2. Use MCP search tools to confirm what is available before inspecting code. Search locally first; go online when the artifact is not installed.
  3. Prefer narrow queries: a class name, package pattern, artifact coordinates, or method pattern.
  4. Use pagination for broad searches and ask for the next page only when the current page is not enough.
  5. Report findings with exact coordinates, class names, method names, whether the result came from sources or decompiled bytecode, and whether it came from the local repository or was downloaded.

Tool Selection

Local first

Use list_artifacts to discover installed artifacts or filter by partial group_id, artifact_id, or version.

Use get_version_info when the user asks which versions of an artifact are installed. Set include_remote: true to also show versions published on Maven Central.

Use search_classes when the user knows a class name, simple type name, wildcard, or package but not the artifact that contains it. This scans installed jars only.

Going online

Use search_maven_central when the artifact is not installed, when the user asks what exists on Maven Central, or when search_classes finds nothing. Search by class_name or fully_qualified_class to discover which published artifact contains a type.

Read the full file on GitHub · 107 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +22 lines · +14 tokens per session df0795c00ce7
  2. 1mo ago First seen · 85 lines · 95 tokens per session scan A 6f79d78fab46

Subscribe to this mod's changes

maven-code-search is a skill published in the GitHub repository salitaba/maven-decoder-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 1,686 once invoked, about $0.0004 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

Other skills, from other repositories