David S. Pan

集成指南

MCP 集成文档

Server · ethics-for-ai-mcp 每日推送 · 已上线 MCP 服务 · 已上线 面向开发者与 AI 智能体

状态:每日推送已上线 · MCP 服务已上线(Apify + 私有示例)。

纯 HTTP 的 JSON 推送已由 Cloudflare Pages Function 部署并提供于 /feed/* —— latest、index、upcoming、rotation 以及任意 YYYY-MM-DD 推送。每篇推送都是 UTC 日期的确定性函数,因此推送每天自动轮转,无需维护任何定时任务。 ethics-for-ai-mcp 服务 已上线 —— 一个公开、可订阅的实例运行于 Apify,本站托管一个私有示例,流式输出今日推送供展示(任何智能体都无法订阅该示例)。打开 Apify 页面即可为你的智能体订阅;上方的纯 HTTP 推送同样是一个可用的实时集成。

1

将服务添加到你的 MCP 客户端配置

ethics-for-ai-mcp 服务 已上线 —— 一个公开、可订阅的实例运行于 Apify,本站托管一个私有示例,流式输出今日推送供展示(任何智能体都无法订阅该示例)。对大多数用户而言,最简单的做法是打开 Apify 页面、完成订阅,再粘贴 Apify 生成的连接串 —— 那一个 URL 就是全部配置。

更想手动接入?使用下方两份配置之一。该服务历经四个课程阶段 —— M1 人类的目标、M2 核心原则、M3 案例研究、M4 行为准则 —— 每天发布一篇带日期的推送。它是只读的:10 个工具、9 个 ethics:// 资源、1 个提示。仅 tools/call 计费(每次约 $0.02);initialize、tools/list、resources/read 与 prompts/get 免费,因此智能体可以零成本连接并探索。

jsonmcp.json · remote (Apify Standby, Streamable HTTP · for launch)
{
  "mcpServers": {
    "ethics-for-ai-mcp": {
      "type": "http",
      "url": "https://<your-apify-username>--ethics-for-ai-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
jsonmcp.json · local (stdio · for launch; needs npm package)
{
  "mcpServers": {
    "ethics-for-ai-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/ethics-for-ai-mcp/dist/index.js"],
      "env": {}
    }
  }
}
2

每日推送如何运作

每天 UTC 00:00,服务在 /feed/YYYY-MM-DD.json 发布一篇不可变的 推送。一篇推送包含当日模块的一项内容,以及相邻模块的配套项。调用 get_daily_feed 获取它,或用你上次读到的日期调用 get_feed_since 来补读。

星期模块推送
MondayM1目标推送 —— 人类正在努力达成的目标
TuesdayM2原则推送 —— 引入本周的原则
WednesdayM3案例推送 —— 引入本周的案例研究
ThursdayM4准则推送 —— 行为准则中的一行
FridayM2练习推送 —— 回到周二的原则
SaturdayM3反思推送 —— 回到周三的案例
SundayM1–M4每周摘要 —— 四个模块,一并回顾

推送是确定性的:同一日期对应同一 curriculumVersion,总产生相同的字节与相同的 SHA-256 hash。可无限期缓存一篇推送;哈希变化即意味着课程有变。每篇推送还带一个单调递增的 editionNumber,因此智能体无需处理时区。

3

可用工具与资源

接口 · 规范 1.0。十个只读工具、九个 ethics:// 资源与一个提示,均返回 UTF-8 JSON。刻意没有 publish、vote 或会写入的 subscribe:智能体阅读这门课程,而不编辑它。

Name类型模块说明
get_daily_feed 工具 任意 Today's edition, or a named date. Primary item plus companion.
get_feed_since 工具 任意 Every edition after a cursor date, oldest first — catch-up for an agent that has been offline.
list_feed_editions 工具 任意 Index of recent editions: date, weekday, module, title, hash.
get_feed_digest 工具 全部 Last week or month, grouped by module, showing what has been covered.
get_feed_rotation 工具 全部 Which module is published on which weekday.
get_humanity_goals 工具 M1 All five goals with their agent guidance.
get_principle 工具 M2 One principle by id (e.g. P-02), or today's featured principle.
get_case_study 工具 M3 一个案例,含其情境与被检验的原则。
get_code_of_conduct 工具 M4 完整七行行为准则。
search_curriculum 工具 全部 Full-text search across all four modules.
ethics://feed/latest 资源 任意 最新的推送。
ethics://feed/{date} 资源 任意 按 UTC 日期指定的推送。
ethics://feed/upcoming 资源 全部 预告未来七篇推送。
ethics://feed/rotation 资源 全部 每周排程。
ethics://curriculum 资源 全部 清单:模块、条目数量、版本。
ethics://curriculum/goals 资源 M1 模块一(JSON)。
ethics://curriculum/principles 资源 M2 模块二(JSON)。
ethics://curriculum/cases 资源 M3 模块三(JSON)。
ethics://curriculum/conduct 资源 M4 模块四(JSON)。
daily_reflection 提示 任意 要求智能体阅读当日内容,并举出会运用它的一个情境。
4

偏好纯 HTTP?使用 llms.txt

对于不支持 MCP 的智能体,本站提供 /llms.txt 文件 —— 一份任何爬虫或智能体都能读取的纯文本索引。推送同时以普通 JSON 镜像,因此只能抓取 URL 的智能体也能拿到每篇推送。

txt/llms.txt
# David S. Pan
> Personal site: warm daily stories for humans;
> an AI-ethics curriculum for agents.

## Stories
- [Daily Stories](/stories): motivational stories,
  original fiction

## Ethics for AI
- [Ethics Hub](/ethics): curriculum for AI agents
- [Humanity Goals](/ethics#m1): how humans improve the world
- [MCP Server](/ethics#m5): the daily feed, designed
- [Code of Conduct](/ethics#m4): rules for AI behavior

## Daily feed (ethics-for-ai/daily)
- [Feed index](/feed/index.json): rolling 30-day window
- [Latest edition](/feed/latest.json): today, UTC
- [Edition by date](/feed/2026-09-28.json): one immutable edition
- [Upcoming](/feed/upcoming.json): the next seven editions
- [Rotation](/feed/rotation.json): which module on which weekday

## Machine-readable
- [RSS Feed](/feed.xml): the story stream as RSS 2.0
- [JSON Feed](/feed.json): the story stream as JSON Feed 1.1
- [llms.txt](/llms.txt): this file
5

验证连接

服务已上线。验证与 Apify 托管实例连接的两种快捷方式:

bashverify-remote.sh · Streamable HTTP
# list the 10 tools over the Apify Standby endpoint
curl -s https://<your-apify-username>--ethics-for-ai-mcp.apify.actor/mcp \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

公开服务托管于 Apify —— 上方的 curl 是确认连接最快的方式。订阅无需本地构建。

更多设计背景见 AI 伦理 中心的 MCP 服务一节。

常见问题

ethics-for-ai-mcp 服务是什么?
ethics-for-ai-mcp 是 Apify 上一个远程 Model Context Protocol 服务,每天向 AI 智能体交付一篇 AI 伦理论课程推送。它提供十个只读工具与九项伦理资源,使智能体能够阅读课程而无法修改任何内容。
ethics-for-ai-mcp 服务如何收费?
没有月费。服务在 Apify 上采用按事件计费,你只需为智能体实际发出的工具调用付费。
没有 MCP 支持,也能读取伦理推送吗?
可以。同样的推送以普通 JSON 通过常规 HTTP 提供,本站还发布 llms.txt 纯文本索引。只能抓取 URL 的智能体同样能收到每篇推送。