# Game assets from Zed’s agent, through a context server

> Add asset gen to Zed as a context server, give it an agent profile of its own, and let the agent ask for characters, sounds and music in one look.

- URL: https://tyrbo.ai/ai-game-assets-for-zed
- Title: AI Game Assets for Zed: a Context Server for Art
- Language: English (en)
- Updated: 2026-11-26

Zed calls an MCP server a context server, and its agent panel can use one the same way it uses its built-in tools. Asset gen’s server gives it one tool, `asset`, which makes a game’s pictures, sheets, models and sounds on your account and writes them into the project. The cut-paper harbor on this page, and the sailor walking along its quay, were asked for with the commands below, the same words the agent would hand the tool.

Send this to your agent

```
Set up Tyrbo asset gen for me so I can make my game's art, sprite sheets, animated characters, 3D models, UI and sound from here, all in one look.
1. Install the CLI: run `npm install -g @tyrbo/asset` (Node 20.11 or later).
2. Add the skill: in Claude Code, run `claude plugin marketplace add https://cdn.jsdelivr.net/npm/@tyrbo/asset/.claude-plugin/marketplace.json`, then `claude plugin install tyrbo-asset@tyrbo`. In another MCP client, add the MCP server `npx -y @tyrbo/asset mcp`. In any other agent, read `asset --help` before the first call.
3. Check it, free: in an empty scratch folder, not my game's, run `asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mock`. It needs no key and writes stand-in files there.
4. Authenticate: ask me to make an asset key at https://app.tyrbo.ai/?from=/asset-generator#/settings/assets (Settings, Asset gen) and to run `asset login` in my own terminal, pasting the key there. Never ask me for the key in chat, and never run `asset login` yourself. Once I have, run `asset spend` to see it works.
Once that's done, let me know when it's ready.
```

[Get an asset key](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)[Read the docs](https://tyrbo.ai/asset-generator/docs)

## Set it up in Zed

1. **Install the CLI** Install the asset command (Node 20.11 or later). `npm install -g @tyrbo/asset`
2. **Add the MCP server to Zed** Put the server in Zed's settings.json (zed: open settings file), then reload the agent so it starts it. `{ "context_servers": { "tyrbo-asset": { "command": "npx", "args": [ "-y", "@tyrbo/asset", "mcp" ], "env": {} } } }`
3. **Try it free** In an empty scratch folder, a mock call checks the setup with no key: it writes stand-in files and spends nothing. `asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mock`
4. **Log in in your own terminal** Make an asset key in the Tyrbo app (Settings, Asset gen) and paste it into asset login yourself. The agent never asks for the key and never runs the login. `asset login`

Zed’s own docs, read November 25, 2026:

- [https://zed.dev/docs/ai/mcp](https://zed.dev/docs/ai/mcp)

## The commands

```
asset look harbor "papercraft diorama, layered cut paper, soft warm light, a little fishing harbor" --view side --mock
asset look harbor "papercraft diorama, layered cut paper, soft warm light, a little fishing harbor" --view side
asset character sailor "a cheerful paper sailor with a striped shirt" --view side --clips idle,walk
asset sfx gulls "seagulls calling over gentle waves" --seconds 6 --loop
asset music harbor-theme "calm seaside waltz, accordion and soft strings, slow tempo"
asset spend
```

## Made by the CLI, not drawn for this page

Real files the asset CLI wrote, each under the command that made it.

walk, 12 frames at 6 a second

### See prompt

`asset character sailor "a cheerful paper sailor with a striped shirt" --view side --clips idle,walk`

![A papercraft fishing harbor in warm light: cut-paper houses, a lighthouse, a pier, a sailor and a dog](https://tyrbo.ai/asset-gen/harbor/harbor.webp)

### See prompt

`asset look harbor "papercraft diorama, layered cut paper, soft warm light, a little fishing harbor" --view side`

![A papercraft sailor in a striped shirt and a sailor’s cap, seen from the side](https://tyrbo.ai/asset-gen/harbor/sailor.webp)

## Confirm by default, then loosen what is safe

Out of the box, Zed’s agent asks before every tool action, MCP calls included: `agent.tool_permissions.default` is `confirm`. You can set a rule for one tool by its key, which for asset gen is `mcp:tyrbo-asset:asset`.

Leaving it on confirm is reasonable while you start. Each prompt shows the words the agent is about to send, so you see `--mock` there or not, and a paid call is quoted and checked against your credits on top. When you trust the pattern, allow the tool and let `asset spend` tell you where things stand.

## A profile for art days

Zed’s docs suggest a custom profile when you want the agent to reach for one server’s tools. Make an art profile with the `asset` tool on, and the file edits the agent needs to wire the results in. Switch to it when the session is about pictures and sound, and back to your usual profile for gameplay code.

Inside that profile, a good opening ask names the camera and the style in one breath (“side view, cut paper, warm light”), which the agent turns into the `asset look` call everything after it follows.

## Sound in the same look

Pictures are only half the harbor. `asset sfx` makes a sound from words, up to 30 seconds and loopable, and `asset music` writes a 30 second piece from a mood, a tempo and the instruments. For blips that need no words, `asset synth` makes a pickup, a jump or a hit for free. All of them land beside the art as `.mp3` or `.wav` files, named after the command.

## Answers the agent can act on

The tool replies with the command’s one JSON line: the files written, their cost and what is left. When a call is refused, the reply is an error with the reason, such as a flag the verb does not take or credits that cannot cover it, and the agent can try again with better words or ask you. Logging in is the one thing it cannot do: you run `asset login` in your own terminal, once.

## Questions people ask

### Can Zed’s agent run the CLI in its terminal instead?

Yes, an agent profile with the terminal tool can type `asset` commands too. The context server is usually simpler, since there is no quoting to get wrong.

### How do I test a new prompt without paying?

Add `--mock`. The call runs offline, needs no key, and writes stand-in files under the names the real one would use.

### Where do the sailor’s frames end up?

In `public/assets/`: `sailor.png`, `sailor-sheet.png` with its atlas, and `sailor.anim.json`, which says where each clip sits on the sheet.

## For your coding agent

- [Game assets for Claude Code](https://tyrbo.ai/ai-game-assets-for-claude-code)
- [Game assets for Cursor](https://tyrbo.ai/ai-game-assets-for-cursor)
- [Game assets for Codex](https://tyrbo.ai/ai-game-assets-for-codex)
- [Game assets for Gemini CLI](https://tyrbo.ai/ai-game-assets-for-gemini-cli)
- [Game assets for Cline](https://tyrbo.ai/ai-game-assets-for-cline)
- [Game assets for Kilo Code](https://tyrbo.ai/ai-game-assets-for-kilo-code)
- [Game assets for Roo Code](https://tyrbo.ai/ai-game-assets-for-roo-code)
- [Game assets for OpenCode](https://tyrbo.ai/ai-game-assets-for-opencode)
- [Game assets for Windsurf](https://tyrbo.ai/ai-game-assets-for-windsurf)
- [Game assets for GitHub Copilot](https://tyrbo.ai/ai-game-assets-for-github-copilot)
- [Game assets for Aider](https://tyrbo.ai/ai-game-assets-for-aider)
- [Game assets with Ollama](https://tyrbo.ai/ai-game-assets-with-ollama)

## More from the asset generator

- [Asset generator](https://tyrbo.ai/asset-generator)
- [Docs](https://tyrbo.ai/asset-generator/docs)
- [Top-down RPG character sprite sheet](https://tyrbo.ai/top-down-rpg-character-sprite-sheet)
- [AI 3D model generator for games](https://tyrbo.ai/ai-3d-model-generator-for-games)
- [Auto-rig a 3D model for games](https://tyrbo.ai/auto-rig-3d-model-for-games)
- [Game UI generator](https://tyrbo.ai/game-ui-generator)
- [AI sprites for Godot](https://tyrbo.ai/ai-sprites-for-godot)
- [Pixel art asset generator](https://tyrbo.ai/pixel-art-asset-generator)

## Install it, then ask for the look.

[Get an asset key](https://app.tyrbo.ai/?from=/asset-generator#/settings/assets)

Make a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.

---

This is the Markdown version of https://tyrbo.ai/ai-game-assets-for-zed, from Tyrbo (The AI game engine). Cite and link the page itself. Every page: https://tyrbo.ai/llms.txt