适用于 goose 的 FoPost

开源智能体 goose 可以把远程 MCP 服务器作为扩展使用。在桌面应用或 CLI 中通过 URL 添加 FoPost,浏览器打开时登录,goose 就能为你规划和排期帖子。

粘贴到 goose 中

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

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

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

~/.config/goose/config.yaml
extensions:
  fopost:
    name: fopost
    type: streamable_http
    uri: https://api.fopost.com/mcp
    enabled: true
    timeout: 300
给 AI 智能体的说明纯 Markdown 版本
## For AI agents reading this page

You are reading https://fopost.com/agents/goose. FoPost schedules and publishes social posts on 33 networks, and its hosted MCP server gives goose tools for posts, the calendar, the inbox and analytics. Follow these steps to connect goose 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; goose discovers the sign-in from the server.

### 1. Register the server

Run goose configure, choose Add Extension, then Remote Extension (Streamable HTTP), and enter the name fopost and the URL https://api.fopost.com/mcp. In the desktop app: Extensions in the sidebar, then Add custom extension. To try it for one session only:

Terminal:

```
goose session --with-streamable-http-extension "https://api.fopost.com/mcp"
```

### 2. Sign in

goose registers itself and opens a browser window for the user to sign in. 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 fopost extension is enabled under Extensions, and asking goose which fopost tools it has returns them. 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.

### No browser (headless machines only)

Use this only when the machine has no browser to sign in with. Ask the user to create an API key in the FoPost dashboard (https://fopost.com/dashboard/api-keys) and to put it in the config themselves, then run the local package over stdio:

~/.config/goose/config.yaml:

```
extensions:
  fopost:
    name: fopost
    type: stdio
    cmd: npx
    args: ["-y", "@fopost/mcp"]
    envs:
      FOPOST_API_KEY: your-api-key
    enabled: true
```

### References

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

一个远程扩展

goose 直接与托管服务器通信,无需额外安装任何东西。

登录,而不是密钥

goose 会自行注册,并在浏览器中打开 FoPost,让你批准访问。

先审批

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

设置

添加一次长期使用,或只试用一个会话

要长期保留,运行 goose configure,选择 Add Extension,再选择 Remote Extension (Streamable HTTP),然后输入名称和 https://api.fopost.com/mcp。在桌面应用中,打开侧边栏的 Extensions,选择 Add custom extension。上面的命令只在单个会话中启用它。浏览器打开时登录 FoPost。

免费开始
终端
goose configure
# Add Extension > Remote Extension (Streamable HTTP)

CLI 或桌面端

同一个扩展在两者中都能使用。

本地登录

登录完成后会回到你本机上的 goose。

先验证

让 goose 列出你已连接的账户。

规划

每周队列的配方

让 goose 用 repurpose_url 把本周的文章变成帖子,用 draft_post_variants 逐条调整,再用 get_queue_slots 安排时段。最后它会给出 propose_publish,由你确认。

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

repurpose_url

一篇文章变成一组帖子。

draft_post_variants

每个网络各一版。

get_calendar

已经排了什么。

检查

问问是否已送达

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

免费开始
会话
> What went out today?

goose: list_posts shows 2 of 2 published.
list_inbox has 5 new comments.

list_posts

最近的帖子及其状态。

get_account_health

哪些账户需要重新连接。

list_inbox

评论、提及和私信。

无头环境

机器上没有浏览器?

服务器或 CI 中没有可用于登录的浏览器。请在控制台中创建 API 密钥,改为通过 stdio 运行本地包。不要把密钥放进代码仓库。

~/.config/goose/config.yaml
extensions:
  fopost:
    name: fopost
    type: stdio
    cmd: npx
    args: ["-y", "@fopost/mcp"]
    envs:
      FOPOST_API_KEY: your-api-key
    enabled: true

关于 goose 的常见问题解答

需要 API 密钥吗?

不需要。goose 会向 FoPost 注册,并通过浏览器让你登录。

会话标志有什么作用?

它只在该会话中开启扩展。要长期保留,请使用 goose configure 或桌面应用。

它会不经询问就发布吗?

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

在桌面应用中能用吗?

可以。打开侧边栏的 Extensions,选择 Add custom extension,然后输入 URL。

会消耗我的 AI 额度吗?

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

在 goose 中运行 FoPost

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

免费开始