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/ - Run from project root:
./gradlew :autogen:run
- 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 docs
./gradlew :autogen:run
# Check output
cat autogen/src/main/resources/output/spigot-api-1.20.4.md-
Create a
.envfile in the project root:cp .env.example .env
-
Add your Anthropic API key to
.env:ANTHROPIC_API_KEY=your-api-key-here
-
Start the service:
./gradlew bootRun
# List available docs
curl http://localhost:8083/api/v1/available-docs
# Get specific doc
curl http://localhost:8083/api/v1/docs/minecraft-commandsGET /api/v1/available-docs- List all available documentationGET /api/v1/docs/{docId}- Get specific documentation
GET /api/v1/available-docs
[
"luckperms"
]GET /api/v1/docs/bukkit-api
{
"content": "# Luckperms API Reference\n\n## Package: net.luckperms...",
"tokens": 4523
}- ✅ 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
MIT License
Built with ❤️ for the Minecraft development community by Kodari.ai