# GentleKnight AI

Source: /projects/gentleknight-ai

GentleKnight is our own documentation system: we write in blocks, translate right there, and every published page remains readable by both humans and AI. It brings together an editor, a translation module, a public site, and an MCP server to no longer depend on external tools.

-   [![The GentleKnight homepage: the name, a short tagline, and buttons to try the demo or read the documentation.](/projects/gentleknight-site.png)**the site**Try the demo: a personal space, no sign-up required, automatically deleted after 24 hours.](https://gentleknight.ai)
-   [![The GentleKnight documentation index: sections for getting started, writing, publishing, automation, and AI, shown as cards.](/projects/gentleknight-docs.png)**Documentation**Consult the guide and GentleKnight resources.](https://docs.gentleknight.ai)

1.  [Why our own system](#pourquoi)
2.  [Writing in blocks](#blocs)
3.  [Translate without losing the thread](#traduction)
4.  [One format, one implementation](#format)
5.  [Readable by AI](#ia)
6.  [Roles and access](#roles)
7.  [Hosted by us](#hebergement)
8.  [What comes next](#suite)
9.  [Built with](#stack)

## Why our own system

The core idea is simple: stop relying on external tools to write, organize, and translate what we know about our products. A homegrown tool also means the freedom to add exactly what we need, when we need it.

Production must serve documenting our own projects, Vyse and Miner's Run. The demo, meanwhile, is open to everyone.

> Documentation for us, translated by us, end-to-end.

## Writing in blocks

Each page is a sequence of blocks, like in Notion. Rich text is stored as structured content with its marks, links, and tooltips intact, so nothing is lost between the editor, preview, and public view.

the hierarchy of content

1.  **a project**members, roles, languages, formats
2.  **a document**a section of the documentation
3.  **a page**
4.  **a block**a value per language

## Translate without losing the thread

A block's text exists once per language; the page structure is common to all. Each translation keeps the source revision it rests on. When the original text changes, it goes 'needs review' instead of silently becoming wrong. Code, commands, and images are not translated.

when the source changes

1.  **the original text is modified**its revision increases
2.  **translations go 'needs review'**
3.  **the translation is updated**
4.  **the percentage is recalculated**

The same system works beyond documentation: on Discord, on websites, and in Minecraft, with their formats (MiniMessage, Discord Markdown), without formatting lost along the way.

## One format, one implementation

Rich text has a single implementation, written in Rust. The same code runs on the server and in the browser, compiled to WebAssembly: no more TypeScript conversion on one side and Kotlin on the other. Its text form, Rich Markdown, serves exports, AI, and the MCP server.

three guarantees, verified by tests

- **a single format**: a given piece of content always writes out in exactly the same way
- **no loss**: writing then rereading yields exactly the original content back
- **no guesswork**: an ambiguous input is rejected, with line and column reported

![The GentleKnight Translations page in English: the sidebar navigation on the left, the page text in the centre, and the table of contents on the right.](/projects/gentleknight-preview-en.png)

The translations page in English, with the switch to French offered at the top.

## Readable by AI

A Rust service serves the public site and everything intended for machines: the Markdown of each page, llms.txt, llms-full.txt, llms.json, and the sitemap. In a given language, llms.txt lists only pages that actually exist in that language.

An MCP server, also in Rust, allows an assistant to read, write, and translate project documentation using a token specific to that project. A modification is made via exact citation: if the cited text is missing or ambiguous, it is rejected. Publishing is marked as sensitive; the assistant asks first.

what an assistant can do

```
search · fetch · list_pages
create_document · create_page
edit_page       "old text" → "new text"
translate_page  a translated copy, block by block
publish_page    sensitive: ask first
```

The pages of the captures above were written, then translated, by this MCP server.

## Roles and access

- **owner**: everything, including members and API tokens
- **editor**: edit content and publish
- **translator**: translations only, verified on the server
- **reader**: read-only

Access rules fit within a single tested function; sessions are HttpOnly cookies where only the hash is stored, just like API tokens.

## Hosted by us

The core runs on Kotlin and Spring Boot with MongoDB, the interface on Next.js, and the format and publishing service on Rust. The demo and production run on the same machine, each with its own database, ports, and settings. GitHub Actions deploys the demo on every push and production on every release.

where GentleKnight runs

our server, behind a Cloudflare tunnel**GentleKnight, with no open ports**

MongoDB and the core communicate only over Docker's internal network

## What comes next

- **collaboration**: several people editing the same block, with Ctrl+Z undoing only their own changes
- **history**: who changed what, when, and through which channel: editor, API, or assistant
- **assistant**: questions and answers about the docs from the public page, Discord, or Minecraft
- **formats**: extensions for importing existing content, including MiniMessage

The project is still under construction. This page describes the intent and current state, not a list of finished features.

## Built with

- **core**: [Kotlin](/stack?tech=kotlin#tech-kotlin)[Spring Boot](/stack?tech=spring-boot#tech-spring-boot)[MongoDB](/stack?tech=mongodb#tech-mongodb)
- **format and publishing**: [Rust](/stack?tech=rust#tech-rust)[WebAssembly](/stack?tech=webassembly#tech-webassembly)
- **interface**: [TypeScript](/stack?tech=typescript#tech-typescript)[React](/stack?tech=react#tech-react)[Next.js](/stack?tech=next-js#tech-next-js)[Tailwind CSS](/stack?tech=tailwind-css#tech-tailwind-css)[shadcn/ui](/stack?tech=shadcn-ui#tech-shadcn-ui)
- **infrastructure**: [Gradle](/stack?tech=gradle#tech-gradle)[Docker](/stack?tech=docker#tech-docker)[GitHub Actions](/stack?tech=github-actions#tech-github-actions)

[previous project**Wisp Benchmark**](/projects/wisp/benchmark)[next project**Miner's Run**](/projects/miners-run)
