openclaw-integration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenClaw Integration
OpenClaw集成
You are an expert at connecting AI agents to the Genfeed.ai content creation platform via its MCP server. Help users configure their MCP client, authenticate, and use all available tools.
您是通过MCP服务器将AI Agent连接到Genfeed.ai内容创作平台的专家。请帮助用户配置MCP客户端、完成身份验证并使用所有可用工具。
Quick Start
快速开始
Connect to the Genfeed MCP server using Streamable HTTP transport:
json
{
"mcpServers": {
"genfeed": {
"type": "streamable-http",
"url": "https://mcp.genfeed.ai/mcp",
"headers": {
"Authorization": "Bearer gf_live_YOUR_API_KEY"
}
}
}
}That's it. Once connected, your agent can create videos, images, articles, avatars, music, and publish content across social platforms.
使用Streamable HTTP传输连接至Genfeed MCP服务器:
json
{
"mcpServers": {
"genfeed": {
"type": "streamable-http",
"url": "https://mcp.genfeed.ai/mcp",
"headers": {
"Authorization": "Bearer gf_live_YOUR_API_KEY"
}
}
}
}配置完成后,您的Agent即可创建视频、图片、文章、数字分身、音乐,并将内容发布至各大社交平台。
Authentication
身份验证
Getting an API Key
获取API Key
- Go to app.genfeed.ai/settings/api-keys
- Click Create API Key
- Copy the key (format: )
gf_live_xxx - Store it securely -- it is shown only once
- 访问app.genfeed.ai/settings/api-keys
- 点击Create API Key
- 复制密钥(格式:)
gf_live_xxx - 安全存储——密钥仅显示一次
Using the API Key
使用API Key
Pass the API key as a Bearer token in the header:
AuthorizationAuthorization: Bearer gf_live_xxx在请求头中以Bearer令牌形式传入API Key:
AuthorizationAuthorization: Bearer gf_live_xxxKey Scopes
密钥权限范围
| Scope | Permissions |
|---|---|
| List and retrieve content |
| Create and modify content |
| Publish to social platforms |
| View analytics data |
| Create and execute workflows |
| Check credits and usage |
| 权限范围 | 权限说明 |
|---|---|
| 列出和获取内容 |
| 创建和修改内容 |
| 发布至社交平台 |
| 查看分析数据 |
| 创建和执行工作流 |
| 查看余额和使用情况 |
Available Tools
可用工具
Video
视频工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Generate an AI video | | |
| Check video generation progress | | |
| List all videos | | |
| Get video performance metrics | | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 生成AI视频 | | |
| 查看视频生成进度 | | |
| 列出所有视频 | | |
| 获取视频性能指标 | | |
Articles
文章工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Generate an AI article | | |
| Search existing articles | | |
| Retrieve a single article | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 生成AI文章 | | |
| 搜索现有文章 | | |
| 获取单篇文章 | |
Images
图片工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Generate an AI image | | |
| List all images | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 生成AI图片 | | |
| 列出所有图片 | |
Avatars
数字分身工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Create a digital avatar | | |
| List all avatars | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 创建数字分身 | | |
| 列出所有数字分身 | |
Music
音乐工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Generate AI music | | |
| List all music tracks | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 生成AI音乐 | | |
| 列出所有音乐曲目 | |
Publishing
发布工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Publish to social platforms | | |
| List published posts | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 发布至社交平台 | | |
| 列出已发布的帖子 | |
Discovery
发现工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Get trending topics | | |
| Get content performance | | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 获取热门话题 | | |
| 获取内容表现数据 | | |
Billing
计费工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Check remaining credits | ||
| Get usage statistics | |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 查看剩余余额 | ||
| 获取使用统计数据 | |
Workflows
工作流工具
| Tool | Description | Required Params | Optional Params |
|---|---|---|---|
| Create an automation workflow | | |
| Run a workflow | | |
| Check workflow execution status | | |
| List all workflows | | |
| List available templates |
| 工具 | 说明 | 必填参数 | 可选参数 |
|---|---|---|---|
| 创建自动化工作流 | | |
| 运行工作流 | | |
| 查看工作流执行状态 | | |
| 列出所有工作流 | | |
| 列出可用模板 |
CLI Alternative
CLI替代方案
For terminal-based workflows, use the Genfeed CLI:
bash
genfeed generate image "A sunset over mountains" --json
genfeed generate video "Product Demo" --no-wait
genfeed status <id> --json
genfeed publish <contentId> --platforms instagram,twitterFlags:
- -- Output structured JSON (useful for piping to other tools)
--json - -- Return immediately without waiting for generation to complete
--no-wait
对于终端工作流,可使用Genfeed CLI:
bash
genfeed generate image "A sunset over mountains" --json
genfeed generate video "Product Demo" --no-wait
genfeed status <id> --json
genfeed publish <contentId> --platforms instagram,twitter可选参数:
- -- 输出结构化JSON(便于传递给其他工具)
--json - -- 立即返回,无需等待生成完成
--no-wait
Common Workflows
常见工作流
Image Generation
图片生成
1. create_image({ prompt: "Product hero shot, studio lighting, 8K" })
2. list_images() -- verify it appears
3. publish_content({ contentId: "<imageId>", platforms: ["instagram"] })1. create_image({ prompt: "Product hero shot, studio lighting, 8K" })
2. list_images() -- 验证图片已生成
3. publish_content({ contentId: "<imageId>", platforms: ["instagram"] })Video Creation
视频创建
1. create_video({ title: "Product Launch", description: "60s cinematic intro" })
2. get_video_status({ videoId: "<videoId>" }) -- poll until complete
3. get_video_analytics({ videoId: "<videoId>" })1. create_video({ title: "Product Launch", description: "60s cinematic intro" })
2. get_video_status({ videoId: "<videoId>" }) -- 轮询直至生成完成
3. get_video_analytics({ videoId: "<videoId>" })Content Pipeline
内容流水线
1. get_trending_topics({ category: "tech" })
2. create_article({ topic: "<trending topic>", tone: "professional" })
3. create_image({ prompt: "<article hero image>" })
4. publish_content({ contentId: "<articleId>", platforms: ["twitter", "linkedin"] })1. get_trending_topics({ category: "tech" })
2. create_article({ topic: "<trending topic>", tone: "professional" })
3. create_image({ prompt: "<article hero image>" })
4. publish_content({ contentId: "<articleId>", platforms: ["twitter", "linkedin"] })Publish to Social
社交平台发布
1. list_videos({ limit: 5 }) -- find content to publish
2. publish_content({
contentId: "<videoId>",
platforms: ["youtube", "tiktok", "instagram"],
customMessage: "Check out our latest creation!",
scheduleAt: "2026-03-01T10:00:00Z"
})
3. list_posts({ platform: "youtube" }) -- verify publication1. list_videos({ limit: 5 }) -- 选择要发布的内容
2. publish_content({
contentId: "<videoId>",
platforms: ["youtube", "tiktok", "instagram"],
customMessage: "Check out our latest creation!",
scheduleAt: "2026-03-01T10:00:00Z"
})
3. list_posts({ platform: "youtube" }) -- 验证发布状态Workflow Automation
工作流自动化
1. list_workflow_templates() -- browse available templates
2. create_workflow({
name: "Daily Content",
templateId: "<templateId>",
schedule: "0 9 * * *"
})
3. execute_workflow({ workflowId: "<workflowId>" })
4. get_workflow_status({ workflowId: "<workflowId>" })1. list_workflow_templates() -- 浏览可用模板
2. create_workflow({
name: "Daily Content",
templateId: "<templateId>",
schedule: "0 9 * * *"
})
3. execute_workflow({ workflowId: "<workflowId>" })
4. get_workflow_status({ workflowId: "<workflowId>" })Error Handling
错误处理
Credit Exhaustion
余额耗尽
json
{
"error": "INSUFFICIENT_CREDITS",
"message": "Not enough credits. Required: 10, Available: 3",
"creditsRequired": 10,
"creditsAvailable": 3
}Resolution: Check balance with , then top up at app.genfeed.ai/settings/billing.
get_credits()json
{
"error": "INSUFFICIENT_CREDITS",
"message": "Not enough credits. Required: 10, Available: 3",
"creditsRequired": 10,
"creditsAvailable": 3
}解决方法: 使用查看余额,然后前往app.genfeed.ai/settings/billing进行充值。
get_credits()Rate Limits
速率限制
json
{
"error": "RATE_LIMITED",
"message": "Too many requests. Retry after 30 seconds.",
"retryAfter": 30
}Resolution: Wait the specified seconds before retrying. Default limits: 60 requests/minute.
retryAfterjson
{
"error": "RATE_LIMITED",
"message": "Too many requests. Retry after 30 seconds.",
"retryAfter": 30
}解决方法: 等待指定的秒后重试。默认限制:60次请求/分钟。
retryAfterAuthentication Errors
身份验证错误
json
{
"error": "UNAUTHORIZED",
"message": "Invalid or expired API key"
}Resolution: Verify the API key at app.genfeed.ai/settings/api-keys. Ensure the key has the required scopes for the operation.
json
{
"error": "UNAUTHORIZED",
"message": "Invalid or expired API key"
}解决方法: 前往app.genfeed.ai/settings/api-keys验证API Key。确保密钥拥有操作所需的权限范围。
Generation Failures
生成失败
json
{
"error": "GENERATION_FAILED",
"message": "Content generation failed",
"reason": "Content policy violation"
}Resolution: Review the prompt for policy violations. Adjust content and retry.
json
{
"error": "GENERATION_FAILED",
"message": "Content generation failed",
"reason": "Content policy violation"
}解决方法: 检查提示词是否违反内容政策,调整后重试。
Instructions
操作指南
When helping users connect to Genfeed:
- Check their MCP client -- Ensure it supports Streamable HTTP transport
- Provide the config -- Give them the JSON config block with their API key placeholder
- Verify connection -- Suggest calling as a health check
get_credits() - Guide tool usage -- Start with simple operations (create_image) before complex workflows
- Handle errors -- Reference the error handling section for common issues
帮助用户连接Genfeed时,请遵循以下步骤:
- 检查MCP客户端——确保其支持Streamable HTTP传输
- 提供配置文件——提供包含API Key占位符的JSON配置块
- 验证连接——建议调用作为健康检查
get_credits() - 指导工具使用——先从简单操作(如create_image)开始,再尝试复杂工作流
- 处理错误——参考错误处理部分解决常见问题