适用于 Hermes Agent 的 FoPost

让 Hermes Agent 指向托管的 FoPost 服务器,运行一条登录命令,你的智能体就拥有了你的社交日历:草稿、空闲时段、投递状态和收件箱,而发布始终等待你的批准。

粘贴到 Hermes Agent 中

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

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

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

~/.hermes/config.yaml
mcp_servers:
  fopost:
    url: "https://api.fopost.com/mcp"
    auth: oauth
给 AI 智能体的说明纯 Markdown 版本
## For AI agents reading this page

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

### 1. Register the server

Add this block to ~/.hermes/config.yaml, merged into any existing mcp_servers map.

~/.hermes/config.yaml:

```
mcp_servers:
  fopost:
    url: "https://api.fopost.com/mcp"
    auth: oauth
```

### 2. Sign in

Run hermes mcp login fopost from a separate terminal (add --flow device on a machine without a browser). The user signs in in the browser. Ask the user before approving access or creating a FoPost account for them, and never enter their credentials yourself.

### 3. Verify before you continue

hermes mcp test fopost succeeds; then /reload-mcp (or a new session) loads the tools. 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:

~/.hermes/config.yaml:

```
mcp_servers:
  fopost:
    command: npx
    args: ["-y", "@fopost/mcp"]
    env:
      FOPOST_API_KEY: your-api-key
```

### References

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

简单的配置

在 mcp_servers 下添加一个条目。文件中没有 API 密钥。

登录一次

hermes mcp login 会在浏览器中打开 FoPost,并为智能体保存结果。

写入时询问

把 trust 保持为 untrusted,Hermes 会在任何会更改内容的工具运行前询问你。

设置

添加条目,然后登录

把上面的配置块添加到 ~/.hermes/config.yaml,然后在新的终端中运行 hermes mcp login fopost,并在 FoPost 中批准访问。Hermes 会自动完成注册和登录。在运行中的会话里,用 /reload-mcp 加载更改。

免费开始
终端
hermes mcp login fopost

不必着急

登录流程最多会等待五分钟,让你完成登录。

挑选工具

用 tools.include 或 tools.exclude 限定智能体可以调用的工具。

先验证

让智能体列出你已连接的账户。

规划

让智能体保持队列充实

给 Hermes 一项常驻任务:用 repurpose_url 把新文章变成帖子,用 draft_post_variants 逐条调整,再用 get_queue_slots 安排时段。计划就绪后,它会调用 propose_publish 并等待你确认。

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

repurpose_url

一篇文章变成一组帖子。

draft_post_variants

每个网络各一版。

get_calendar

本周已经排了什么。

检查

在同一个对话里看报告

在规划这一周的同一个会话中,问问智能体发出了什么、哪些失败了、哪些需要回复。

免费开始
会话
> Anything I should look at today?

Hermes: list_posts shows 2 published, 0 failed.
list_inbox has 3 comments waiting for a reply.

list_posts

排队中、已发布或失败的帖子。

list_inbox

评论、提及和私信。

get_account_health

需要重新连接的账户。

无头环境

机器上没有浏览器?

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

~/.hermes/config.yaml
mcp_servers:
  fopost:
    command: npx
    args: ["-y", "@fopost/mcp"]
    env:
      FOPOST_API_KEY: your-api-key

关于 Hermes Agent 的常见问题解答

需要 API 密钥吗?

不需要。设置 auth: oauth 并运行 hermes mcp login fopost。Hermes 会向 FoPost 注册并替你完成登录。

凭据保存在哪里?

Hermes 会把它们保存在你本机的 ~/.hermes/mcp-tokens/ 中。

它会不经询问就发布吗?

不会。发布要经过你批准的提案。把 trust 保持为 untrusted,Hermes 还会在每次写入前询问。

工具没有出现,怎么办?

在新的终端中再次运行 hermes mcp login fopost,然后在会话中运行 /reload-mcp。

会消耗我的 AI 额度吗?

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

在 Hermes Agent 中运行 FoPost

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

免费开始