Official documentation service for Kodari.ai - providing AI with up-to-date API knowledge for Minecraft plugin development.
This microservice serves API documentation that helps Kodari understand the latest Minecraft/Bukkit/Spigot/Paper APIs without relying on outdated training data.
We welcome community contributions! Add your documentation to help make Kodari smarter.
- Fork this repository
- Add your
.mdfile tosrc/main/resources/docs/ - Submit a pull request
Create markdown files with clear API references:
# YourPlugin API
## Classes
### com.example.YourMainClass
Methods:
- void doSomething(String param)
- String getSomething()- File:
your-plugin-name.md(lowercase, hyphens) - Content: Focus on method signatures and basic usage
We provide a tool to automatically generate docs from JAR files.
- Place your JAR files in
autogen/src/main/resources/input/ - Choose your scanning mode and run from project root:
# Scan entire JAR
./gradlew :autogen:run
# Or explicitly
./gradlew :autogen:run --args="full"# Scan only specific package
./gradlew :autogen:run --args="package com.example.api"
# Works with both dot and slash notation
./gradlew :autogen:run --args="package com/example/api"- Check
autogen/src/main/resources/output/for generated docs - Review and copy good docs to
src/main/resources/docs/
# Clone the repo
git clone https://github.com/KodariAI/kodaridocs.git
cd kodaridocs
# Add your JAR
cp ~/spigot-api-1.20.4.jar autogen/src/main/resources/input/
# Generate complete docs
./gradlew :autogen:run
# Check output
cat autogen/src/main/resources/output/spigot-api-1.20.4.md# Add your JAR
cp ~/EcoPets.jar autogen/src/main/resources/input/
# Generate docs only for the API package
./gradlew :autogen:run --args="package com.willfp.ecopets.api"
# Output will be named with package suffix
cat autogen/src/main/resources/output/EcoPets-com-willfp-ecopets-api.md- ✅ DO contribute API references and method signatures
- ✅ DO include basic usage examples
- ✅ DO keep docs factual and concise
- ❌ DON'T include tutorials or opinions
- ❌ DON'T commit JAR files
- ❌ DON'T include sensitive information
Built with ❤️ for the Minecraft development community by Kodari.ai