setup

setup is a skill for Claude Code, Codex from aoreshkov/kotlin-lib-mcp. It costs 49 tokens per session (846 once invoked), scanned A, original, Apache-2.0.

A setup guide for starting or repairing the Kotlin library MCP server, a service that lets coding tools query published Kotlin and Java library sources. It uses Docker, which runs the server in an isolated container.

In plain words
What is it for?
Use it after installing the plugin, when its tools are missing, when the server fails to start, or when Docker is unavailable or misconfigured.
Why use it?
It explains the required Docker setup, persistent cache, available tools, and a small smoke test so you can tell whether the server works before investigating larger failures.

Skill for Claude CodeCodex

Part of the kotlin-lib plugin — 4 skills, 1 MCP server shipped together

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 skills/aoreshkov/kotlin-lib-mcp/setup
Any agent
npx skills add aoreshkov/kotlin-lib-mcp --skill setup
Clone the repo
git clone --depth 1 https://github.com/aoreshkov/kotlin-lib-mcp

Made for: Claude Code, Codex.

Or install kotlin-lib, the plugin that ships this one along with the rest of its 4 skills, 1 MCP server.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/aoreshkov/kotlin-lib-mcp/setup.svg)](https://agentmods.dev/skills/aoreshkov/kotlin-lib-mcp/setup)
Your own site
<a href="https://agentmods.dev/skills/aoreshkov/kotlin-lib-mcp/setup"><img src="https://agentmods.dev/badge/skills/aoreshkov/kotlin-lib-mcp/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 846 The whole file, excluding the scripts and references it only reads on demand.
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.00049 $0.00846
Opus 5 $0.00024 $0.00423
Sonnet 5 $0.00010 $0.00169
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

setup 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.

plugin/skills/setup/SKILL.md · 61 lines

How it starts

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

Set up kotlin-lib

The plugin ships one MCP server, started for you when the plugin is enabled:

{ "command": "docker",
  "args": ["run", "-i", "--rm", "-v", "kotlin-lib-mcp-cache:/home/mcp/.cache",
           "ghcr.io/aoreshkov/kotlin-lib-mcp:0.5"] }

Requirement: Docker must be installed and running. Nothing else — no JDK, no Gradle, no credentials, no account. The named volume kotlin-lib-mcp-cache keeps downloaded sources and the parsed index across runs; without it every session re-downloads and re-analyzes, since the container is --rm.

Verify

  1. Check the tools are present — the toolset should include fetch_library, list_packages, list_declarations, get_api_signature, get_kdoc, get_source, search_source, get_dependencies, list_versions, get_latest_version.
  2. Smoke-test with a small library: fetch_library on org.jetbrains:annotations:26.0.2, then list_packages on the same coordinate. Both succeeding means the pipeline works end to end.
  3. Report the result plainly. Do not proceed to a large library if the smoke test failed.

When it fails

Symptom Cause Fix
Server never starts; /plugin Errors shows the docker command Docker not installed or daemon not running Start Docker Desktop / the daemon, then /reload-plugins
manifest unknown / pull error Registry unreachable, or an air-gapped machine docker pull ghcr.io/aoreshkov/kotlin-lib-mcp:0.5 by hand and read the error
Tools present, every fetch_library fails No network route to Maven Central from the container, or a corporate proxy Test with docker run --rm ghcr.io/aoreshkov/kotlin-lib-mcp:0.5 --help; pass a mirror with --repo <url>
First fetch is very slow Expected — download plus full source analysis It is cached afterwards, keyed by group/artifact/version
Fetch works, later calls say the library is not fetched The cache volume is missing from the args Confirm -v kotlin-lib-mcp-cache:/home/mcp/.cache is in the command

Read the full file on GitHub · 61 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 · 61 lines · 49 tokens per session scan A 82d0bf6c5ce4

Subscribe to this mod's changes

setup is a skill published in the GitHub repository aoreshkov/kotlin-lib-mcp (8 stars, last pushed 7d ago), licensed Apache-2.0. It adds 49 tokens to every session and 846 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

compose-animations

Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animateAsState, rememberTransition, AnimatedContent, and Crossfade.

chrisbanes/skills · 64 tokens

compose-focus-navigation

Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.

chrisbanes/skills · 41 tokens

kotlin-control-flow

Use when writing or reviewing Kotlin branching and control flow: when expressions, guard conditions, sealed type exhaustiveness, smart casts, nullable branching, early returns, or replacing complex if/else chains.

chrisbanes/skills · 44 tokens

using-chrisbanes-skills

Use when debugging, benchmarking, or profiling leads into Kotlin or Jetpack Compose source before the cause is known, or when one task spans multiple Kotlin or Compose concerns, especially plain Kotlin Flow or navigation delivery plus sealed branching.

chrisbanes/skills · 52 tokens

kotlin-api-design

Use when designing or reviewing Kotlin function ownership, member or extension functions, factories, single-field domain types, value classes, data classes, Kotlin Multiplatform expect/actual declarations, or platform service boundaries.

chrisbanes/skills · 46 tokens

kotlin-concurrency-and-flow

Use when writing or reviewing Kotlin coroutine scope ownership, raw Thread or Executor work, init launches, non-suspending launch APIs, runBlocking, cancellation, StateFlow, SharedFlow, Channel, stateIn, SharingStarted, state updates, or one-shot events.

chrisbanes/skills · 60 tokens