Mojimoto Docs
Start free
Docs AI agents Working with AI agents

Working with AI agents

What Mojimoto gives a coding agent - one file to read, every docs page as markdown, an MCP server and a write API.

Coding agents are good at building front ends and bad at guessing how a CMS wants its content modelled. Mojimoto gives an agent the facts in plain text, a live connection to your project and an API to write through, so it works from your real content model.

If you do one thing, give your agent this instruction:

text
Read https://mojimoto.com/llms.txt before you model or write any Mojimoto content.

What an agent gets

What Address Use it for
The core reference in one file https://mojimoto.com/llms.txt Everything needed to model and write content. Read this first.
Any docs page as markdown The page's address with .md added One topic, without the rest.
All the docs in one file https://mojimoto.com/llms-full.txt Every page, when the agent has room for it.
The MCP server https://mojimoto.com/mcp/{project} Reading the content model and writing content as tool calls.
The write API https://mojimoto.com/api/v1/{project}/manage The same writes over plain HTTP, for scripts and for agents without MCP.

llms.txt

https://mojimoto.com/llms.txt is one plain text file written for agents. It is built from the pages of these docs, so it is never a separate copy that can fall behind.

It has two parts:

  1. A list of every docs page, each with a one-line description and a link to its markdown.
  2. The pages an agent needs to model and write content, written out in full:
terminal
curl https://mojimoto.com/llms.txt

Every page as markdown

Add .md to the address of any docs page to get it as markdown. This page is at https://mojimoto.com/docs/ai/overview, so its markdown is at:

terminal
curl https://mojimoto.com/docs/ai/overview.md

The response is text/markdown. It starts with the page's title as a heading and its one-line description, followed by the page as written. Point an agent at a single page when it only needs one topic, for example the field types while it writes entries.

llms-full.txt

https://mojimoto.com/llms-full.txt starts with the same list of pages, then writes out every page of the docs in full. Use it when the agent should have all of it in one read: the frameworks, webhooks, preview and limits, as well as the core reference.

The MCP server

Every project has an MCP server at https://mojimoto.com/mcp/{project}. Connected to it, an agent can:

  • read the content model, as the mojimoto://content-model resource
  • list content types and entries
  • create, edit, publish, unpublish and delete entries
  • upload images and files
  • create content types and add, change or remove their fields

It signs in with one of the project's API tokens, and the token decides which of those tools it sees. The MCP server page lists every tool with its arguments.

The write API

Everything the MCP tools do is also an HTTP endpoint under /api/v1/{project}/manage, for agents that cannot use MCP and for migration scripts. See the Content Management API.

An agent that only builds a front end needs neither. It reads published content with the Content Delivery API and a read token.

Give the agent a token that fits the job

An agent acts with whatever its token allows, so make one for it on the project's API keys page instead of reusing your own.

  • To build a site, a read token is enough. The project's public read token is safe to paste into a prompt, because published content is public.
  • To write content, create a token with the write ability and narrow it. You can limit it to some operations (create and edit drafts, publish and unpublish, delete entries, upload media, change content models) and to some content types. An agent that should draft blog posts gets drafts only, on post only.
  • The public read token cannot use the MCP tools. Create a token for MCP, even a read-only one.

Every write an agent makes is recorded against the name of its token, and each version of an entry shows which token wrote it. More in Authentication.

Set up Claude Code, Cursor and Codex in one command

Run this in your site's repository:

terminal
npx @mojimoto/cli init --project acme --token mjmt_your_read_token

It writes a Mojimoto skill for Claude Code with your project's content model in it, a Cursor rule with the same guidance, a short note in CLAUDE.md and AGENTS.md, and the MCP server into .mcp.json and .cursor/mcp.json. The MCP configs read the write token from the MOJIMOTO_WRITE_TOKEN environment variable, so no token is written to your repository.

The CLI page has the details, and Claude Code walks through it from start to finish.

Where to go next

Something wrong or missing on this page? Tell us and we will fix it.

© 2026 Your Ikigai Ltd · Registered in England & Wales, no. 15274889 文 · モジモト