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 skills/mirkosertic/mcpluceneserver/dev-tasksnpx skills add mirkosertic/MCPLuceneServer --skill dev-tasksgit clone --depth 1 https://github.com/mirkosertic/MCPLuceneServerWhat 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.00035 | $0.00759 |
| Opus 5 | $0.00017 | $0.00380 |
| Sonnet 5 | $0.00007 | $0.00152 |
| Haiku 4.5 | $0.00003 | $0.00076 |
Grade A, and why
dev-tasks 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 3d 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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Common Development Tasks
Adding a New Facet Field
- Update
DocumentIndexer.java- add the field toFacetsConfig - Add the field to the Lucene document in the indexing method
- Bump
SCHEMA_VERSIONinDocumentIndexer.java(triggers automatic reindex on upgrade) - Update README.md field schema table
Adding File Format Support
- Add the file extension pattern to
application.yamlunderinclude-patterns - Apache Tika handles most formats automatically via auto-detection
- For custom parsing beyond Tika: extend
FileContentExtractor.java - Test with real documents of the new format
- Update README.md supported formats section
Debugging STDIO Issues
The MCP server uses STDIO transport. Any output to stdout breaks the JSON-RPC protocol.
Checklist:
- Must use
deployedprofile:java -Dspring.profiles.active=deployed -jar target/luceneserver-*.jar - The
deployedprofile disables all console logging appenders - Search for
System.out.printlnin codebase -- there must be NONE - Search for
System.err.println-- also problematic - Logger output goes to file only in deployed mode
- Test command:
java -Dspring.profiles.active=deployed -jar target/luceneserver-*.jar
Performance Tuning
Indexing is slow
- Increase
thread-pool-sizein config (more parallel file walkers) - Increase
batch-size(fewer Lucene commits) - Increase
batch-timeout-ms(larger batches) - Check if
max-content-lengthis causing excessive content truncation
Search is slow
- Check for leading wildcard queries (
*term) -- these are expensive even withcontent_reversedoptimization - Reduce
pageSizein search requests - Check total index size -- very large indices may benefit from
optimizeIndex()
Out of Memory (OOM)
- Set
max-content-lengthto limit per-document content size - Increase JVM heap:
-Xmx2gor higher - Reduce
thread-pool-size(each thread holds document content in memory) - Check for very large files being indexed (e.g., multi-GB archives)
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.
- 3d ago First seen · 73 lines · 35 tokens per session scan A f9fdd4672ea6
dev-tasks is a skill published in the GitHub repository mirkosertic/MCPLuceneServer (5 stars, last pushed 6d ago), licensed Apache-2.0. It adds 35 tokens to every session and 759 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.
Other skills, from other repositories
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
tika-eval-compare
Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".
xcodebuildmcp-structured-output-review
Use when reviewing XcodeBuildMCP structured output schema changes, schema versioning, manifest outputSchema metadata, and JSON fixture compatibility.
opik-diagnose
Surface the Opik traces worth a developer's attention, ranked by signal — errors, failed tool calls, latency, regressions, and low online-eval scores — plus Diagnostics issues. Reads live/production traces via the SDK (searchtraces and agentinsights) and works with no MCP; uses the MCP issue entity when connected.…
mcp-transport-contract-auditor
Route shaft-mcp transport-contract audits to the canonical playbook.
create-operator
MUST READ before creating or moving any operator (createop, copyop, setopposition, or executepython builds). Required verification, canonical positioning recipe, and error-checking steps.