# Introduction Vyse creates and maintains the Minecraft resource packs for your server: custom blocks, items, entities, modified vanilla blocks, textures, and exports for ItemsAdder. ## What Vyse Does - **A workspace per project.** You organize your assets into categories and folders, view them in 3D, and manage their textures directly from the project. - **Ready-to-use exports.** A click on **Quick export** generates the resource pack and server plugin configuration. - **A plugin for your server.** The Java plugin imports the latest export directly onto your Paper or Spigot server. - **An API and MCP server.** A script or AI assistant can work within your projects as you do, without using the interface. ## Concepts | Concept | What it is | |---|---| | Organization | Your studio or server. It has members, a subscription, and projects. | | Project | A pack. Its type is **JAVA** or **BEDROCK**. A Java project also has a Bedrock view. | | Category | A grouping of assets: **Custom Pack**, blocks from the **Vanilla Pack**, or vanilla textures. | | Folder | In the Custom Pack, a folder contains blocks, items, entities, or items depending on its type. | | Asset | A block, an item, an entity. Each asset has an identifier (UUID) and a slug. | > **Note:** Every element in Vyse has a unique identifier (UUID). The interface hides them; the API and MCP server use them everywhere. ## Next Steps - [Quick Start](/get-started/quick-start): your organization and your first project. - [Organize Vanilla Pack Blocks](/first-steps/organizing-vanilla-pack-blocks) - [Replace a Vanilla Texture](/first-steps/replace-a-vanilla-texture) - [Install the Java Plugin](/install/install-the-java-plugin) - [API Keys](/automate/api-keys): connect a script or AI. # Quick Start Create your organization, your first project, and your first folder. > **Video coming soon:** a demonstration video for this step is on its way. In the meantime, follow the steps below. ## 1. Create an account Open `https://vyse.cloud/login`, click **Create one**, and choose an email address and password, or sign in with Google. ## 2. Create an organization On first login, Vyse asks for the name of your organization: that of your server or your studio. You are the owner. > **Note:** The organization subscription determines the number of projects and assets. An organization without an active subscription cannot create a project. ## 3. Create a project Click **Create project**, located at the top of the organization settings. Give it a name (3 to 20 characters) and choose its type: | Type | For | |---|---| | **JAVA** | A Java server with ItemsAdder. The project also has a Bedrock view. | | **BEDROCK** | An old standalone Bedrock project. | Choose **JAVA** if you are unsure. ## 4. Create a category and folder In the left sidebar, click **+** next to **Categories**. A **Custom Pack** category contains your creations. Add a folder to it with the **+** of the category, and choose what it contains: blocks (`CUSTOM_BLOCK`), furnishings (`FURNITURE`), entities, or items. The same result in one command, with an [API key](/automate/api-keys): ```bash curl -X POST "https://api.vyse.cloud/api/v1/projects//categories" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"name": "Furniture", "type": "CUSTOM_PACK"}' ``` ## Next steps - [Your first block](/first-steps/your-first-block) - [Your first furnishing](/first-steps/your-first-furniture-item) - [Install the Java plugin](/install/install-the-java-plugin) # Why Vyse Vyse exists so that you spend your time creating Minecraft content, not repairing the process around it. ## The problem A resource pack grows fast: models, textures, block states, JSON files, exports for each server. Without a shared framework, everyone stores files their own way, pack versions travel by chat, and a small change becomes a long debugging session. Vyse brings the pieces of pack production together in **a single environment**, designed around the way a pack is actually assembled. ## What Vyse changes - **A structure ready for production.** Assets, states, textures and exports stay connected, from the first draft to the final pack. - **Less JSON by hand.** You decide visually; Vyse handles the repetitive configuration that follows. - **A catalog where everything can be found.** Your custom resources and vanilla references are searched in the same place. - **Texture work in context.** You place, inspect and organize your textures on a visual atlas. - **States you can trust.** Variants and state data are validated before they become a manual correction problem. - **Clean delivery to the server.** One click on **Quick export** produces the pack and the plugin configuration, and the Java plugin imports them on your server. ## Who it is for | Profile | What Vyse brings you | |---|---| | Independent creator | Go from an idea to a tested resource without losing time in files: create faster, test sooner, ship clean. | | Server or studio | Keep control: a common organization, less repetition, predictable deliveries. | | Team | A shared workspace and one source of truth as the project grows in assets, versions and people. | ## Working as a team This is where Vyse stands out the most. When several people contribute to the same pack: - **A shared workspace.** Everyone sees the same project structure, instead of passing folders and pack versions around. - **Clear handoffs.** Context stays attached to the asset: a contributor picks up work without a long explanation. - **Fewer conflicts.** Divergent changes are spotted earlier, and the team stays aligned on the version that matters. - **Readable roles.** Everyone gets the context and access they actually need. See [Permissions](/reference/permissions). - **One catalog.** The same asset library, available to every contributor. - **Reliable reviews.** States, textures and resources are reviewed from the same source before delivery. ## From start to finish 1. **Start with what you have.** Bring your models and textures into the right project, or create a block without starting from an empty folder. 2. **Keep the project readable.** Organize resources, see how models, textures and states connect, invite your team and follow how the project changes. 3. **Get to Minecraft faster.** Generate the project output without rebuilding folders by hand, then check everything before delivery. ## Frequently asked questions ### Does Vyse replace my model or texture editor? No. Vyse organizes, connects, validates and exports your resources; you keep creating your textures with your own tools. ### Java or Bedrock? A project is either **JAVA** or **BEDROCK**. For now, the Bedrock projection of a Java project saves your settings but does not yet produce a Bedrock pack. See [Java and Bedrock](/reference/java-and-bedrock). ### Which servers can I import my pack on? The Java plugin imports the latest export on a Paper or Spigot server. See [Install the Java Plugin](/install/install-the-java-plugin). ### Can I automate my work? Yes. The public API and the MCP server let a script or an AI assistant work in your projects just like you. See [API keys](/automate/api-keys). ## Next steps - [Introduction](/get-started/introduction) - [Quick Start](/get-started/quick-start): your organization and your first project. - [Your first block](/first-steps/your-first-block) # Install the Java Plugin The Vyse plugin imports the latest export of your project directly onto your server, without manual downloading. > **Video coming soon:** a demonstration video for this step is on its way. In the meantime, follow the steps below. ## Before you begin - A **Paper** or **Spigot** server compatible with the version of the distributed JAR. Check its Minecraft version before installation. - **ItemsAdder** installed if you are exporting a custom pack. - A Vyse project with at least one export (**Quick export**). ## 1. Download Ask your organization's administrator for the plugin JAR published for your installation. The backend distribution channel exposes the active version via `/api/version/plugin/download` to connected users and servers equipped with the plugin token. Verify that this version contains the commands you need. ## 2. Install 1. Stop the server. 2. Copy `vyse-java-plugin.jar` into the `plugins/` folder. 3. Start the server. The plugin creates `plugins/VyseImplementation/config.yml`. ## 3. Configure Open `config.yml` and fill in your organization's token and project: ```yaml filename="plugins/VyseImplementation/config.yml" organization-token: "" current-project: "" projects: [] export-realtime-enabled: true ``` The **plugin token** is found in the organization settings, under the **Organization Plugin Token** section (visible to the owner). The project ID is its UUID. > **Important:** The plugin token is not an API key. It is only used by the plugin. For a script or AI, create an [API key](/automate/api-keys). Reload the configuration: /vyse reload ## 4. Import /vyse import latest The plugin downloads and installs the latest export. With `export-realtime-enabled: true`, a clickable message appears in chat with each new export. ## Commands | Command | Role | Permission | |---|---|---| | `/vyse import latest` | Imports the latest export | `vyse.import` | | `/vyse project` | Selects the current project | `vyse.project` | | `/vyse info` | Provides the Block Inspector tool; right-click inspects a block | `vyse.info` | | `/vyse waitinglist` | Provides a blaze rod: right-click adds the block to the Vanilla Pack waitlist | `vyse.info` | | `/vyse reload` | Reloads `config.yml` | `vyse.reload` | | `/vyse update` | Updates the plugin | `vyse.update` | | `/vyse version` | Displays the version | – | To use the waitlist, also set `state-suggestion-enabled: true` in `config.yml`. Its availability depends on the version actually installed on the server and access to the Vyse API. ## Next steps - [Your first block](/first-steps/your-first-block) - [Your first supply](/first-steps/your-first-furniture-item) - [Organize Vanilla Pack blocks](/first-steps/organizing-vanilla-pack-blocks) # Your first block Create a custom block, from texture to the block placed in-game. > **Video coming soon:** a demonstration video for this step is on its way. In the meantime, follow the steps below. ## Before you begin You need a **JAVA** project and a `CUSTOM_BLOCK` folder. See [Getting started](/get-started/quick-start). ## 1. Open the folder Click the folder in the left sidebar. The workspace opens: 3D preview at top-left, preparation area (**Staging area**) on the right, atlas at bottom. ## 2. Add textures Click **Add textures** at the bottom and choose your PNGs. Vyse places them in the atlas. A texture already present (even with identical content) is reused. ## 3. Create the block Click **Add block(s)**, choose the face layout, assign textures, then **Save staged changes**. | Layout | Faces to fill | |---|---| | `UNITED` | `ALL` : one texture everywhere | | `COLUMN` | `ENDS` (top, bottom), `SIDES` | | `FURNACE` | `FRONT`, `BACK`, `SIDES`, `ENDS` | | `LOOM` | `FRONT`, `SIDES`, `TOP`, `BOTTOM` | | `FLOORING` | `TOP`, `BOTTOM`, `SIDES` | | `CROSS` | `SIDES` (leaves) | | `CUSTOM` | `NORTH`, `SOUTH`, `EAST`, `WEST`, `UP`, `DOWN` | Multiple texture sets on the same block make it an **alternative** block: Minecraft chooses one at random, based on its weight (`weight`). ## 4. Export and import Click **Quick export**, then on the server: /vyse import latest ## The same thing with the API ```bash # 1. The texture (PNG in base64) curl -X POST "https://api.vyse.cloud/api/v1/projects//textures" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"slug": "polished_stone", "objectType": "BLOCK_CUSTOM", "pngBase64": "iVBORw0KGgo..."}' # 2. The block, with the texture id curl -X POST "https://api.vyse.cloud/api/v1/projects//java/directories//blocks" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"name": "Polished stone", "textureSets": [{"presetLayout": "UNITED", "textures": {"ALL": ""}}]}' ``` With an AI assistant connected to the [MCP server](/automate/the-mcp-server), just ask: "Create a Polished stone block with this texture in the Stones folder." ## Block settings | Field | Values | Effect | |---|---|---| | `blockType` | `REAL_NOTE` (default), `REAL`, `REAL_TRANSPARENT`, `REAL_WIRE` | Server block used: musical block, chorus plant (transparent textures) or trigger wire | | `directionalPlacement` | `NONE`, `ALL`, `FURNACE`, `LOG`, `DROPPER` | Orientation based on how the player places the block | | `wireVariantCount` | 1 and more | `REAL_WIRE` only: reserved states | ## Next steps - [Your first supply](/first-steps/your-first-furniture-item) - [The API](/automate/the-api) # Your first furniture item Transform a Blockbench model into a placeable in-game furnishing: a chair, a table, a lamp. > **Video coming soon:** a demonstration video for this step is on its way. In the meantime, follow the steps below. ## Before you begin - A `FURNITURE` type folder within a **JAVA** project. - A Blockbench model (`.bbmodel`) with its textures integrated. ## 1. Open the folder ## 2. Import the model Click **Add furniture(s)** and select the `.bbmodel`. Vyse extracts the textures into your project explorer and verifies the model. > **Note:** a rejected model is returned with a reason, for example "BBModel folder depth is too large for furniture". Correct the model in Blockbench and re-import it. ## 3. Configure the furnishing | Setting | API Field | Values | |---|---|---| | Type | `modelType` | `FURNITURE` (default) or `REAL_WIRE` (exported as a wire block) | | Light | `lightSource` | 0 to 15 | | Seat | `seat` | `sitPoint` (height in blocks), `frontView`, `bodyLock` | | Scale | `scale` | 0 to 4 | | Hitbox | `hitbox` | 3 × 3 × 3 grid, see [Hitboxes](/first-steps/hitbox-java-and-bedrock) | Click **Save staged changes**. ## The same thing with the API ```bash curl -X POST "https://api.vyse.cloud/api/v1/projects//java/directories//furniture" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d @- <<'JSON' { "name": "Oak chair", "bbModel": "", "lightSource": 4, "seat": {"sitPoint": 0.5, "frontView": true, "bodyLock": false}, "hitbox": [ [[0,0,0],[0,0,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]] ] } JSON ``` The response contains the furnishing, its extracted textures, and the calculated box from the hitbox: ```json { "id": "10c8bf86-...", "platform": "java", "modelType": "FURNITURE", "textures": ["..."], "hitbox": { "grid": [[[0,0,0],[0,0,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]]], "cuboid": {"length": 1, "width": 1, "height": 2, "lengthOffset": 0.0, "widthOffset": 0.0, "heightOffset": 0.0} }, "lightSource": 4 } ``` To modify later, send only what changes. `null` removes a setting: ```bash curl -X PATCH "https://api.vyse.cloud/api/v1/projects//java/furniture/" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"lightSource": null, "scale": 1.5}' ``` ## Next steps - [Hitboxes, Java and Bedrock](/first-steps/hitbox-java-and-bedrock) - [Java and Bedrock](/reference/java-and-bedrock) # Organizing Vanilla Pack Blocks This guide helps you add an existing Minecraft block to your project, then configure its models and states. > **Video coming soon:** a demonstration video for this step is on its way. In the meantime, follow the steps below. ## Before You Begin Open a **JAVA** project, then the **Vanilla Pack** space. In the sidebar, choose the **Blocks** tab. The categories in this section contain blocks directly: you do not need to create a folder for each one. A **working name** helps your team identify the block in Vyse. The **Minecraft name** (`oak_planks`, for example) remains the reference used by the pack. Renaming the first does not change the second. ## 1. Organizing a Block 1. Click **+** next to **Categories** and name the category, for example "Roofs". 2. Click **+** next to this category. 3. Search for the Minecraft name of the block, select it, then give it a working name. 4. Open the block from the category to view its configuration. The **...** menu of a block allows you to rename it, change its Minecraft block, duplicate it, or delete it. If multiple copies of the same block exist, the copy marked **Copy** does not serve for export until you choose **Use for export**. ## 2. Choosing Between Simple Model and Blockstate In **Block configuration**, the **Models** tab is used for simple replacements of a model or its textures, without changing the rules of the original states. Select a model to see its preview and texture locations, then save the changes in the preparation area with **Save staging**. The **Blockstate** tab presents the block's states. The **Variant** or **Multipart** pill indicates the currently used type. **Add variant** appears for a variant blockstate; **Add multipart** appears for a multipart blockstate. These two forms do not mix within the same blockstate. You can search for a state or property, filter state categories, and switch from **Grouped** to **Flat**. Open a state to see the models that compose it. A variant state uses a condition like `facing=north,half=bottom` or `default`. A multipart state uses a JSON condition; `{}` means a part always present. > **Note:** an original disabled model remains visible for reference. If the state has an added active model, the preview prioritizes this model. Check the preview before saving. ## 3. Preparing and Saving Models The preparation area allows you to add a **Block preset** or a **Custom model**. Choose the model, assign textures in its locations, then verify its render. For models of a state, you can also set X and Y rotations, weight, **UV lock**, and **Ambient occlusion**. Weight is used to prioritize several alternative models of the same state. A higher weight makes a model more probable when Minecraft chooses the alternative. Click **Save staging** to save the modifications. The original game textures and the textures you add to the project have different roles. To directly replace a vanilla texture, follow [Replace a vanilla texture](/first-steps/replace-a-vanilla-texture). ## 4. Using the Waiting List The **Waiting list**, at the bottom of the sidebar, groups blocks and states sent from the Java plugin to the configured server project. Click an entry to open its block, or add this block to a category if it is not yet there. Click **×** to remove an entry. This list does not serve as history. The `/vyse waitinglist` command of the plugin gives a dedicated blaze rod: right-clicking a block adds it to the list. The **Block Inspector** obtained with `/vyse info` also allows sending separately a block or a state from its chat actions. The server must use a version of the plugin containing these commands, with `current-project`, `organization-token`, and `state-suggestion-enabled: true` configured. > **Important:** the presence of these commands in local code does not prove they are installed on your server. Check the plugin version before promising the waiting list to your users. ## Next Steps - [Replace a vanilla texture](/first-steps/replace-a-vanilla-texture) - [Install the Java plugin](/install/install-the-java-plugin) - [Java and Bedrock](/reference/java-and-bedrock) # Replace a vanilla texture This guide explains how to declare a Minecraft texture in the Vanilla Pack and associate it with a texture from your project. > **Video coming soon:** a demonstration video for this step is on its way. In the meantime, follow the steps below. ## 1. Add the source texture In the **Vanilla Pack** space, choose **Textures** at the top of the sidebar. You can add an entry to **Root** or create a category with the **+** button of **Texture categories**. Click **+** in the desired location, search for a Minecraft catalog texture, select its original name, and give it a useful display name for your team. For example, an entry named "Copper Trapdoor" can remain linked to `block/exposed_copper_trapdoor`: the display name does not change the target of the replacement. The **…** menu of the entry allows you to rename it, move it to another category or to **Root**, and delete it from the project. Deletion removes this configuration from Vyse; it does not remove the original Minecraft texture. ## 2. Assign the override 1. Open the added texture from the sidebar. 2. Compare **Source**, which shows the targeted Minecraft texture, and **Override**, which shows the currently selected replacement texture. 3. Select the **Override** location, then choose a texture from your project in the **Block Atlas**. 4. Verify the thumbnail and click **Save**. **Cancel** unregisters the choice. The **Pending** badge indicates that no replacement texture is registered; **Overridden** indicates that an override exists. An entry can therefore remain in a category without replacing anything as long as its **Override** location is empty. > **Note:** Texture categories are distinct from block categories. You can organize both lists freely without changing the targeted Minecraft name or a block's model. ## 3. Verify the result Reopen the entry and check **Source** and **Override**. If the chosen image does not appear, first verify that it is present in the Block Atlas and that you clicked **Save**. Before distributing a pack, run an export and verify the result in Minecraft. ## Next steps - [Organize Vanilla Pack blocks](/first-steps/organizing-vanilla-pack-blocks) - [Your first custom block](/first-steps/your-first-block) - [Install the Java plugin](/install/install-the-java-plugin) # Hitbox, Java and Bedrock There are two types of boxes: the Java hitbox, made of barrier blocks, and for Bedrock, a collision box and a selection box. ## Java: The Hitbox Grid The Java hitbox is a 3-layer × 3-row × 3-cell grid. Each cell is either `0` (empty) or `1` (barrier block). - Layer `0` is below the item, layer `1` at its level, and layer `2` above it. - The center cell of layer `1` is the block of the item itself. - Filled cells must form a square base box. A chair that is two blocks high: ```json [ [[0,0,0],[0,0,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]] ] ``` Vyse infers the exported box (`cuboid`): length, width, height, and offsets. This field is read-only. ## Bedrock: Collision and Selection On Bedrock, a block has two boxes, in pixels (1/16 of a block), measured from the center of the bottom of the block: | Box | Bedrock Component | Role | Limits | |---|---|---|---| | `collisionBox` | `minecraft:collision_box` | What stops the player | x and z from -8 to 8, y from 0 to 24 | | `selectionBox` | `minecraft:selection_box` | The outline shown when aiming at the block | x and z from -8 to 8, y from 0 to 16 | A box is `{"origin": [x, y, z], "size": [x, y, z]}`. A full block has origin `[-8, 0, -8]` and size `[16, 16, 16]`. A size of `[0, 0, 0]` means "no box". > **Note:** these settings never modify the Java item. They are stored separately, in the Bedrock view of the project. For an item, Vyse provides `suggestedCollisionBox`, inferred from the Java hitbox (limited to 24 pixels high): ```bash curl "https://api.vyse.cloud/api/v1/projects//bedrock/assets/furniture/" \ -H "Authorization: Bearer vyse_..." ``` ```json { "platform": "bedrock", "kind": "FURNITURE", "exportEnabled": true, "conversionStatus": "CONFIGURATION_REQUIRED", "collisionBox": null, "selectionBox": null, "suggestedCollisionBox": {"origin": [-8.0, 0.0, -8.0], "size": [16.0, 24.0, 16.0]} } ``` To apply it, with a selection box of half a block: ```bash curl -X PATCH "https://api.vyse.cloud/api/v1/projects//bedrock/assets/furniture/" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"collisionBox": {"origin": [-8,0,-8], "size": [16,24,16]}, "selectionBox": {"origin": [-8,0,-8], "size": [16,8,16]}}' ``` A box outside limits is rejected with a reason, for example "selectionBox y must stay between 0 and 16 pixels (origin 0 + size 24)". `null` removes a box. > **Important:** the Bedrock view stores these settings, but Vyse does not yet produce a complete Bedrock pack. The Bedrock export of a Java project remains rejected until it can be made complete. ## Next Steps - [Java and Bedrock](/reference/java-and-bedrock) - [The API](/automate/the-api) # API Keys An API key allows a script or AI assistant to work within your organization, with your permissions, without going through the interface. ## Create a key 1. Open your user settings from your profile. 2. In **API keys and AI assistants**, select the relevant organization. 3. Give a name to the key (e.g., "Claude Desktop"), choose its access level, duration, and authorized project(s), then click **Create key**. 4. Copy the key: it starts with `vyse_` and **is shown only once**. Test it: ```bash curl https://api.vyse.cloud/api/v1/context -H "Authorization: Bearer vyse_..." ``` ## Access levels | Access | Scopes | Authorizes | |---|---|---| | **Read** | `read` | Read projects, hierarchy, assets, textures, settings. | | **Read & write** | `read`, `write` | Also create, modify, and delete categories, folders, assets, textures, Bedrock settings. | | **Read, write & manage** | `read`, `write`, `manage` | Also change project configuration and create projects. | Scopes are cumulative: `write` includes `read`, `manage` includes both. ## A key acts with your permissions, never more A key belongs to **you** and **an organization**. On each call, Vyse checks the key's scope **and** your actual role within the project. Therefore, a `manage` key created by a simple member cannot change project configuration: it requires the **MANAGER** role. A key is limited to projects checked by default. Check **All projects I can access** only if the assistant must be able to work in all your accessible projects. A limited key cannot create a project. > **Note:** If you leave the organization, your keys stop working immediately. If your role decreases, your keys lose corresponding rights at the same time. ## Duration, revocation, tracking - Durations: 7 days, 30 days, 90 days (default), 1 year, or no expiration. - **Revoke** cuts the key off immediately. - The list shows the start of the key (`vyse_k1a2b3c4…`), its access level, its projects, its owner, its last use, and its expiration. - In your user settings, you see and revoke your own keys. The API also allows managers and owners to see and revoke organization keys. - Vyse keeps only the key fingerprint, never the key itself. ## Via API (with an application session) ```bash # List GET /api/organizations//api-keys # Create: response contains "token", shown once POST /api/organizations//api-keys {"name": "CI", "scopes": ["write"], "projectIds": [], "expiresInDays": 30} # Revoke DELETE /api/organizations//api-keys/ ``` These routes serve the application and require a user session. An API key cannot create other keys. > **Important:** the **plugin token** (section **Organization Plugin Token**) is something else: it serves only the Minecraft plugin and does not open the v1 API. ## Next steps - [The API](/automate/the-api) - [The MCP server](/automate/the-mcp-server) - [Permissions](/reference/permissions) # The API The v1 API allows a script, application, or AI without MCP to read and modify your Vyse projects. It is versioned: what is listed here does not change without notice. ## Getting Started ```bash curl https://api.vyse.cloud/api/v1/context -H "Authorization: Bearer vyse_..." ``` The response tells you where you are: your organization, your scopes, and each project with its ID, type, and what you can do there. ```json { "apiVersion": "v1", "key": {"id": "...", "name": "Claude Desktop", "scopes": ["read", "write", "manage"], "restrictedToProjects": []}, "organization": {"id": "...", "name": "E2E Studio", "slug": "e2e-studio"}, "projects": [{ "id": "2b182a39-...", "name": "Medieval Pack", "type": "JAVA", "platforms": ["java", "bedrock"], "atlasLayout": "LEGACY", "access": {"role": "OWNER", "external": false, "canRead": true, "canWrite": true, "canManage": true} }], "hints": ["..."] } ``` ## Address and Authentication The API lives under `https://api.vyse.cloud/api/v1`. Each request sends the key, either via: ```text Authorization: Bearer vyse_... X-Vyse-Api-Key: vyse_... ``` The front API (`/api/...` without `v1`) serves the web application. It is not stable and rejects API keys; the v1 API rejects user sessions. The two do not exchange the same objects: the v1 API has its own formats, organized into three families. | Family | Route Prefix | For | |---|---|---| | Common | `/api/v1/...` | Context, projects, tree structure, categories, folders, textures, global search | | Java | `/api/v1/projects/{id}/java/...` | Blocks, supplies, entities, vanilla blocks of a Java project | | Bedrock | `/api/v1/projects/{id}/bedrock/...` | Bedrock settings for blocks and supplies | See [Java and Bedrock](/reference/java-and-bedrock). ## Context and Projects | Method | Route | Scope | |---|---|---| | GET | `/context` | read | | GET | `/projects` | read | | POST | `/projects` | manage | | GET | `/projects/{projectId}` | read | | GET | `/projects/{projectId}/tree` | read | | GET | `/projects/{projectId}/settings` | read | | PATCH | `/projects/{projectId}/settings` | manage | The tree structure gives categories, their folders, and the number of assets: ```bash curl "https://api.vyse.cloud/api/v1/projects//tree" -H "Authorization: Bearer vyse_..." ``` ```json { "project": {"id": "...", "type": "JAVA"}, "categories": [{ "category": {"id": "61e9...", "name": "Furniture", "type": "CUSTOM_PACK"}, "directories": [ {"id": "9475...", "name": "Stones", "type": "CUSTOM_BLOCK", "assetCount": 2}, {"id": "d70a...", "name": "Tables", "type": "FURNITURE", "assetCount": 1} ] }] } ``` Changing a project's configuration (scope `manage`, role **MANAGER**): ```bash curl -X PATCH "https://api.vyse.cloud/api/v1/projects//settings" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"activeDefaultPack": false, "glslEmissive": true, "textureExportReference": "SLUG"}' ``` | Field | Values | |---|---| | `name` | 3 to 20 characters | | `activeCustomPack`, `activeDefaultPack` | Export the custom pack, the vanilla pack | | `textureExportReference` | `SLUG` or `UUID`: names of exported texture files | | `serverExportPlatform` | `ITEMS_ADDER`. `NEXO` returns `503` while Nexo is disabled. | | `glslEmissive` | Emissive shaders | ## Categories and Folders | Method | Route | Scope | |---|---|---| | POST | `/projects/{projectId}/categories` | write | | GET, PATCH, DELETE | `/categories/{categoryId}` | read, write, write | | GET, POST | `/categories/{categoryId}/directories` | read, write | | GET, PATCH, DELETE | `/directories/{directoryId}` | read, write, write | ```bash curl -X POST "https://api.vyse.cloud/api/v1/categories//directories" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"name": "Tables", "type": "FURNITURE"}' ``` `PATCH` renames (`{"name": "..."}`). `DELETE` moves the element and its content to the project trash; it can be restored from the application. ## Textures | Method | Route | Scope | |---|---|---| | GET | `/projects/{projectId}/textures?objectType=&query=&limit=` | read | | POST | `/projects/{projectId}/textures` | write | | GET | `/projects/{projectId}/textures/{textureId}?includeContent=true` | read | ```bash curl -X POST "https://api.vyse.cloud/api/v1/projects//textures" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"slug": "oak_table_top", "objectType": "FURNITURE", "pngBase64": "iVBORw0KGgo..."}' ``` `objectType`: `BLOCK_CUSTOM` (block faces), `FURNITURE`, `ENTITY`, `ITEM`, `BLOCK`, `JAVA_MODEL`. Vyse applies the texture with assets of the relevant type; identical content is reused. Max 10 MB. ## Java Assets These routes apply only to **JAVA** projects. On a Bedrock project, they return `409` with the route to use. | Method | Route | Scope | |---|---|---| | GET | `/projects/{p}/java/blocks?directoryId=` | read | | POST | `/projects/{p}/java/directories/{directoryId}/blocks` | write | | GET, PATCH, DELETE | `/projects/{p}/java/blocks/{blockId}` | read, write, write | | GET | `/projects/{p}/java/furniture?directoryId=&includeModel=` | read | | POST | `/projects/{p}/java/directories/{directoryId}/furniture` | write | | GET, PATCH, DELETE | `/projects/{p}/java/furniture/{furnitureId}` | read, write, write | | GET | `/projects/{p}/java/entities?directoryId=&includeModel=` | read | | POST | `/projects/{p}/java/directories/{directoryId}/entities` | write | | GET, PATCH, DELETE | `/projects/{p}/java/entities/{entityId}` | read, write, write | | GET, POST | `/projects/{p}/java/vanilla-blocks` | read, write | | GET, PATCH, DELETE | `/projects/{p}/java/vanilla-blocks/{blockstateId}` | read, write, write | An asset is created in a folder of the correct type: a block in a `CUSTOM_BLOCK` folder, otherwise `409`. Full examples: [Your first block](/first-steps/your-first-block), [Your first supply](/first-steps/your-first-furniture-item). Adding a vanilla block to the vanilla pack (category `VANILLA_PACK`): ```bash curl -X POST "https://api.vyse.cloud/api/v1/projects//java/vanilla-blocks" \ -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \ -d '{"blockName": "oak_planks", "categoryId": ""}' ``` When multiple copies of a vanilla block exist, only one provides the exported files: `PATCH .../vanilla-blocks/{id}` with `{"exportSelected": true}`. These routes do not edit models, blockstate rules, or vanilla texture overrides. Use the Vyse interface for these settings; see [Organize Vanilla Pack Blocks](/first-steps/organizing-vanilla-pack-blocks) and [Replace a Vanilla Texture](/first-steps/replace-a-vanilla-texture). ## Bedrock Assets | Method | Route | Scope | |---|---|---| | GET | `/projects/{p}/bedrock/assets?kind=block\|furniture` | read | | GET, PATCH | `/projects/{p}/bedrock/assets/{kind}/{assetId}` | read, write | `PATCH` accepts `exportEnabled`, `collisionBox`, and `selectionBox`. See [Hitboxes](/first-steps/hitbox-java-and-bedrock). ## Global Search Don't know which project an asset is in? Search across all your projects at once: ```bash curl "https://api.vyse.cloud/api/v1/assets?query=stone&kind=BLOCK" -H "Authorization: Bearer vyse_..." ``` ```json [{ "id": "2a8afd05-...", "kind": "BLOCK", "name": "Polished stone", "location": {"projectId": "...", "projectName": "Medieval Pack", "projectType": "JAVA", "categoryName": "Furniture", "directoryName": "Stones"}, "platforms": ["java", "bedrock"], "links": { "asset": "/api/v1/assets/2a8afd05-...", "java": "/api/v1/projects/.../java/blocks/2a8afd05-...", "bedrock": "/api/v1/projects/.../bedrock/assets/block/2a8afd05-..." } }] ``` `GET /api/v1/assets/{assetId}` locates any block, supply, or entity by its ID alone. ## Model Conversions Without saving anything: | Route | Input | Output | |---|---|---| | `POST /tools/java/bbmodel-to-java-model` | `{"bbModel": "..."}` | `{"javaModel": "..."}` | | `POST /tools/java/java-model-to-bbmodel` | `{"javaModel": "...", "textures": {"block/stone": ""}}` | `{"bbModel": "...", "missingTextures": []}` | ## Errors All errors have the same format, with a message saying what to fix: ```json {"status": 409, "error": "CONFLICT", "message": "Directory d70a... holds FURNITURE assets, not CUSTOM_BLOCK. Create the asset in a CUSTOM_BLOCK directory.", "requestId": "req_...", "timestamp": "..."} ``` See [Errors](/reference/errors). ## Next Steps - [The MCP Server](/automate/the-mcp-server) - [Java and Bedrock](/reference/java-and-bedrock) - [Permissions](/reference/permissions) # The MCP Server The Vyse MCP server allows a compatible AI assistant to read and modify resources covered by the public API: create a custom block, configure a furnishing, or set up a project, without going through the interface. The exposed tools use Vyse services, such as the [API](/automate/the-api). Their coverage remains more limited than that of the interface; after an operation, verify its result in the project. ## Connecting an assistant The MCP server address is: ```text https://api.vyse.cloud/mcp ``` First create an [API key](/automate/api-keys), then: ### Claude Code ```bash claude mcp add --transport http vyse https://api.vyse.cloud/mcp --header "Authorization: Bearer vyse_..." ``` ### Clients accepting an HTTP URL and custom headers Add the server to the client's MCP configuration: ```json filename="mcp.json" { "mcpServers": { "vyse": { "type": "http", "url": "https://api.vyse.cloud/mcp", "headers": {"Authorization": "Bearer vyse_..."} } } } ``` For a client that can only run local commands, the following example uses `mcp-remote`. Compatibility may vary by application: ```json filename="claude_desktop_config.json" { "mcpServers": { "vyse": { "command": "npx", "args": ["mcp-remote", "https://api.vyse.cloud/mcp", "--header", "Authorization: Bearer vyse_..."] } } } ``` > **Note:** The assistant only sees tools permitted by the key. With a **Read** key, it sees no write tools. ## How the assistant orients itself The server gives instructions at connection. The assistant: 1. calls `get_context`: organization, scopes, projects with their ID and type; 2. calls `get_project_tree` on the project where it works; 3. uses the `java_*` tools on a **JAVA** project, the `bedrock_*` tools for its Bedrock view, and tools without prefix everywhere; 4. deposits textures before creating blocks that use them. It therefore does not need you to give it credentials: ask in plain language, for example "In Medieval Pack, create a oak chair from this model, with a hitbox of two blocks and a light level of 4". ## Example walkthrough with an assistant For a first verification without modification, ask: "List my Vyse projects and show the categories of the Medieval Pack project." With a **Read** key, the assistant should call `get_context`, find the right project, then call `get_project_tree`. Verify that it cites the chosen project before proceeding. To create a custom block, give it a **Read & write** key, the PNG to use, and a precise instruction: "In the Stones blocks folder of the Medieval Pack project, create a Polished stone block with this PNG on all faces." It must confirm the project and folder, deposit the texture with `upload_texture`, create the block with `java_create_block`, then re-read the result. The file must be accessible to the assistant; the MCP server does not retrieve a file that remains only on your computer. ## The tools | Tool | Role | Scope | |---|---|---| | `get_context` | Where am I: organization, scopes, projects. Call first. | read | | `list_projects` | Accessible projects | read | | `get_project_tree` | Categories and folders of a project | read | | `search_assets` | Search blocks, furnishings, entities in all projects | read | | `get_asset` | Locate an asset from its ID | read | | `create_category`, `rename_category`, `delete_category` | Categories | write | | `create_directory`, `rename_directory`, `delete_directory` | Folders | write | | `list_textures`, `get_texture` | Textures | read | | `upload_texture` | Deposit a PNG (base64) | write | | `java_list_blocks`, `java_get_block` | Blocks | read | | `java_create_block`, `java_update_block`, `java_delete_block` | Blocks | write | | `java_list_furniture`, `java_get_furniture` | Furnishings | read | | `java_create_furniture`, `java_update_furniture`, `java_delete_furniture` | Furnishings, including hitbox | write | | `java_list_entities`, `java_get_entity` | Entities | read | | `java_create_entity`, `java_update_entity`, `java_delete_entity` | Entities | write | | `java_list_vanilla_blocks`, `java_get_vanilla_block` | Vanilla pack | read | | `java_import_vanilla_block`, `java_set_vanilla_block_export`, `java_delete_vanilla_block` | Vanilla pack | write | | `convert_bbmodel_to_java_model`, `convert_java_model_to_bbmodel` | Conversions, no save | read | | `bedrock_list_assets`, `bedrock_get_asset` | Bedrock view | read | | `bedrock_update_asset` | Inclusion, collision and selection boxes | write | | `get_project_settings` | Project configuration | read | | `update_project_settings`, `create_project` | Configuration, new project | manage | Delete tools are marked "destructive": a good client asks for your approval before running them. Any deletion goes to the project trash and can be restored from the application. > **Current limitation:** The MCP tools for the Vanilla Pack know how to list, import, and delete vanilla blocks, then choose the exported copy. They do not yet modify models, blockstate rules, or vanilla texture overrides. For these settings, use the Vyse interface. ## Errors An error returns to the assistant as a tool result, with code and reason, for example `409 Project ... is a BEDROCK project: Java endpoints do not apply...`. The assistant reads it and corrects its call. The errors you are most likely to meet: | Answer | Meaning | What to do | |---|---|---| | `401` on the connection | Missing, revoked, or expired key | Create a new key in your user settings and update the client configuration | | `403 This API key is restricted to other projects` | The key does not cover this project | Create a key that includes the project, or check **All projects I can access** | | `This API key lacks the 'write' scope needed by ...` | The tool needs a higher level than the key has | Use a **Read & write** key (or **Read, write & manage** for configuration) | | `409 Project ... is a BEDROCK project` | A Java tool was called on a Bedrock project | Use the `bedrock_*` tools | A **Read** key sees the 20 read tools only; a write tool called with it is refused and changes nothing. ## Technical details | Element | Value | |---|---| | Transport | Streamable HTTP, stateless: one JSON-RPC request per `POST /mcp`, one JSON response | | Protocol versions supported | `2025-06-18`, `2025-03-26`, `2024-11-05` | | Authentication | `Authorization: Bearer vyse_...` or `X-Vyse-Api-Key` | | Methods | `initialize`, `ping`, `tools/list`, `tools/call` (resources and prompts: empty lists) | | `GET /mcp` | `405`: no server stream | Manual verification, after creating a key with **Read** scope: ```bash curl -X POST https://api.vyse.cloud/mcp \ -H "Authorization: Bearer vyse_..." \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": {"name": "vyse-guide", "version": "1.0"}}}' curl -X POST https://api.vyse.cloud/mcp \ -H "Authorization: Bearer vyse_..." \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -H "MCP-Protocol-Version: 2025-06-18" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "get_context", "arguments": {}}}' ``` After connecting a client, have it call `get_context`, then `get_project_tree` on the chosen project. If one of them fails, check the address, key, and its **Read** scope before entrusting it with modifications. ## Best practices - Give each assistant its own key, named after it. - Grant **Read & write** only to assistants that must create; **manage** remains rare. - Limit the key to the relevant project when possible. - Revoke keys you no longer use. ## Next steps - [API Keys](/automate/api-keys) - [The API](/automate/the-api) - [Java and Bedrock](/reference/java-and-bedrock) # Java and Bedrock The same Vyse asset can be viewed in three ways: neutral, Java, or Bedrock. This page explains which one the API returns and why. ## The Principle A **JAVA** project is the source of truth: its blocks and furnishings are Java documents. Its **Bedrock** view is a live projection: it reads the same assets and only records what is specific to Bedrock (inclusion in the pack, collision boxes, and selection boxes). Modifying the Bedrock view never changes the Java asset. | View | Returned Objects | When | |---|---|---| | Neutral | `AssetSummaryDto` | You are browsing your assets without being part of a project: `/api/v1/assets` | | Java | `JavaBlockDto`, `JavaFurnitureDto`, `JavaEntityDto`, `JavaVanillaBlockDto` | You are working in a Java project: `/projects/{id}/java/...` | | Bedrock | `BedrockAssetDto` | You are configuring the Bedrock output: `/projects/{id}/bedrock/...` | Each typed object carries a `platform` field (`java` or `bedrock`), and each project lists its views in `platforms`. ## According to Project Type | Project Type | `platforms` | Java Routes | Bedrock Routes | |---|---|---|---| | `JAVA` (or legacy project without type) | `["java", "bedrock"]` | Yes | Yes, projection | | `BEDROCK` | `["bedrock"]` | `409`, with the route to use | Yes | ## What Each View of the Same Block Contains | Field | Neutral | Java | Bedrock | |---|---|---|---| | `id`, `name`, `slug` | Yes | Yes | Yes | | Location (project, category, folder) | Complete, with names | `projectId`, `directoryId` | `projectId`, `directoryId` | | Textures, face layout, `blockType` | – | Yes | – | | Java hitbox, light, seat, scale (furnishings) | – | Yes | – | | `exportEnabled`, `collisionBox`, `selectionBox` | – | – | Yes | | Links to other views | `links` | – | – | ## For Integrations and AI - In a Java project, stay on the `java` routes: you will always receive Java objects. - To find an asset without knowing its project, use the neutral view, then follow `links.java` or `links.bedrock`. - Identifiers are the same across all three views. ## Next Steps - [Hitboxes, Java and Bedrock](/first-steps/hitbox-java-and-bedrock) - [The API](/automate/the-api) # Permissions What an API key can do depends on two things at once: its scopes, and the role of its owner in the project. ## The rule An action is permitted only if **all** these conditions are true: 1. the request uses a valid API key, neither revoked nor expired; 2. the key has the requested scope; 3. the project belongs to the key's organization and to its list of projects if it has one; 4. the key's owner has the necessary role in the project; 5. for the content of a category, the owner has access to that category. ## Scope and role | Action | Key scope | Minimum owner role | |---|---|---| | Read | `read` | Project member, or external collaborator for their shared categories | | Create, modify, delete content | `write` | **MEMBER** | | Change project configuration | `manage` | **MANAGER** | | Create a project | `manage`, key not limited to projects | Depends on the organization and subscription rules | > **Note:** an external collaborator only sees shared categories with them, in read-only mode, in the tree, search, and lists. ## What a key never does - Open the frontend API (`/api/...` without `v1`): it responds with `401`. - Create, list, or revoke keys. - Manage members, subscription, or organization. Conversely, an application session never opens `/api/v1` nor `/mcp`. ## Key management | Who | Sees | Revokes | |---|---|---| | Organization member | Their keys | Their keys | | Manager, organization owner | All keys | All keys | ## Next steps - [API Keys](/automate/api-keys) - [Errors](/reference/errors) # Errors Each v1 API error explains what needs to be fixed. AI assistants receive the same message as an MCP tool result. ```json {"status": 400, "error": "BAD_REQUEST", "message": "lightSource must be an integer between 0 and 15, or null to remove it", "requestId": "req_...", "timestamp": "..."} ``` Provide the `requestId` to support if an error seems abnormal. | Code | Meaning | Example message | Action | |---|---|---|---| | `400` | Invalid request | `Unknown field(s): color. Allowed: name, modelType, ...` | Fix the request body | | `401` | No key, or invalid/expired/revoked key | `Invalid, expired or revoked API key` | Check the header, create a new key | | `403` | Insufficient scope or role | `This API key lacks the 'write' scope` ; `The key owner needs the MANAGER role (or higher) in this project` | Use a broader key or request the role | | `404` | Not found, or out of key scope | `Project ... not found in this API key's organization` | Verify the ID with `get_context` or `/tree` | | `409` | Conflict with project state | `Directory ... holds FURNITURE assets, not CUSTOM_BLOCK` ; `... is a BEDROCK project: Java endpoints do not apply` | Use the correct folder or route family | | `503` | Feature disabled | `Nexo is currently disabled. It will be re-enabled soon.` | Try again later | | `500` | Unexpected error | `Unexpected server error` | Contact support with the `requestId` | > **Note:** An element from another organization returns `404`, never `403`: the API does not reveal what the key cannot see. ## Next steps - [The API](/automate/the-api) - [Permissions](/reference/permissions)