build-mcp-genmedia

GitHub

用于在MCP工具缺失、损坏或环境重置时,从源码编译Go MCP服务器并配置运行环境。解决预编译二进制文件无执行权限的问题,确保工具正常可用。

experiments/mcp-genmedia/skills/build-mcp-genmedia/SKILL.md GoogleCloudPlatform/genmedia-creative-studio

触发场景

MCP工具缺失或无法响应 /tmp目录被清空或容器重启后 启动MCP服务器出现执行格式错误或权限拒绝

安装

npx skills add GoogleCloudPlatform/genmedia-creative-studio --skill build-mcp-genmedia -g -y
更多选项

非标准路径

npx skills add https://github.com/GoogleCloudPlatform/genmedia-creative-studio/tree/main/experiments/mcp-genmedia/skills/build-mcp-genmedia -g -y

不安装直接使用

npx skills use GoogleCloudPlatform/genmedia-creative-studio@build-mcp-genmedia

指定 Agent (Claude Code)

npx skills add GoogleCloudPlatform/genmedia-creative-studio --skill build-mcp-genmedia -a claude-code -g -y

安装 repo 全部 skill

npx skills add GoogleCloudPlatform/genmedia-creative-studio --all -g -y

预览 repo 内 skill

npx skills add GoogleCloudPlatform/genmedia-creative-studio --list

SKILL.md

Frontmatter
{
    "name": "build-mcp-genmedia",
    "license": "Apache-2.0",
    "metadata": {
        "author": "build-mcp-genmedia skill",
        "go_version": "1.26.2",
        "source_path": "experiments\/mcp-genmedia\/mcp-genmedia-go",
        "source_repo": "https:\/\/github.com\/GoogleCloudPlatform\/genmedia-creative-studio"
    },
    "description": "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.",
    "allowed-tools": "Bash Read Write Edit",
    "compatibility": "Requires internet access (GitHub clone, Go module downloads). Go is downloaded automatically if absent. Designed for the Gemini Enterprise Claude Code container (linux\/amd64, \/workspace noexec)."
}

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

版本历史

  • 96ed797 当前 2026-09-22 14:21

    将仓库引用重命名为 genmedia-creative-studio

  • 32217df 2026-07-25 07:29

同 Skill 集合

experiments/mcp-genmedia/skills/agent-aware-cli/SKILL.md
experiments/mcp-genmedia/skills/genmedia-audio-engineer/SKILL.md
experiments/mcp-genmedia/skills/genmedia-image-artist/SKILL.md
experiments/mcp-genmedia/skills/genmedia-producer/SKILL.md
experiments/mcp-genmedia/skills/genmedia-video-editor/SKILL.md
experiments/mcp-genmedia/skills/genmedia-voice-director/SKILL.md
experiments/mcp-genmedia/skills/install-mcp-genmedia/SKILL.md
experiments/mcp-genmedia/skills/story-generator/SKILL.md
experiments/mesop-to-lit-skill/skill/mesop-to-lit/SKILL.md

元信息

文件数
0
版本
d850b89
Hash
efae282c
收录时间
2026-07-25 07:29

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-06 05:24
浙ICP备14020137号-1