Keep your app/admin files as they are. ReactiveAdmin reuses their controllers, filters, scopes, forms, and authorization, so you don't write serializers, API controllers, or pages per resource.
app/admin/posts.rb




GET /api/admin/posts?scope=embargoed
{
"resource": "posts",
"rows": [
{ "id": "5005",
"cells": {
"publication_status":
{ "type": "status", "label": "Pending",
"variant": "neutral" },
…
},
…
}
],
"meta": { "current_scope": "embargoed",
"total_count": 18 }
}Typed values, not HTML. The OpenAPI document lists only what the signed-in admin may access.
tools/call
{
"name": "list_records",
"arguments": {
"resource": "posts",
"scope": "embargoed",
"order": "created_at_desc"
}
}Agents call the same API as the admin their token belongs to. MCP is off until you turn it on, and each resource is read-only until you opt it in.
bundle add reactiveadmin
bin/rails generate reactiveadmin:installGetting started covers configuration, routes, and the client.