Skip to content

Coding agents and MCP

The standalone serenade-rangular-mcp serves embedded Serenade and Rangular documentation to MCP-capable coding agents. The documentation and examples identify the product, version, source revision, and original path. Each binary contains one manually selected source snapshot per product; it does not fetch documentation from this website.

Install the binary, then configure the agent to start it:

Terminal window
cargo install --locked serenade-rangular-mcp
{
"servers": {
"serenade-rangular": {
"type": "stdio",
"command": "serenade-rangular-mcp",
"args": ["--profile", "all"]
}
}
}

Profiles are serenade, rangular, and all. The MCP supports listing, searching and reading documents and exposes them as resources. Rangular template validation uses the released parser, which can differ from the development documentation; it is not an AOT compilation or an application build. Local stdio also exposes tools to scaffold a Serenade application and run Cargo check, build or test. These can write files and execute build scripts or tests; use a client that requests approval. The agent can also run serenade, serenade-trunk, Cargo, and other commands locally.

Connect an MCP client to the free hosted endpoint at https://mcp.serenade.rs/. It is an MCP protocol endpoint, not a browser page. The service can have a cold start, so allow enough time for it to wake and reconnect after a restart if needed. Hosted HTTP is read-only and cannot access your project or run local commands.

For local HTTP:

Terminal window
serenade-rangular-mcp --transport http --profile all

Connect to http://127.0.0.1:8765/. Public HTTP is read-only and does not access the caller’s project.

The static documentation build publishes original Markdown separately from the MCP. Use the explicit .md URLs; requesting the HTML page with Accept: text/markdown does not select Markdown. For example:

The website’s documentation can differ from the snapshot embedded in an installed MCP binary. Check the MCP result’s version and revision before applying its examples. The Markdown index records a SHA-256 hash of each published file.