Introduction
Mamluk MCP server
A public Model Context Protocol server, built with the Kipchak MCP driver, that an AI assistant can use to search the Kipchak, BKE and Tersane documentation. Its address, its tools, how to connect, and how it is built.
Introduction
Mamluk runs a public Model Context Protocol (MCP) server at https://mcp.maml.uk. An AI assistant connected to it can search and read the Kipchak documentation, so that it writes a Kipchak API from the framework's own pages and not from what it remembers of other frameworks. The same server answers questions about Bahriya Kubernetes Engine (BKE) and Bahriya Tersane. It needs no account and no key.
The server is a Kipchak application. It uses the MCP driver, which gives a Kipchak API its own MCP endpoint, and it is a worked example of an API that serves MCP tools.
The Kipchak tools
| Tool | What it does |
|---|---|
kipchak_docs_search | Finds the pages of this documentation that contain every word of the query, with a short extract from each and its address on kipchak.dev. A page whose title holds the words comes first. |
kipchak_docs_get | Reads one documentation page in Markdown, or lists the pages in reading order. |
Examples of what to ask an assistant that is connected:
- "Search the Kipchak documentation for idempotency."
- "Read the Kipchak page on configuration."
- "How do I give my Kipchak API an MCP endpoint?"
Every answer names the commit of the documentation that it was read from. The server holds a copy of the documentation, and the copy is refreshed when the server is rebuilt, so a page published a few hours ago may not be in it yet. The pages about Kipchak Enterprise terms and prices are not part of it; the Enterprise page has them.
The other tools
The server answers about Mamluk's other products with tools of the same kind. Each one reads information that is already published, and nothing a client sends changes anything.
| Tool | What it does |
|---|---|
bke_docs_search, bke_docs_get | Search and read the BKE documentation, for one BKE version. |
bke_upgrade_path | Says whether a cluster may upgrade directly from one BKE version to another. Patch releases may be skipped; minor releases may not. |
bke_support_policy | Gives the BKE support policy and the minor releases that are supported today, with the date each one ends. |
tersane_docs_search, tersane_docs_get | Search and read the Bahriya Tersane documentation, including the page of each chart. |
tersane_charts | Lists the Tersane charts by group, each with a one-line summary and a link to its page. |
Connect
The server uses the streamable HTTP transport of MCP. Any client that can add a remote MCP server by address can use it.
For Claude Code:
claude mcp add --transport http mamluk https://mcp.maml.uk
Then run claude mcp list. The server is reported as connected.
For other clients, open the client's settings for remote MCP servers and add a server of type HTTP with the address https://mcp.maml.uk. No sign-in is required.
To see the tools without an assistant, send this request:
curl -s https://mcp.maml.uk/ \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
The reply lists the nine tools above.
An assistant can misread a page. Treat an answer as a pointer to the documentation, and check an answer against your own project or cluster before you change anything.
How it is built
The server is a Kipchak application with two routes: the MCP endpoint at the path /, and a status route. Its tools are public methods marked with #[McpTool], one class for each product, and each one reads published information.
Two choices in it apply to any API that serves public tools:
- Public tools are declared as public. The application refuses to start if a tool is not declared public, so a tool that needs a caller cannot be served on the open endpoint by accident.
- Limits are applied to the whole host. The server counts the requests it accepts in a minute, and a client over the limit receives a refusal with a
Retry-Afterheader that says when to try again.
To give your own Kipchak API an MCP endpoint, read the MCP driver. For the BKE documentation that the tools search, see the BKE documentation.