Генерируйте растения из вашего ИИ-агента
Подключите FoliMesh к Claude, Cursor или любому MCP-клиенту. Агент смотрит список видов, подбирает параметры и скачивает готовые модели GLB — вы продолжаете писать код.
Быстрый старт за 3 шага
- 01Подписка с MCP
MCP входит в тарифы Indie, Pro и Studio. В бесплатном тарифе и пакетах скачиваний его нет.
- 02Ключ API
Аккаунт → «API-ключи и MCP» → создайте ключ. Он показывается один раз — сразу сохраните его в настройках клиента.
- 03Подключите агента
Добавьте адрес сервера и ключ в свой клиент (примеры ниже) и попросите словами: «Скачай мне дуб в GLB в папку assets».
Подключение к агенту
Адрес один для всех клиентов, ключ передаётся в заголовке Authorization. В примерах замените fm_live_… на свой ключ.
https://folimesh.com/api/mcpStreamable HTTP · JSON-RPC 2.0
Authorization: Bearer fm_live_…Создайте API-ключ в аккаунте и передавайте его как Bearer-токен. Доступ к MCP входит во все тарифы: Indie, Pro и Studio.
claude mcp add --transport http folimesh https://folimesh.com/api/mcp \ --header "Authorization: Bearer fm_live_…"
Файл ~/.cursor/mcp.json (для всех проектов) или .cursor/mcp.json в проекте
{
"mcpServers": {
"folimesh": {
"url": "https://folimesh.com/api/mcp",
"headers": {
"Authorization": "Bearer fm_live_…"
}
}
}
}Файл .vscode/mcp.json в проекте
{
"servers": {
"folimesh": {
"type": "http",
"url": "https://folimesh.com/api/mcp",
"headers": {
"Authorization": "Bearer fm_live_…"
}
}
}
}Settings → Developer → Edit Config. Нужен Node.js: мост mcp-remote передаёт ключ серверу
{
"mcpServers": {
"folimesh": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://folimesh.com/api/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer fm_live_…"
}
}
}
}Подойдёт любой клиент с поддержкой Streamable HTTP: адрес https://folimesh.com/api/mcp и заголовок Authorization: Bearer <ключ>. Сервер отвечает JSON без сессий и без потока событий (GET не нужен).
Команды
Агент вызывает команды сам — вам достаточно попросить словами. В колонке «Цена» — сколько скачиваний спишется с баланса.
| Команда | Что делает | Аргументы | Цена |
|---|---|---|---|
| list_species | Список всех видов — деревья, пальмы, кактусы, кусты, травы, камни, пещеры, кораллы и другое — с адресом (slug) и категорией. | category — необязательно: trees, palms, cacti, bushes, ground, rocks… | бесплатно |
| describe_params | Все параметры генератора для вида: уровни ветвления, крона, листва, кора, бюджеты треугольников по LOD. | species — slug вида, например oak | бесплатно |
| get_stats | Собирает модель на сервере и возвращает треугольники по каждому LOD, высоту и время сборки. Удобно, чтобы подобрать вариант под бюджет полигонов. | species; seed — номер варианта; age — возраст, лет; style — real или lowpoly | бесплатно |
| export_glb | Собирает готовый GLB — все LOD, фото-текстуры, ветер, коллизия — и возвращает ссылку на файл на 24 часа. Тот же вид, вариант, возраст и стиль повторно — бесплатно. | species; seed; age; style; lod — только один уровень | 1 скачивание |
| get_balance | Остаток скачиваний и ИИ-кредитов, тариф и подключена ли сейчас вкладка редактора. | — | бесплатно |
Команды редактора
Когда редактор FoliMesh открыт на сайте, агент работает прямо в вашем пространстве: создаёт объекты, наборы и биомы, меняет параметры, лепит ветки, делает снимки и просит скачать. Каждая правка видна в истории редактора с именем агента.
Описания — такие, какими их видит агент (на английском). Всё, что тратит скачивания, ждёт вашего «Да» в редакторе, если не укладывается в дневное разрешение ключа.
| Команда | Что делает | Аргументы |
|---|---|---|
| rename_workspace | Rename the workspace. | name |
| Команда | Что делает | Аргументы |
|---|---|---|
| set_role | Give an object inside a set its role: large trees, undergrowth, shrubs, ground cover, rocks, details (by default — by the object kind). Roles group the set and its scene rows. | node; object; role |
| set_variants | Variants per object in a set: every object gets count shapes in total — itself plus count−1 variants with other seeds (made and removed by the set; own variants stay). Each object with its variants is one download. | node; count |
| set_layout | How a set stands on the scene: quality (best — the highest detail of every object, for screenshots; own — as set on the objects), ground (scene or grass), formation (rows by role, grid, line, circle, grove), gap between objects in metres, compact (how much of its width an object takes: 1 — crowns do not overlap). | node; quality; ground; formation; gap; compact |
| set_params_many | Change module parameters of a group of selected nodes at once as one step: objects and variants directly, folders and containers with everything inside. Keys are "module:path" of the modules style, season, state, age, lod; value null returns each to its preset value. | nodes; patch |
| apply_style_to | Give one visual style to every object inside a set, folder or other container (realism returns each to the style of its preset). Variants follow their objects. | node; style |
| set_params_all | Change module parameters of every object inside a set, folder or other container at once (a group edit), e.g. {"style:value": "minecraft", "style:mcPalette": "autumn"} turns all of them into Minecraft blocks. Keys are "module:path" of the modules style, season, state, age; value null returns each object to its preset value. Variants follow their objects. The set remembers the values (shown in its panel). | node; patch |
| apply_texture_to | Put one texture (bark or leaves) on every object inside a set, folder or other container, or only on objects of one preset (species). ref is a texture reference: "user:<id>" for an uploaded or AI-generated texture, a catalog key, or "" for the procedural pattern; null-like reset is not supported — use set_params per object. | node; kind; ref; preset |
| update_from_my_preset | Replace the contents of a container placed from the user’s preset with the latest version of that preset (name and place stay). Own edits made in this copy are replaced. | node |
| update_versions | Move an object to the current versions: listed modules only, or everything (core, preset, all modules) when modules is omitted. May change the look; nothing updates by itself. | node; modules |
| fill_biome | Add the objects of a ready biome (taiga, deciduous, tropics, desert, swamp, savanna) into a biome, each with its placement rules. | node; starter |
| set_biome | Change the plot of a biome: side, m; overall density; hill height, m; placement seed (new seed — shuffle). | node; size; density; relief; seed |
| set_layer | Change the placement rules of one object (layer) inside a biome: kind (tree / under / ground / rock), density per 100 m² where the site fits fully, spacing at scale 1, clumping 0–1 and group size, patches, max slope, height range, moisture preference (−1 ridges … 1 wet lowlands), slope side (−1 sunny south … 1 shady north), canopy shade (−1 light … 1 under crowns), avoid trunks, scale range, size distribution, variants, on. | node; object; patch |
| set_seed | Set the seed of an object or variant — another shape of the same recipe (a variant without its own seed keeps the shape of its base). | node; seed |
| set_preview_lod | Choose which level of detail the editor preview shows (does not change the export). | node; lod |
| set_params | Change module parameters of an object or variant. Keys are "module:path" (e.g. "trunk:length", "branches:levels.1.length", "bark:adjust.hue"); value null returns the preset value (for a variant — the value of its base). See describe_object for modules and paths. | node; patch |
| toggle_module | Turn a module of an object on or off (e.g. no roots, no foliage). | node; module; on |
| reset_module | Return all parameters of one module of an object to the preset (of a variant — to its base). | node; module |
| branch_cut | Cut a branch at a share of its length (t = 0 removes the whole branch with everything growing on it). The cut keeps its thickness and gets a flat end; leaves beyond it go. | node; axis; level; tip; t |
| branches_cut | Cut many branches in one step — like a scissors stroke across the crown (one edit, one history entry; a dense crown may give hundreds of cuts). Each cut is a branch and a share of its length (t = 0 removes the branch). | node; cuts |
| branches_clear | Start a tree from scratch: all branches go, only the trunk stays (the trunk settings still apply). Then draw branches with branch_grow: from the trunk — level 1, from a level-1 branch — level 2, and so on; leaves grow on them like on the species. | node |
| branch_bend | Bend a branch: the point at share t moves by d (in tree heights), everything beyond follows, towards the base the bend fades over soft (share of the branch length). copies — the same bend on mirror / radial twin branches, in one step. | node; axis; level; tip; t; d; soft; copies |
| branch_stretch | Make a branch longer or shorter (length × k, same shape); what grows on it moves along. copies — the same on mirror / radial twin branches, in one step. | node; axis; level; tip; k; copies |
| branch_thicken | Make a branch and everything growing on it thicker or thinner (radius × k). copies — the same on mirror / radial twin branches, in one step. | node; axis; level; tip; k; copies |
| branch_grow | Grow a new branch out of a branch at share t along a path (points in tree heights; the first point snaps to the parent). The new branch is one level deeper than its parent; its thickness follows branches of that level (vessel scheme: the parent below grows by its section). Leaves grow on it. | node; axis; level; tip; t; path; radius; stem; leaves; taper; copies |
| leaves_brush | Foliage brush: denser (amount > 0, up to 3 — copies of leaf clusters next to the existing ones) or sparser (amount < 0, −1 — no clusters under the brush centre) along a stroke. Points and radius are in tree heights. | node; points; radius; amount |
| blocks_brush | Minecraft "Blocks" brush (object in the minecraft style): put blocks along a stroke — balls of radius blocks around each point, or a wall (columns from each point up by wall blocks) — or erase them. Draw rocks, ridges, cliffs, walls and other structures on and around the object; the grid grows to fit (up to 256 blocks per side). Points are in metres (y up, ground at 0). | node; points; radius; erase; paint; block; wall |
| minecraft_style | Turn an object into Minecraft blocks (the "Minecraft" style) and set its block options in one step: block wood (auto — by the bark and leaf colour), palette (natural, autumn — wool leaves, snowy — snow on top, dead — no leaves, fantasy — cherry and azalea leaves, mushroom — stem and red cap), leaf density 0.2..1, thin branches (log, fence, none), blocks per metre. Rocks, mushrooms, grass and flowers become stone, mushroom and plant blocks. Export with export_objects format "minecraft" (.schem, .nbt, datapack). | node; wood; palette; leafDensity; thin; blocksPerMeter |
| fruit_brush | Put fruit on branches under a brush stroke: count fruits (default 3) at each stroke centre, on branches within the radius. Uses the species' own fruit, berries, cones or flowers; a tree without them gets red fruit. Points and radius are in tree heights. | node; points; radius; count |
| surface_brush | Sculpt a rock or cliff surface (stones only). Points, radius and amount are in object heights (y up, base at 0); n is the surface normal under the brush (outward). Tools: raise / lower — bump up or dent along n by amount (height) under a stroke; smooth / sharpen — strength amount (0–1); flatten — level to the plane through the first point with normal n, strength amount; erode — weathering pits and rounded edges, strength amount; chip — a flat chip at points[0], radius = its size, amount = depth; crack — a groove along the points path, radius = half-width, amount = depth; slice — cut away everything outside the plane through points[0] with outward normal n. | node; tool; points; n; radius; amount |
| fit_budget | Make objects fit a triangle budget: the core lowers the costliest settings in a fixed order (LOD0 detail cap, leaf density, branch-card density, number of the finest branches, one branching level less) until LOD0 has at most `target` triangles; far levels then get their share of the target (as in the LOD settings) and their budgets are lowered when over it; applies the changes as one undo step. Without `node` — every object of the workspace; without `target` — the LOD0 budget of the workspace platform. Returns triangles before/after per object and whether it fits. | node; target |
| set_edit | Switch one sculpting edit (or a whole scissors stroke by its group id) off or back on (the edit stays in the list). | node; edit; on |
| delete_edit | Delete one sculpting edit (or a whole scissors stroke by its group id) from the list. | node; edit |
| apply_module_preset | Take one module of an object from another preset ("bark — as birch, branches — as willow"). Replaces all settings of this module; earlier edits of it are dropped, on/off stays. reset_module returns the object own preset. | node; module; from |
| apply_level_preset | Make one level (branches, thickness) of an object like a level of another preset ("level 2 — as willow"). from_level omitted — the same level number (the last one if the preset has fewer). Earlier edits of this level are dropped. | node; module; level; from; from_level |
| Команда | Что делает | Аргументы |
|---|---|---|
| create_link | Create a live link to an object or container (in this or another workspace) — no copy; it follows the original. Counted once in exports. | target; target_workspace; name; parent; index |
| unlink | Turn a link into an independent copy of its original (it stops following the original). | node |
| paste | Insert a node from this or another workspace: mode "copy" — independent copy with everything inside; mode "link" — live link to the original. | source; source_workspace; mode; parent; index |
| move_nodes | Move several nodes into a folder or container (or to the root) as one step; nodes inside another moved node travel with it. Variants stay under their base. | nodes; parent; index |
| trash_nodes | Move several nodes to the workspace trash as one step (restorable one by one with restore). | nodes |
| save_my_preset | Save an object (with its variants) or a container (biome, set, cave, islands) with everything inside — objects with variants, layers and placement rules, style — into the user’s Library as an own preset. A node that came from an own preset (or was saved before) becomes a new version of it unless as_new; one that came from a bought pack is saved as a new own preset. Copies already placed elsewhere do not change until updated with update_from_my_preset. | node; name; description; tags; thumbnail; as_new |
| add_my_preset | Put a copy of a Library preset (object, biome, set, cave, islands — own or from a bought pack) into the workspace — independent, remembers the preset version. | preset; parent; index |
| edit_my_preset | Rename the user’s own preset or change its description, tags, thumbnail (contents and version stay). | preset; name; description; tags; thumbnail |
| delete_my_preset | Delete the user’s own preset from the library. Copies already placed in workspaces stay as they are. | preset |
| create_folder | Create a folder in the workspace tree. | name; parent; index |
| create_container | Create a container — a folder-like object with its own settings: set, biome, cave, islands (map is in development). | kind; name; parent; index |
| convert_node | Turn a folder into a container (set, biome, cave, islands) or a container back into a folder (README §3.2). Everything inside stays; a container turned into a folder loses its own settings (biome rules, cave shape and sculpt edits, set roles) — undo brings them back. | node; to |
| create_biome | Create a biome — a container whose objects are placed over a plot by rules (layers: trees, undergrowth, ground cover, rocks). starter fills it with a ready biome (taiga, deciduous, tropics, desert, swamp, savanna); without it the biome is empty — move or create objects inside, each object is a layer. | starter; name; parent; index |
| create_object | Create an object from a preset (list_presets). Seed picks the shape variant. | preset; name; seed; parent; index |
| rename | Rename a folder, container or object. | node; name |
| move | Move a node into a folder or container (or to the root) at a position. | node; parent; index |
| duplicate | Copy a node with everything inside; the copy goes right after the original. | node |
| trash | Move a node to the workspace trash (restorable with restore). | node |
| restore | Return a node from the trash to its old place (or to the root if that folder is gone). | node |
| empty_trash | Delete everything in the trash permanently. Ask the user first. | — |
| create_variant | Create a variant of an object: it keeps only its differences (patch "module:path" → value, e.g. {"state:value": "felled"}); later edits of the object reach it, except fields it changed itself. Variants always sit side by side under their object (no variant of a variant): given a variant, the new one is its copy next to it — the same differences plus patch. Without seed it keeps the shape. | node; name; patch; seed |
| vary | Variation of the same object (owner 1.11): keeps every choice (modules on/off, bonsai, roots of another species, style, textures) and changes only shape numbers a little — sizes, trunk and root curvature, branches, age, foliage — by ± amount (default 0.15), plus the branch layout. One number (seed, like a world seed) gives exactly the same variation again. On an object or with new=true — a new variant next to it; on a variant — that variant is re-rolled (its manual edits of shape numbers are replaced). Returns the variant id and the seed. | node; seed; amount; new; inPlace; name |
| create_growth_stages | Growth stages of a tree for games in one step: variants of the object at stage ages (sapling, bush, young; optionally ancient) — the object itself is the mature tree. Stages that already exist as variants of it are skipped. names — display names per stage id. | node; stages; names |
| create_breakable | Breakable tree for games: two variants of an object — the stump and the top — that meet at one break point at stump height. The engine shows the whole tree and on a hit swaps it for the two parts and drops the top. | node; names |
| Команда | Что делает | Аргументы |
|---|---|---|
| get_workspace | Workspace tree (folders, containers, objects with ids), settings and trash. | — |
| check_workspace | Validate the workspace document against the schema; returns a list of problems (empty — all good). | — |
| list_my_presets | The user’s Library: own presets (saved objects, biomes, sets, caves, islands) and recipes from bought packs (origin "shop", with the pack): name, description, tags, version, number of objects; thumbnails only when asked. | kind; origin; thumbnails |
| module_updates | Which core, preset and module versions of an object are older than the current ones (an update may change its look; compare before updating). | node |
| create_snapshot | Freeze the selection for export: copies of recipes with pinned versions, platform, engine and format, plus a hash per object (decides what is already paid). Same content → same snapshot id. Does not charge anything. | selection; format |
| describe_object | Recipe of an object or variant (preset, seed, changed parameters; for a variant — with its base, plus its own differences in "variant") and the modules with their parameter paths for set_params. | node |
| list_modules | Ids of the core modules an object is built from (trunk, branches, bark, fill…). | — |
| list_presets | Ids of object presets for create_object. | — |
| list_module_presets | Presets that have this module (e.g. bark of birch, branches of willow) — for apply_module_preset and apply_level_preset. Catalog objects first, by section order; presets with identical module settings are listed once. levels — number of levels in that module (0 — none). | module |
| render_view | PNG snapshot of an object or variant to see what you are editing: the current editor camera or a side (front, back, left, right, top, three-quarter). overlay "branches" draws branch axes (highlight — one axis id in green) to find axis ids for branch_* commands; "grid" — a grid in object heights to aim surface_brush points. Needs the open editor (live); a server render comes later. | node; view; size; lod; overlay; highlight |
| list_workspaces | Workspaces of the user (id, name, whether it is the one open now). Commands work on the open workspace. | — |
| open_link | A link the user can open to watch you work in this workspace. | — |
| quote_export | Price of exporting the selection, before asking: new / changed / already paid (free) objects, total downloads and the balance. Does not charge. | selection; format |
| request_export | Ask the user to download the selection: the user sees what, the format and the price, and confirms or declines in their own interface (or the key has a daily allowance). Returns a request id; poll export_status, then get_download. | selection; format |
| export_status | Status of an export request: waiting (for the user), declined, expired, building (progress), ready, failed. | request |
| get_download | Download link of a ready export (only after the user confirmed and the build finished). | request |
| list_edits | Hand sculpting edits of an object or variant, in the order they apply. | node |
| Команда | Что делает | Аргументы |
|---|---|---|
| set_settings | Change workspace settings: visual style, platform (budgets), engine (export target), brief for AI. | style; platform; engine; brief |
| apply_platform | Apply the workspace platform budgets (polygon profile and number of LODs) to every object of the workspace. New objects get them automatically; this updates the existing ones. Variants follow their objects. | — |
| apply_style | Apply the workspace visual style to every object of the workspace (realism returns each object to the style of its preset). New objects get it automatically. Variants follow their objects. | — |
Что можно попросить
Пишите агенту обычными словами — он сам выберет команды.
- «Покажи, какие есть пальмы, и скачай кокосовую в assets/trees»
- «Сделай три разных дуба (варианты 1, 2 и 3) и положи их в проект»
- «Подбери берёзу, у которой LOD0 меньше 20 000 треугольников, и скачай её»
- «Скачай ель в стиле low-poly для мобильной игры»
- «Добавь в моё открытое пространство старый дуб и два варианта берёзы и покажи снимок»
- «Сколько у меня осталось скачиваний?»
Где собирается модель
Редактор открыт на сайте — агент работает в вашем пространстве командами редактора ниже: любой стиль, наборы, биомы, лепка и все форматы движков. Файлы собирают серверы FoliMesh, скачивания списываются с вашего баланса.
Войдите и откройте редактор — агенты подключатся сами. Значок покажет, что агент работает; там же пауза и отключение.
Редактор закрыт — export_glb собирает одну породу на серверах FoliMesh за несколько секунд (стили «Реализм» и «Low-poly»).
У export_glb нет рисованных стилей, сказочных вариантов, наборов и биомов — для них откройте редактор и используйте команды редактора.
Просите обычными словами: для быстрого одного дерева агент возьмёт export_glb, для всего остального — команды редактора.
GLB 2.0. Уровни детализации — отдельными узлами <вид>_s<вариант>_LOD<n>_bark|leaves; фото-текстуры коры и листвы с картами нормалей; ветер в TEXCOORD_1/2; затенение кроны — в цвете вершин; дистанции LOD и простая коллизия (капсулы и коробки) — в extras. Открывается в Unity, Unreal, Godot, Blender и любом движке с glTF.
Тарифы и лимиты
Скачивания списываются с того же баланса, что и в редакторе. Лимиты защищают от злоупотреблений и обычной работе не мешают.
| Indie | Pro | Studio | |
|---|---|---|---|
| Ключей API | 2 | 10 | 50 |
| Вызовов MCP в минуту | 60 | 120 | 300 |
| Сборок GLB в минуту | 4 | 8 | 20 |
| Сборка без открытого редактора | да | да | да |
| Приоритет в очереди сервера | — | — | да |
Годовые тарифы — с теми же лимитами. Отменённая подписка работает до конца оплаченного периода.
Частые вопросы
Агент пишет «Invalid API key»
Проверьте, что ключ скопирован целиком (fm_live_ и 48 символов) и что подписка Indie, Pro или Studio действует. Отменённая подписка работает до конца оплаченного периода.
«No downloads left»
Скачивания закончились — пополните баланс пакетом на странице тарифов. Повтор той же модели бесплатен.
Сборка идёт долго или «timed out»
Первая модель на сервере — 5–10 секунд (сервер просыпается), следующие — 2–5 секунд. Командам редактора нужен открытый редактор на сайте — иначе агент получит «editor_closed».
Можно ли использовать модели в коммерческих играх?
Да: на платных тарифах модели идут по коммерческой лицензии FoliMesh — так же, как при скачивании из редактора.
Как отозвать ключ?
Аккаунт → «API-ключи и MCP» → удалите ключ. Агент с этим ключом сразу перестанет работать.
Безопасно ли давать агенту ключ?
Ключ открывает только команды MCP: смотреть породы, считать полигоны, работать в вашем открытом редакторе и скачивать модели с вашего баланса. Платить, менять аккаунт и видеть личные данные он не может. Храните его в настройках клиента, а не в коде проекта.