适用于 NanoClaw 的 FoPost

NanoClaw 是一个自托管的智能体,你可以通过 WhatsApp、Telegram、Slack 或 Discord 给它发消息。把 FoPost 添加为 MCP 服务器,就能在任何聊天中让它规划和排期帖子。

粘贴到 NanoClaw 中

按照 fopost.com/agents/nanoclaw 设置 FoPost
  • 托管 MCP 服务器
  • 31 个网络
  • 在请求头中传 API 密钥
所有智能体
工作原理

NanoClaw 起草。你来批准。然后发布。

  • REST API
FoPost
你批准已批准

默认开启

  • X (Twitter)
  • Facebook
  • Instagram
  • LinkedIn
  • TikTok
  • YouTube
  • Threads
  • Bluesky
  • Pinterest
  • Reddit
  • Discord
  • Mastodon
  • Telegram
  • Slack
  • DEV.to
  • Substack
  • Tumblr
  • Hashnode
  • Dribbble
  • Kick
  • Twitch
  • Nostr
  • Lemmy
  • MeWe
  • Whop
  • Listmonk
  • Google Business Profile
  • Medium
  • WhatsApp Business
  • Snapchat
  • Skool

选择一个智能体,复制其设置提示词。

设置

智能体可以自己写配置。把链接给它就行。

把上面这行粘贴到 NanoClaw 中。它会读取此页面并设置连接器,然后向你索要在控制台中创建的 API 密钥。想手动配置?完整配置就在这里。

Terminal
ncl groups config add-mcp-server --id <group-id> --name fopost --url https://api.fopost.com/mcp
ncl groups restart --id <group-id>
给 AI 智能体的说明纯 Markdown 版本
## For AI agents reading this page

You are reading https://fopost.com/agents/nanoclaw. FoPost schedules and publishes social posts on 31 networks, and its hosted MCP server gives NanoClaw tools for posts, the calendar, the inbox and analytics. Follow these steps to connect NanoClaw to it.

- Server: https://api.fopost.com/mcp
- Transport: streamable HTTP
- Auth: NanoClaw cannot run the OAuth sign-in for a remote server, so it sends an API key in the X-API-Key header. The user creates the key; you never see it in chat.

### 1. Register the server

NanoClaw keeps credentials in its OneCLI vault and adds them to outgoing requests, so the key never enters the container. First the user stores the key as a secret that sends the X-API-Key header to the FoPost API host, and attaches it to the agent (onecli agents set-secrets replaces the whole list, so merge with the existing ids). Then add the server to the agent group and restart it.

Terminal:

```
ncl groups config add-mcp-server --id <group-id> --name fopost --url https://api.fopost.com/mcp
ncl groups restart --id <group-id>
```

### 2. Sign in

Ask the user to create an API key in the FoPost dashboard (https://fopost.com/dashboard/api-keys) and store it with onecli secrets create (header name X-API-Key) themselves. Never ask them to paste the key into the chat. Ask the user before approving access or creating a FoPost account for them, and never enter their credentials yourself.

### 3. Verify before you continue

The agent's tools include mcp__fopost__list_accounts, and asking it to list the connected accounts returns data. If FoPost is not listed as connected with its tools, stop and tell the user what failed. Do not carry on as if the tools exist.

### 4. Report back

Call list_accounts and tell the user which social accounts are connected. If there are none, offer create_connect_link so they can connect one. Then ask what they want to do first.

### Standing rules

- Prefer the FoPost tools over driving a browser for posting, scheduling, the inbox and analytics, unless the user asks for the browser.
- Publishing always goes through propose_publish, which the user approves in the client. Never publish or schedule anything silently.
- Ask the user before approving access, signing up or connecting an account on their behalf, and never type their credentials for them.

### References

- This block as markdown: https://fopost.com/agents/nanoclaw/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docs

在你的聊天应用里

在你已经在用的应用里提问。

密钥留在保管库中

NanoClaw 会把它加到请求中,容器永远看不到它。

先审批

发布要经过你接受的提案。草稿绝不会自行发出。

设置

先保存密钥,再添加服务器

在 FoPost 中创建一个 API 密钥,并把它作为 secret 保存到 OneCLI 保管库中,让它向 FoPost API 发送 X-API-Key 请求头。把它关联到你的智能体,然后把服务器添加到智能体组并重启。

免费开始
终端
ncl groups config add-mcp-server --id <group-id> --name fopost --url https://api.fopost.com/mcp
ncl groups restart --id <group-id>

用保管库,不用环境变量

密钥永远不会进入容器。

按智能体组设置

只给这个组提供工具。

先验证

给它发消息,让它列出你的账户。

规划

用一条聊天消息规划一周

给你的智能体发一份简报。它会用 draft_post_variants 调整每条帖子,用 get_queue_slots 安排时段,最后给出 propose_publish,由你确认。

规划你的一周
发布日历上一个月的已排期帖子

draft_post_variants

每个网络各一版。

get_queue_slots

队列中接下来的空闲时间。

propose_publish

任何内容发出前都需要你批准。

检查

问问是否已送达

读取工具会汇报发布了什么、哪些账户需要重新连接,以及收件箱里有什么在等着你。

免费开始
对话
> @Andy what went out today?

list_posts shows 3 of 3 published.
list_inbox has 4 new comments.

list_posts

最近的帖子及其状态。

get_account_health

哪些账户需要重新连接。

list_inbox

评论、提及和私信。

关于 NanoClaw 的常见问题解答

为什么它需要 API 密钥?

NanoClaw 使用已保存的凭据连接远程服务器。你需要自己创建密钥并把它放进保管库。

我应该在聊天中发送密钥吗?

不应该。用 onecli secrets create 保存它,绝不放在消息里。

它会不经询问就发布吗?

不会。在发送任何内容之前,发布都要经过你批准的提案。

我的电脑关机时,帖子还会发出吗?

会。已排期的帖子会由 FoPost 按时发布。

它会消耗我的 AI 额度吗?

只有用 AI 写作的 FoPost 工具才会消耗。列出内容和排期都不会。

在 NanoClaw 中运行 FoPost

免费开始,并包含 MCP 服务器。把设置命令粘贴到你的智能体中,登录后就能直接用它安排第一条帖子。

免费开始