Agent-first YouTube Shorts upload CLI and MCP server with dry-run API uploads
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add youtube-shorts-agent --env YOUTUBE_CLIENT_SECRET='<YOUTUBE_CLIENT_SECRET>' -- npx -y youtube-shorts-agent~/.codex/config.toml
[mcp_servers.youtube-shorts-agent]
command = "npx"
args = ["-y", "youtube-shorts-agent"]
env = { YOUTUBE_CLIENT_SECRET = "<YOUTUBE_CLIENT_SECRET>" }
# codex mcp add youtube-shorts-agent --env YOUTUBE_CLIENT_SECRET='<YOUTUBE_CLIENT_SECRET>' -- npx -y youtube-shorts-agent~/.cursor/mcp.json
{
"mcpServers": {
"youtube-shorts-agent": {
"command": "npx",
"args": [
"-y",
"youtube-shorts-agent"
],
"env": {
"YOUTUBE_CLIENT_SECRET": "<YOUTUBE_CLIENT_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"youtube-shorts-agent": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"youtube-shorts-agent"
],
"env": {
"YOUTUBE_CLIENT_SECRET": "<YOUTUBE_CLIENT_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"youtube-shorts-agent": {
"command": "npx",
"args": [
"-y",
"youtube-shorts-agent"
],
"env": {
"YOUTUBE_CLIENT_SECRET": "<YOUTUBE_CLIENT_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"youtube-shorts-agent": {
"command": "npx",
"args": [
"-y",
"youtube-shorts-agent"
],
"env": {
"YOUTUBE_CLIENT_SECRET": "<YOUTUBE_CLIENT_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"youtube-shorts-agent": {
"command": "npx",
"args": [
"-y",
"youtube-shorts-agent"
],
"env": {
"YOUTUBE_CLIENT_SECRET": "<YOUTUBE_CLIENT_SECRET>"
}
}
}
}需要的环境变量
YOUTUBE_CLIENT_SECRET
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。