API & AI
The REST API, the MCP server for AI agents, and AI discovery with llms.txt and WebMCP.
11 articles
-
Basehim Dev Tools: build and manage your site with an AI agent
Install Basehim Dev Tools from the Marketplace and connect an AI agent such as Claude: it can manage content, build and change themes and apps, read logs and fix problems on your site. Setup, modes, safety checks, rollback and the full tool list.
-
Build with AI
How to build Basehim apps and themes with an AI assistant: three ways to work (a chat assistant, a coding agent on your computer, or an assistant connected to your site through MCP and Basehim Dev Tools), a safe step-by-step workflow, and what to check before anything reaches a live site.
-
Prompts for building with AI
Ready-made prompts for building Basehim apps and themes with an AI assistant: a new app, admin screens, AJAX, public pages, widgets, scheduled imports, uploads, MCP tools, themes, reviews, fixes, migrations and release notes. Fill in the blanks and paste.
-
AI context for Basehim development
One compact page of rules and real API signatures for AI assistants building Basehim apps and themes. Paste it into your AI before you ask for code, or point the AI at this page, so it follows Basehim's conventions instead of guessing.
-
Connect an AI assistant to your site
A step-by-step tutorial. Connect Claude, or any MCP client, to your Basehim site over OAuth or with an API key. Choose the right account and scopes, try useful prompts, and know how to disconnect.
-
Publish from a script with the REST API
A step-by-step tutorial. Write a small Node.js script that publishes Markdown files to Basehim - creating the category, uploading a cover image, and updating the same post on later runs - with a scoped API key and proper error handling.
-
Give your app an MCP tool for AI agents
A step-by-step tutorial. Expose your app's data to AI assistants as an MCP tool with its own scope, decide which roles may grant it, and test it with an API key and a JSON-RPC call.
-
AI discovery: llms.txt, robots.txt and WebMCP
What Basehim publishes so AI crawlers and agents can find and use a site - robots.txt rules per crawler class, llms.txt, the agent resource catalog and in-browser WebMCP tools - and how themes and apps extend each one.
-
MCP and AI agents
Basehim's built-in Model Context Protocol server - how assistants connect over OAuth 2.1 or with an API key, what each tool does and which scope it needs, how roles limit agents, raw JSON-RPC examples, and how apps add tools.
-
API reference
Every REST, OAuth and MCP endpoint in Basehim core, with the scope an API key needs for each, checked against the routes in Basehim 1.2.53.