Agents & MCP
AI agents — Claude, Cursor, or any MCP client — can build in Devmachinist on your behalf.
Access tokens #
Create a personal access token under Account → Access tokens. Choose its scopes:
| Scope | Allows |
|---|---|
| read | Reading projects, files and the library |
| write | Changing files, components and pages |
| preview | Starting and stopping previews |
| publish | Publishing and native app exports |
You can limit a token to specific projects and give it an expiry. Tokens never reach your account settings, billing or passwords, and you can revoke them at any time.
MCP server #
Point your MCP client at POST /api/mcp on your Devmachinist server with the token as a Bearer token. The tools mirror the REST API (list projects, read and write files, add components, start previews, publish). GET /api/agent describes every tool and its REST equivalent.
{ "mcpServers": { "devmachinist": { "url": "https://devmachinist.com/api/mcp",
"headers": { "Authorization": "Bearer dm_pat_…" } } } }