OpenParable
Skip to content
← Back to skills

Build MCP Genmedia

Agent Building
build-mcp-genmedia

Build MCP Genmedia is an Agent Skill for agent building published in the GoogleCloudPlatform/vertex-ai-creative-studio repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Builds the mcp-genmedia Go MCP servers (nanobanana, veo, lyria, gemini-multimodal, chirp3-hd, avtool) from source and wires them into settings.json. Use this skill whenever the MCP tools are missing or broken — typically at the start of a new session, after a container restart, or when /tmp has been wiped. The prebuilt binaries in /workspace/.local/bin/ have no exec bit and live on a noexec mount; this skill compiles fresh executables into /tmp/bin/ where execution is allowed.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/GoogleCloudPlatform/vertex-ai-creative-studio/blob/HEAD/experiments/mcp-genmedia/skills/build-mcp-genmedia/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/build-mcp-genmedia, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Build mcp-genmedia from Source

When to invoke this skill

  • MCP tools (nanobanana, veo, lyria, etc.) are not responding or missing from tool list
  • /tmp has been wiped (container restart, new session)
  • settings.json still points to /workspace/.local/bin/ binaries (which are not executable)
  • Any exec format error or permission denied when Claude Code tries to start an MCP server

How it works

The prebuilt binaries shipped in /workspace/.local/bin/ lack the executable bit and live on a noexec filesystem mount — they can never be run directly. The source code for all six servers lives in the upstream repo. This skill clones that repo, downloads Go if needed, compiles the servers into /tmp/bin/ (which is exec-allowed), and updates settings.json to point there.

Step-by-step procedure

1. Run the build script

bash /workspace/.claude/skills/build-mcp-genmedia/scripts/build.sh