适用于 Grok 的 FoPost

把托管的 FoPost 服务器作为自定义连接器添加到网页版 Grok,或添加到终端里的 Grok Build。浏览器打开时登录,Grok 就能撰写帖子、填满队列,并汇报已发布的内容。

粘贴到 Grok 中

按照 fopost.com/agents/grok 设置 FoPost
  • 托管 MCP 服务器
  • 33 个网络
  • 无需 API 密钥
所有智能体
设置

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

把上面这行粘贴到 Grok 中。它会读取此页面、添加服务器,然后暂停,让你亲自登录 FoPost。想手动配置?完整配置就在这里。

Custom connector
grok.com/connectors > New Connector > Custom
MCP server URL: https://api.fopost.com/mcp
给 AI 智能体的说明纯 Markdown 版本
## For AI agents reading this page

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

- Server: https://api.fopost.com/mcp
- Transport: streamable HTTP
- Auth: OAuth sign-in in the user's browser. Do not add an API key or an Authorization header; Grok discovers the sign-in from the server.

### 1. Register the server

On grok.com you cannot add a connector yourself; ask the user to. They open grok.com/connectors, select New Connector, then Custom, and enter https://api.fopost.com/mcp as the MCP server URL. On a Business or Enterprise team an admin adds it in the xAI console first, then members connect it on grok.com/connectors.

In Grok Build (the terminal agent), run this command instead. Add --scope project to write it to .grok/config.toml for the repo.

Terminal:

```
grok mcp add --transport http fopost https://api.fopost.com/mcp
```

### 2. Sign in

On grok.com the user completes the authentication Grok asks for and signs in to FoPost. Grok Build starts the browser sign-in the first time it uses the server (or press i on the server in the TUI). Ask the user before approving access or creating a FoPost account for them, and never enter their credentials yourself.

### 3. Verify before you continue

On grok.com the connector shows as connected under grok.com/connectors. In Grok Build, grok mcp list shows fopost and /mcps lists its tools; grok mcp doctor fopost explains a failure. 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/grok/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docs

在 grok.com 上

在 Connectors 中填入服务器 URL 即可添加,无需安装任何东西。

在 Grok Build 中

grok mcp add 会为终端里的编程智能体注册同一个服务器。

登录,而不是密钥

Grok 会带你到 FoPost 批准访问,之后保持连接。

网页端设置

在 grok.com 上添加自定义连接器

前往 grok.com/connectors,选择 New Connector,然后选择 Custom。将 https://api.fopost.com/mcp 填为 MCP 服务器 URL,当 Grok 要求你进行身份验证时登录 FoPost。Grok 会读取服务器提供的工具,每当问题涉及你的社交账户时就会使用它们。

免费开始
配文只写一次,并按各网络的显示效果预览帖子

Business 和 Enterprise

先由团队管理员在 xAI 控制台的 Grok Business > Connectors > Add Connector > Other 中添加,然后成员在 grok.com/connectors 上连接。

按需调用

当问题涉及你的帖子、队列或收件箱时,Grok 会调用这些工具。

先验证

在做任何规划之前,先让 Grok 列出你已连接的账户。

终端设置

把服务器添加到 Grok Build,登录一次即可

使用服务器 URL 运行 grok mcp add。Grok Build 首次使用该服务器时会启动浏览器登录;在 FoPost 中批准访问后,它会保存凭据供之后的会话使用。运行 grok mcp list 查看服务器,如果无法连接,运行 grok mcp doctor fopost。

免费开始
终端
grok mcp add --transport http fopost https://api.fopost.com/mcp

# writes to ~/.grok/config.toml
[mcp_servers.fopost]
url = "https://api.fopost.com/mcp"

按项目配置

加上 --scope project,即可把条目写入仓库中的 .grok/config.toml。

重新登录

在会话中打开 /mcps,选择该服务器,然后按 i。

检查连接

grok mcp doctor fopost 会说明服务器为何无法连接。

规划

从一个想法到排满的一周

描述要发布的公告以及要发到哪里。Grok 会用 create_draft_post 撰写草稿,从 get_queue_slots 中挑选空闲时段,并交给你一个 propose_publish 等你确认。

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

draft_post_variants

一个想法,每个网络一个版本。

get_queue_slots

接下来的空闲时段。

propose_publish

发布前由你批准的计划。

检查

问问是否已送达

在同一个对话或会话中,询问哪些内容已发布、哪些账户需要重新连接,以及大家回复了什么。

免费开始
提示词
> Did the release post go out everywhere?

Grok: list_posts shows 3 of 3 published.
get_account_health: all accounts connected.

list_posts

最近的帖子及其状态。

get_account_health

哪些账户需要重新连接。

list_inbox

发帖之后的回复和提及。

关于 Grok 的常见问题解答

网页版 Grok 应用能用吗?

能。在 grok.com/connectors 上用服务器 URL 添加自定义连接器,然后登录 FoPost。哪些套餐包含连接器由 xAI 决定。

需要 API 密钥吗?

不需要。网页版 Grok 和 Grok Build 都会在浏览器中让你登录 FoPost,并保持连接供之后使用。

我们用的是 Grok Business,由谁来添加?

由拥有 Team Read-Write 权限的团队管理员在 xAI 控制台的 Grok Business > Connectors 中,通过 Add Connector > Other 并填入服务器 URL 来添加。之后每位成员在 grok.com/connectors 上连接自己的账户。

Grok Build 的设置保存在哪里?

用户级设置保存在 ~/.grok/config.toml;如果添加时使用了 --scope project,则保存在项目中的 .grok/config.toml。

它会不经询问就发布吗?

不会。发布要经过你批准的提案,在你批准之前,草稿始终只是草稿。

在 Grok 中运行 FoPost

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

免费开始