Terminal CLI
通过 Claude Code 直接管理与发布社交媒体内容
Bring social publishing into the terminal. Run Claude Code to draft announcements from git logs, review queued schedules, and post updates across all social channels.
配置代码片段
粘贴到您的 Claude Code 配置文件中
配置文件位置:
~/.claude/config.jsonclaude mcp add autoposter https://agent.autoposter.ai/mcp --header 'Authorization: Bearer YOUR_AUTOPOSTER_API_KEY'如何配置 Claude Code
1
生成 AutoPoster 工作区 API 密钥
打开您的 工作区设置 并点击创建 API 密钥。复制生成的私密密钥 (以 ap_live_... 开头)。
2
编辑 Claude Code 配置文件
在编辑器中打开 ~/.claude/config.json 并粘贴上方显示的 MCP 服务器配置块。将 YOUR_AUTOPOSTER_API_KEY 替换为您的真实密钥。
3
重启助手并下达指令
重启 Claude Code。现在您将在上下文工具栏中看到 AutoPoster 工具 (autoposter_draft_post 等) 准备就绪。
适用于 Claude Code 的即用提示词
复制以下提示词直接发送到您的对话中:
"claude: schedule a post with our test benchmark results for Friday 3 PM"
"claude: check if the release tweet went out and show status"
"claude: list active social channels"
Claude Code 支持的核心能力
✓
One-line CLI installation ✓
Terminal-native workflows ✓
Headless CI/CD scriptable ✓
Instant feedback receipts