# @cyanheads/mcp-ts-core - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 @cyanheads/mcp-ts-core 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **希望把专业流程带进宿主 AI 的用户**：仓库包含 Skill 文档。 证据：`skills/add-app-tool/SKILL.md`, `skills/add-export/SKILL.md`, `skills/add-prompt/SKILL.md`, `skills/add-provider/SKILL.md` 等 Claim：`clm_0004` supported 0.86

## 它能做什么

- **AI Skill / Agent 指令资产库**（可做安装前预览）：项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 证据：`skills/add-app-tool/SKILL.md`, `skills/add-export/SKILL.md`, `skills/add-prompt/SKILL.md`, `skills/add-provider/SKILL.md` 等 Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md`, `docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md`, `skills/field-test/SKILL.md`, `skills/polish-docs-meta/references/readme.md` Claim：`clm_0002` supported 0.86

## 怎么开始

- `/plugin marketplace add modelcontextprotocol/ext-apps` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0005` supported 0.86
- `/plugin install mcp-apps@modelcontextprotocol-ext-apps` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0006` supported 0.86
- `npx skills add modelcontextprotocol/ext-apps` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0007` supported 0.86
- `git clone https://github.com/modelcontextprotocol/ext-apps.git` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0008` supported 0.86
- `npm install && npm run build && npm run serve` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0009` supported 0.86
- `npm install @modelcontextprotocol/ext-apps @modelcontextprotocol/sdk` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0010` supported 0.86
- `npm install -D typescript vite vite-plugin-singlefile express cors @types/express @types/cors tsx` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0011` supported 0.86
- `npx cloudflared tunnel --url http://localhost:3001` 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0012` supported 0.86
- `npm install @modelcontextprotocol/client` 证据：`docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md` Claim：`clm_0013` supported 0.86
- `pip install mcp` 证据：`docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md` Claim：`clm_0014` supported 0.86

## 继续前判断卡

- **当前建议**：先做权限沙盒试用
- **为什么**：项目存在安装命令、宿主配置或本地写入线索，不建议直接进入主力环境，应先在隔离环境试装。

### 30 秒判断

- **现在怎么做**：先做权限沙盒试用
- **最小安全下一步**：先跑 Prompt Preview；若仍要安装，只在隔离环境试装
- **先别相信**：工具权限边界不能在安装前相信。
- **继续会触碰**：命令执行、宿主 AI 配置、本地环境或项目文件

### 现在可以相信

- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **适合人群线索：希望把专业流程带进宿主 AI 的用户**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`skills/add-app-tool/SKILL.md`, `skills/add-export/SKILL.md`, `skills/add-prompt/SKILL.md`, `skills/add-provider/SKILL.md` 等 Claim：`clm_0004` supported 0.86
- **能力存在：AI Skill / Agent 指令资产库**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`skills/add-app-tool/SKILL.md`, `skills/add-export/SKILL.md`, `skills/add-prompt/SKILL.md`, `skills/add-provider/SKILL.md` 等 Claim：`clm_0001` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md`, `docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md`, `skills/field-test/SKILL.md`, `skills/polish-docs-meta/references/readme.md` Claim：`clm_0002` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md` Claim：`clm_0005` supported 0.86

### 现在还不能相信

- **工具权限边界不能在安装前相信。**（unverified）：MCP/tool 类项目通常会触碰文件、网络、浏览器或外部 API，必须真实检查权限和日志。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`AGENTS.md`, `CLAUDE.md`, `skills/add-app-tool/SKILL.md`, `skills/add-export/SKILL.md` 等
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。
- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md`

### 继续会触碰什么

- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md`, `docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md`, `skills/field-test/SKILL.md`, `skills/polish-docs-meta/references/readme.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`, `CLAUDE.md`, `skills/add-app-tool/SKILL.md`, `skills/add-export/SKILL.md` 等
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md`, `docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md`, `skills/field-test/SKILL.md`, `skills/polish-docs-meta/references/readme.md`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：用安装前交互式试用判断工作方式是否匹配，不需要授权或改环境。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0017` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md`, `docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md`, `skills/field-test/SKILL.md`, `skills/polish-docs-meta/references/readme.md` Claim：`clm_0018` supported 0.86
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **AI Skill / Agent 指令资产库**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`skills/add-app-tool/SKILL.md`, `skills/add-export/SKILL.md`, `skills/add-prompt/SKILL.md`, `skills/add-provider/SKILL.md` 等 Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`docs/mcp-specification/2025-11-25/extensions/apps-build.md`, `docs/mcp-specification/2025-11-25/extensions/auth-oauth-client-credentials.md`, `skills/field-test/SKILL.md`, `skills/polish-docs-meta/references/readme.md` Claim：`clm_0002` supported 0.86

### 上下文规模

- 文件总数：636
- 重要文件覆盖：40/636
- 证据索引条目：80
- 角色 / Skill 条目：30

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 @cyanheads/mcp-ts-core 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 @cyanheads/mcp-ts-core 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 @cyanheads/mcp-ts-core 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```


## 角色 / Skill 索引

- 共索引 30 个角色 / Skill / 项目文档条目。

- **add-app-tool**（skill）： 激活提示：当用户任务与“add-app-tool”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-app-tool/SKILL.md`
- **add-export**（skill）： 激活提示：当用户任务与“add-export”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-export/SKILL.md`
- **add-prompt**（skill）： 激活提示：当用户任务与“add-prompt”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-prompt/SKILL.md`
- **add-provider**（skill）： 激活提示：当用户任务与“add-provider”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-provider/SKILL.md`
- **add-resource**（skill）： 激活提示：当用户任务与“add-resource”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-resource/SKILL.md`
- **add-service**（skill）： 激活提示：当用户任务与“add-service”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-service/SKILL.md`
- **add-test**（skill）： 激活提示：当用户任务与“add-test”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-test/SKILL.md`
- **add-tool**（skill）： 激活提示：当用户任务与“add-tool”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/add-tool/SKILL.md`
- **api-auth**（skill）： 激活提示：当用户任务与“api-auth”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-auth/SKILL.md`
- **api-canvas**（skill）： 激活提示：当用户任务与“api-canvas”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-canvas/SKILL.md`
- **api-config**（skill）： 激活提示：当用户任务与“api-config”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-config/SKILL.md`
- **api-context**（skill）： 激活提示：当用户任务与“api-context”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-context/SKILL.md`
- **api-errors**（skill）： 激活提示：当用户任务与“api-errors”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-errors/SKILL.md`
- **api-linter**（skill）： 激活提示：当用户任务与“api-linter”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-linter/SKILL.md`
- **api-services**（skill）： 激活提示：当用户任务与“api-services”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-services/SKILL.md`
- **api-telemetry**（skill）： 激活提示：当用户任务与“api-telemetry”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-telemetry/SKILL.md`
- **api-testing**（skill）： 激活提示：当用户任务与“api-testing”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-testing/SKILL.md`
- **api-utils**（skill）： 激活提示：当用户任务与“api-utils”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-utils/SKILL.md`
- **api-workers**（skill）： 激活提示：当用户任务与“api-workers”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/api-workers/SKILL.md`
- **design-mcp-server**（skill）： 激活提示：当用户任务与“design-mcp-server”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/design-mcp-server/SKILL.md`
- **field-test**（skill）： 激活提示：当用户任务与“field-test”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/field-test/SKILL.md`
- **maintenance**（skill）： 激活提示：当用户任务与“maintenance”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/maintenance/SKILL.md`
- **migrate-mcp-ts-template**（skill）： 激活提示：当用户任务与“migrate-mcp-ts-template”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/migrate-mcp-ts-template/SKILL.md`
- **polish-docs-meta**（skill）： 激活提示：当用户任务与“polish-docs-meta”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/polish-docs-meta/SKILL.md`
- **release-and-publish**（skill）： 激活提示：当用户任务与“release-and-publish”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/release-and-publish/SKILL.md`
- **report-issue-framework**（skill）： 激活提示：当用户任务与“report-issue-framework”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/report-issue-framework/SKILL.md`
- **report-issue-local**（skill）： 激活提示：当用户任务与“report-issue-local”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/report-issue-local/SKILL.md`
- **security-pass**（skill）： 激活提示：当用户任务与“security-pass”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/security-pass/SKILL.md`
- **setup**（skill）： 激活提示：当用户任务与“setup”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/setup/SKILL.md`
- **tool-defs-analysis**（skill）： 激活提示：当用户任务与“tool-defs-analysis”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`skills/tool-defs-analysis/SKILL.md`

## 证据索引

- 共索引 80 条证据。

- **Developer Protocol**（documentation）：Package: @cyanheads/mcp-ts-core Version: 0.9.1 Engines: Bun ≥1.3.0, Node ≥24.0.0 MCP SDK: @modelcontextprotocol/sdk ^1.29.0 Zod: ^4.4.3 GitHub: cyanheads/mcp-ts-core https://github.com/cyanheads/mcp-ts-core npm: @cyanheads/mcp-ts-core https://www.npmjs.com/package/@cyanheads/mcp-ts-core Docker: ghcr.io/cyanheads/mcp-ts-core https://ghcr.io/cyanheads/mcp-ts-core 证据：`AGENTS.md`
- **Developer Protocol**（documentation）：Package: @cyanheads/mcp-ts-core Version: 0.9.1 Engines: Bun ≥1.3.0, Node ≥24.0.0 MCP SDK: @modelcontextprotocol/sdk ^1.29.0 Zod: ^4.4.3 GitHub: cyanheads/mcp-ts-core https://github.com/cyanheads/mcp-ts-core npm: @cyanheads/mcp-ts-core https://www.npmjs.com/package/@cyanheads/mcp-ts-core Docker: ghcr.io/cyanheads/mcp-ts-core https://ghcr.io/cyanheads/mcp-ts-core 证据：`CLAUDE.md`
- **What is this?**（documentation）：@cyanheads/mcp-ts-core Agent-native TypeScript framework for building MCP servers. Build tools, not infrastructure. Declarative definitions with auth, multi-backend storage, OpenTelemetry, and first-class support for Bun/Node/Cloudflare Workers. 证据：`README.md`
- **Skills**（documentation）：Agent Skills for @cyanheads/mcp-ts-core . Each subdirectory contains a SKILL.md following the Agent Skills specification https://agentskills.io/specification . 证据：`skills/README.md`
- **Developer Protocol**（documentation）：Server: {{PACKAGE NAME}} Version: 0.1.0 Framework: @cyanheads/mcp-ts-core https://www.npmjs.com/package/@cyanheads/mcp-ts-core ^{{FRAMEWORK VERSION}} Engines: Bun ≥1.3.0, Node ≥24.0.0 MCP SDK: @modelcontextprotocol/sdk {{MCP SDK VERSION}} Zod: {{ZOD VERSION}} 证据：`templates/AGENTS.md`
- **Developer Protocol**（documentation）：Server: {{PACKAGE NAME}} Version: 0.1.0 Framework: @cyanheads/mcp-ts-core https://www.npmjs.com/package/@cyanheads/mcp-ts-core ^{{FRAMEWORK VERSION}} Engines: Bun ≥1.3.0, Node ≥24.0.0 MCP SDK: @modelcontextprotocol/sdk {{MCP SDK VERSION}} Zod: {{ZOD VERSION}} 证据：`templates/CLAUDE.md`
- **README.md Conventions for MCP Servers**（documentation）：README.md Conventions for MCP Servers 证据：`skills/polish-docs-meta/references/readme.md`
- **Package**（package_manifest）：{ "name": "@cyanheads/mcp-ts-core", "version": "0.9.1", "mcpName": "io.github.cyanheads/mcp-ts-core", "description": "Agent-native TypeScript framework for building MCP servers. Declarative definitions with auth, multi-backend storage, OpenTelemetry, and first-class support for Bun/Node/Cloudflare Workers.", "main": "dist/core/index.js", "types": "dist/core/index.d.ts", "files": "changelog/", "dist/", "scripts/build-changelog.ts", "scripts/build.ts", "scripts/check-docs-sync.ts", "scripts/check-framework-antipatterns.ts", "scripts/check-skills-sync.ts", "scripts/clean.ts", "scripts/devcheck.ts", "scripts/lint-mcp.ts", "scripts/split-changelog.ts", "scripts/tree.ts", "skills/", "templates/",… 证据：`package.json`
- **Package**（package_manifest）：{ "name": "{{PACKAGE NAME}}", "version": "0.1.0", "description": "", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "{{PACKAGE NAME}}": "dist/index.js" }, "files": "changelog/", "dist/", "README.md", "LICENSE", "CLAUDE.md", "AGENTS.md", "Dockerfile", "server.json" , "scripts": { "build": "tsx scripts/build.ts", "rebuild": "tsx scripts/clean.ts && tsx scripts/build.ts", "clean": "tsx scripts/clean.ts", "devcheck": "tsx scripts/devcheck.ts", "tree": "tsx scripts/tree.ts", "format": "biome check --write --unsafe .", "lint:mcp": "tsx scripts/lint-mcp.ts", "changelog:build": "tsx scripts/build-changelog.ts", "changelog:check": "tsx scripts/build-changelog.ts --ch… 证据：`templates/package.json`
- **When to Use**（skill_instruction）：App tools are rarely the right choice . Reach for one only when all of the following hold: 证据：`skills/add-app-tool/SKILL.md`
- **Context**（skill_instruction）：Subpath exports are defined in package.json under the exports field. Each subpath maps to a source entry point that gets compiled to dist/ . The exports catalog in CLAUDE.md must stay in sync with package.json . 证据：`skills/add-export/SKILL.md`
- **Context**（skill_instruction）：Prompts use the prompt builder from @cyanheads/mcp-ts-core . Each prompt lives in src/mcp-server/prompts/definitions/ with a .prompt.ts suffix and is registered into createApp in src/index.ts . Some repos later add definitions/index.ts barrels; match the project's current pattern. 证据：`skills/add-prompt/SKILL.md`
- **Context**（skill_instruction）：Providers implement interfaces defined in core. They are selected at runtime via config e.g., STORAGE PROVIDER TYPE . Tier 3 providers lazy-load their dependencies to keep the core bundle small. 证据：`skills/add-provider/SKILL.md`
- **Context**（skill_instruction）：Resources use the resource builder from @cyanheads/mcp-ts-core . Each resource lives in src/mcp-server/resources/definitions/ with a .resource.ts suffix and is registered into createApp in src/index.ts . Some repos later add definitions/index.ts barrels; follow the pattern already used by the project. 证据：`skills/add-resource/SKILL.md`
- **Context**（skill_instruction）：Services use the init/accessor pattern: initialized once in createApp 's setup callback, then accessed at request time via a lazy getter. Each service lives in src/services/ domain / with an init function and accessor. 证据：`skills/add-service/SKILL.md`
- **Context**（skill_instruction）：Tests use Vitest and createMockContext from @cyanheads/mcp-ts-core/testing . If the repo already has tests, match the existing layout. If the repo has no existing tests, create a root tests/ directory that mirrors the src/ structure e.g. tests/mcp-server/tools/definitions/echo.tool.test.ts for src/mcp-server/tools/definitions/echo.tool.ts . 证据：`skills/add-test/SKILL.md`
- **Context**（skill_instruction）：Tools use the tool builder from @cyanheads/mcp-ts-core . Each tool lives in src/mcp-server/tools/definitions/ with a .tool.ts suffix and is registered into createApp in src/index.ts . Some larger repos later add definitions/index.ts barrels; match the pattern already used by the project you're editing. 证据：`skills/add-tool/SKILL.md`
- **Overview**（skill_instruction）：The framework handles auth at the handler factory level — tools and resources declare required scopes declaratively, and the framework enforces them before calling the handler. No try/catch or manual scope checking required for the common case. 证据：`skills/api-auth/SKILL.md`
- **Overview**（skill_instruction）：DataCanvas is a primitive for storage stashes, canvas computes . The existing IStorageProvider is a key/value abstraction — it can stash blobs but exposes no analytical surface. DataCanvas is the analytical surface: register tabular data from upstream APIs, run SQL across multiple registered tables, and export results as CSV/Parquet/JSON. 证据：`skills/api-canvas/SKILL.md`
- **Overview**（skill_instruction）：Configuration has two layers: core config managed by the framework, env-driven and server config your own Zod schema for domain-specific env vars . Never merge them. 证据：`skills/api-config/SKILL.md`
- **Overview**（skill_instruction）：Every tool and resource handler receives a single Context ctx argument. It provides request identity, structured logging, tenant-scoped storage, optional protocol capabilities elicitation, sampling , cancellation, and task progress — all auto-correlated to the current request. 证据：`skills/api-context/SKILL.md`
- **Overview**（skill_instruction）：Error handling in @cyanheads/mcp-ts-core follows a strict layered pattern: tool and resource handlers throw McpError freely no try/catch , the handler factory catches and normalizes all errors, and services use ErrorHandler.tryCatch for graceful recovery. 证据：`skills/api-errors/SKILL.md`
- **Overview**（skill_instruction）：The linter validates tool, resource, and prompt definitions against the MCP spec and framework conventions. It runs in three places: 证据：`skills/api-linter/SKILL.md`
- **Overview**（skill_instruction）：Service interfaces are deferred from core's public exports — they remain in downstream servers until shared by 2+ servers. These are documented here for core contributors and servers that use the built-in providers. 证据：`skills/api-services/SKILL.md`
- **Overview**（skill_instruction）：The framework auto-instruments every tool, resource, prompt, storage, LLM, speech, and graph call — each gets its own span and the standard counters/histograms. HTTP server requests pick up spans from HttpInstrumentation or @hono/otel on the HTTP transport . Auth checks, session lifecycle, and task lifecycle are tracked as metrics only — auth decorates the active HTTP span with attributes, sessions and tasks emit counters. 证据：`skills/api-telemetry/SKILL.md`
- **Overview**（skill_instruction）：Tests target handler behavior directly — call handler input, ctx , assert on the return value or thrown error. The framework's handler factory try/catch, formatting, telemetry is not involved. Use createMockContext from @cyanheads/mcp-ts-core/testing to construct the ctx argument. 证据：`skills/api-testing/SKILL.md`
- **Overview**（skill_instruction）：Utility exports from @cyanheads/mcp-ts-core/utils . Utilities with complex APIs have dedicated reference files; simpler utilities are documented inline below. 证据：`skills/api-utils/SKILL.md`
- **Overview**（skill_instruction）：@cyanheads/mcp-ts-core/worker exports createWorkerHandler — the Workers entry point. It wraps tool/resource/prompt registries into a per-request McpServer factory that integrates with the Cloudflare Workers runtime. 证据：`skills/api-workers/SKILL.md`
- **When to Use**（skill_instruction）：- User says "I want to build a MCP server" - User has an API, database, or system they want to expose to LLMs - User wants to plan tools before scaffolding - Existing server needs a new capability area design the addition, not just a single tool 证据：`skills/design-mcp-server/SKILL.md`
- **Context**（skill_instruction）：Unit tests add-test skill verify handler logic with mocked context. Field testing exercises the real HTTP transport with real JSON-RPC: starts the server, calls initialize , surfaces the catalog, runs inputs, and checks what a client actually sees. It catches what unit tests miss — awkward input shapes, unhelpful errors, missing format output, drift between structuredContent and content , edge-case surprises. 证据：`skills/field-test/SKILL.md`
- **When to Use**（skill_instruction）：- After running bun update --latest yourself and wanting to review the impact Mode B — typical - To run the whole flow end-to-end — outdated check → update → investigate → adopt → verify Mode A - Periodically, to check for skill drift from the package 证据：`skills/maintenance/SKILL.md`
- **Context**（skill_instruction）：Before @cyanheads/mcp-ts-core was published as a package, users built servers by forking/cloning the mcp-ts-template repo. Those forks carry the full framework source code in their src/ and use @/ path aliases to import framework internals alongside their own server code. 证据：`skills/migrate-mcp-ts-template/SKILL.md`
- **When to Use**（skill_instruction）：- Server implementation is functionally complete tools, resources, prompts, services all working - bun run devcheck passes, tests pass - You're preparing for first commit, first release, or making the repo public - User says "polish", "polish docs", "finalize", "make it ship-ready", "clean up docs", or similar - Re-running after adding/removing tools, resources, or other surface area changes 证据：`skills/polish-docs-meta/SKILL.md`
- **Preconditions**（skill_instruction）：This skill runs after git wrapup. By the time it's invoked: 证据：`skills/release-and-publish/SKILL.md`
- **When to Use**（skill_instruction）：You've isolated a problem to @cyanheads/mcp-ts-core itself — not your server code, not a misconfiguration, not a missing peer dependency. Typical triggers: 证据：`skills/report-issue-framework/SKILL.md`
- **When to Use**（skill_instruction）：The bug is in this server's code, not in @cyanheads/mcp-ts-core . Typical triggers: 证据：`skills/report-issue-local/SKILL.md`
- **Context**（skill_instruction）：An MCP server is a new attack surface with unique properties — tool output feeds back into the LLM's context, scopes gate what the model can do on the user's behalf, and per-request state must stay tenant-scoped. This skill walks a server through eight axes shaped around what the server builder actually controls. Framework-level concerns transport, JSON-RPC parsing, auto-correlation, error classification are out of scope — mcp-ts-core handles those. 证据：`skills/security-pass/SKILL.md`
- **Context**（skill_instruction）：This skill assumes bunx @cyanheads/mcp-ts-core init name has already run. The CLI created the project's CLAUDE.md and AGENTS.md for different agents, copied external skills to skills/ , and scaffolded the directory structure with echo definitions as starting points. This skill covers what was created and what to do next. 证据：`skills/setup/SKILL.md`
- **Context**（skill_instruction）：Every string in a tool/resource/prompt definition is part of an LLM-facing API contract. The model reads the description, every parameter .describe , the output schema, the recovery hints — and decides what to call and how. Definition language drifts: an internal mapping leaks into a parameter doc during a fix, a self-referential output description survives a refactor, a default that suited the developer at scaffold time stays after the typical call shape changes. 证据：`skills/tool-defs-analysis/SKILL.md`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`LICENSE`
- **mcp-ts-core - Directory Structure**（documentation）：Note: This tree excludes files and directories matched by .gitignore and default patterns. 证据：`docs/tree.md`
- **Security Best Practices**（documentation）：This document provides security considerations for the Model Context Protocol MCP , complementing the MCP Authorization specification. This document identifies security risks, attack vectors, and best practices specific to MCP implementations. 证据：`docs/mcp-specification/2025-06-18/best-practices/security.md`
- **Authorization**（documentation）：The Model Context Protocol provides authorization capabilities at the transport level, enabling MCP clients to make requests to restricted MCP servers on behalf of resource owners. This specification defines the authorization flow for HTTP-based transports. 证据：`docs/mcp-specification/2025-06-18/core/authorization.md`
- **Lifecycle**（documentation）：The Model Context Protocol MCP defines a rigorous lifecycle for client-server connections that ensures proper capability negotiation and state management. 证据：`docs/mcp-specification/2025-06-18/core/lifecycle.md`
- **Overview**（documentation）：The Model Context Protocol consists of several key components that work together: 证据：`docs/mcp-specification/2025-06-18/core/overview.md`
- **Transports**（documentation）：MCP uses JSON-RPC to encode messages. JSON-RPC messages MUST be UTF-8 encoded. 证据：`docs/mcp-specification/2025-06-18/core/transports.md`
- **Cancellation**（documentation）：The Model Context Protocol MCP supports optional cancellation of in-progress requests through notification messages. Either side can send a cancellation notification to indicate that a previously-issued request should be terminated. 证据：`docs/mcp-specification/2025-06-18/utils/cancellation.md`
- **Completion**（documentation）：The Model Context Protocol MCP provides a standardized way for servers to offer argument autocompletion suggestions for prompts and resource URIs. This enables rich, IDE-like experiences where users receive contextual suggestions while entering argument values. 证据：`docs/mcp-specification/2025-06-18/utils/completion.md`
- **Logging**（documentation）：The Model Context Protocol MCP provides a standardized way for servers to send structured log messages to clients. Clients can control logging verbosity by setting minimum log levels, with servers sending notifications containing severity levels, optional logger names, and arbitrary JSON-serializable data. 证据：`docs/mcp-specification/2025-06-18/utils/logging.md`
- **Pagination**（documentation）：The Model Context Protocol MCP supports paginating list operations that may return large result sets. Pagination allows servers to yield results in smaller chunks rather than all at once. 证据：`docs/mcp-specification/2025-06-18/utils/pagination.md`
- **Ping**（documentation）：The Model Context Protocol includes an optional ping mechanism that allows either party to verify that their counterpart is still responsive and the connection is alive. 证据：`docs/mcp-specification/2025-06-18/utils/ping.md`
- **Progress**（documentation）：The Model Context Protocol MCP supports optional progress tracking for long-running operations through notification messages. Either side can send progress notifications to provide updates about operation status. 证据：`docs/mcp-specification/2025-06-18/utils/progress.md`
- **Core Components**（documentation）：Title: Architecture - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/architecture.md`
- **User Interaction Model**（documentation）：Title: Elicitation - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/client/elicitation.md`
- **Roots - Model Context Protocol**（documentation）：Title: Roots - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/client/roots.md`
- **Sampling - Model Context Protocol**（documentation）：Title: Sampling - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/client/sampling.md`
- **Authorization - Model Context Protocol**（documentation）：Title: Authorization - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/core/authorization.md`
- **Lifecycle - Model Context Protocol**（documentation）：Title: Lifecycle - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/core/lifecycle.md`
- **Overview - Model Context Protocol**（documentation）：Title: Overview - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/core/overview.md`
- **Transports - Model Context Protocol**（documentation）：Title: Transports - Model Context Protocol 证据：`docs/mcp-specification/2025-11-25/core/transports.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`AGENTS.md`, `CLAUDE.md`, `README.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`AGENTS.md`, `CLAUDE.md`, `README.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

The following material strengthens the Repomix/AI Context Pack body. Human Manual is only a reading skeleton; pitfall logs become hard operating constraints for the host AI.

## Human Manual Skeleton

Usage rule: this is only a reading path and salience signal, not factual authority. Concrete facts must still come from repo evidence / Claim Graph.

Hard rules for the host AI:
- Do not treat page titles, order, summaries, or importance as project facts.
- When explaining the Human Manual skeleton, state that it is only a reading path / salience signal.
- Capability, installation, compatibility, runtime status, and risk judgments must cite repo evidence, source paths, or Claim Graph.

- **Repository Overview**：importance `high`
  - source_paths: Dockerfile, README.md, package.json, skills/README.md, templates/Dockerfile
- **Entrypoints and Runtime Surface**：importance `high`
  - source_paths: Dockerfile, README.md, package.json, skills/README.md, templates/Dockerfile
- **Architecture Evidence Map**：importance `high`
  - source_paths: Dockerfile, README.md, package.json, skills/README.md, templates/Dockerfile
- **Operations and Verification Boundaries**：importance `high`
  - source_paths: Dockerfile, README.md, package.json, skills/README.md, templates/Dockerfile

## Repo Inspection Evidence

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `aead657d6c1f1569e39325f6d4622e61c09f6e5e`
- inspected_files: `Dockerfile`, `package.json`, `README.md`, `docs/tree.md`, `docs/telemetry/dashboards.md`, `docs/telemetry/mcp-ts-core-dashboard.json`, `docs/telemetry/observability.md`, `docs/mcp-specification/2025-11-25/architecture.md`, `docs/mcp-specification/2025-11-25/key-changes.md`, `docs/mcp-specification/2025-11-25/specification.md`, `docs/mcp-specification/2025-11-25/schema-reference.md`, `docs/mcp-specification/2025-06-18/utils/pagination.md`, `docs/mcp-specification/2025-06-18/utils/ping.md`, `docs/mcp-specification/2025-06-18/utils/logging.md`, `docs/mcp-specification/2025-06-18/utils/progress.md`, `docs/mcp-specification/2025-06-18/utils/completion.md`, `docs/mcp-specification/2025-06-18/utils/cancellation.md`, `docs/mcp-specification/2025-06-18/core/authorization.md`, `docs/mcp-specification/2025-06-18/core/overview.md`, `docs/mcp-specification/2025-06-18/core/transports.md`

Hard rules for the host AI:
- Without repo_clone_verified=true, do not claim the source code has been read.
- Without repo_inspection_verified=true, do not turn README/docs/package observations into facts.
- Without quick_start_verified=true, do not claim the Quick Start has been successfully run.

## Doramagic Pitfall Constraints

These rules come from Doramagic discovery, validation, or compilation pitfalls. The host AI must treat them as operating constraints, not general background notes.

### Constraint 1: 来源证据：bug(transport): HTTP per-request McpServer cleanup leaks ~30 KB/req on heap

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：bug(transport): HTTP per-request McpServer cleanup leaks ~30 KB/req on heap
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_b652b8d6139f43c1bcf51562afed3525 | https://github.com/cyanheads/mcp-ts-core/issues/50 | 来源讨论提到 docker 相关条件，需在安装/试用前复核。
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 2: 来源证据：bug(transport): list_changed notifications silently dropped under HTTP per-request McpServer model

- Trigger: GitHub 社区证据显示该项目存在一个配置相关的待验证问题：bug(transport): list_changed notifications silently dropped under HTTP per-request McpServer model
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_3d3b719431cb499f914e169e6dce21b2 | https://github.com/cyanheads/mcp-ts-core/issues/135 | 来源讨论提到 node 相关条件，需在安装/试用前复核。
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 3: 来源证据：feat(tool): flatten SDK input-validation error text and move issues to error.data (follow-up to #55)

- Trigger: GitHub 社区证据显示该项目存在一个配置相关的待验证问题：feat(tool): flatten SDK input-validation error text and move issues to error.data (follow-up to #55)
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能阻塞安装或首次运行。
- Evidence: community_evidence:github | cevd_ed2fba370b864c57980fcc78c30fa336 | https://github.com/cyanheads/mcp-ts-core/issues/66 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 4: 失败模式：security_permissions: feat(auth): add RFC 7662 Token Introspection as a third auth strategy

- Trigger: Developers should check this security_permissions risk before relying on the project: feat(auth): add RFC 7662 Token Introspection as a third auth strategy
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: feat(auth): add RFC 7662 Token Introspection as a third auth strategy. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Developers may expose sensitive permissions or credentials: feat(auth): add RFC 7662 Token Introspection as a third auth strategy
- Evidence: failure_mode_cluster:github_issue | fmev_79b989da05ab81a148513987aa506d71 | https://github.com/cyanheads/mcp-ts-core/issues/139 | feat(auth): add RFC 7662 Token Introspection as a third auth strategy
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 5: 失败模式：installation: feat(templates): MCPB bundle packaging for scaffolded servers

- Trigger: Developers should check this installation risk before relying on the project: feat(templates): MCPB bundle packaging for scaffolded servers
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: feat(templates): MCPB bundle packaging for scaffolded servers. Context: Observed when using node, docker, windows, macos
- Why it matters: Developers may fail before the first successful local run: feat(templates): MCPB bundle packaging for scaffolded servers
- Evidence: failure_mode_cluster:github_issue | fmev_22c10ce8863043b0adf9a54a6f51d108 | https://github.com/cyanheads/mcp-ts-core/issues/137 | feat(templates): MCPB bundle packaging for scaffolded servers
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 6: 来源证据：bug(utils): fetchWithTimeout collapses every non-ok HTTP status to ServiceUnavailable, erasing codes and causing spurio…

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：bug(utils): fetchWithTimeout collapses every non-ok HTTP status to ServiceUnavailable, erasing codes and causing spurious retries
- Host AI rule: 来源显示可能已有修复、规避或版本变化，说明书中必须标注适用版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_9f6a4823d56640848bd04ac60d2856af | https://github.com/cyanheads/mcp-ts-core/issues/126 | 来源讨论提到 macos 相关条件，需在安装/试用前复核。
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 7: 失败模式：configuration: Connect card: active-tab styling, default to Claude, add Codex/Cursor/Gemini

- Trigger: Developers should check this configuration risk before relying on the project: Connect card: active-tab styling, default to Claude, add Codex/Cursor/Gemini
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: Connect card: active-tab styling, default to Claude, add Codex/Cursor/Gemini. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Developers may misconfigure credentials, environment, or host setup: Connect card: active-tab styling, default to Claude, add Codex/Cursor/Gemini
- Evidence: failure_mode_cluster:github_issue | fmev_5c7acd2f18c877d832b1a859cd234468 | https://github.com/cyanheads/mcp-ts-core/issues/136 | Connect card: active-tab styling, default to Claude, add Codex/Cursor/Gemini
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 8: 失败模式：configuration: bug(utils): fetchWithTimeout attaches full upstream HTTP error body to error.data.responseBod...

- Trigger: Developers should check this configuration risk before relying on the project: bug(utils): fetchWithTimeout attaches full upstream HTTP error body to error.data.responseBody — no cap, no MIME filter
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: bug(utils): fetchWithTimeout attaches full upstream HTTP error body to error.data.responseBody — no cap, no MIME filter. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Developers may misconfigure credentials, environment, or host setup: bug(utils): fetchWithTimeout attaches full upstream HTTP error body to error.data.responseBody — no cap, no MIME filter
- Evidence: failure_mode_cluster:github_issue | fmev_7d40e777d2ccdbab34bc3b3d1402bd71 | https://github.com/cyanheads/mcp-ts-core/issues/120 | bug(utils): fetchWithTimeout attaches full upstream HTTP error body to error.data.responseBody — no cap, no MIME filter
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 9: 失败模式：configuration: bug(worker): Workers compatibility — runtime detection broken under nodejs_compat, plus 8 rel...

- Trigger: Developers should check this configuration risk before relying on the project: bug(worker): Workers compatibility — runtime detection broken under nodejs_compat, plus 8 related findings
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: bug(worker): Workers compatibility — runtime detection broken under nodejs_compat, plus 8 related findings. Context: Observed when using node
- Why it matters: Developers may misconfigure credentials, environment, or host setup: bug(worker): Workers compatibility — runtime detection broken under nodejs_compat, plus 8 related findings
- Evidence: failure_mode_cluster:github_issue | fmev_41ff925fb40ebff8720b5c65f8b20ece | https://github.com/cyanheads/mcp-ts-core/issues/124 | bug(worker): Workers compatibility — runtime detection broken under nodejs_compat, plus 8 related findings
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.

### Constraint 10: 失败模式：configuration: changelog: raise summary cap from 250 → 350 chars

- Trigger: Developers should check this configuration risk before relying on the project: changelog: raise summary cap from 250 → 350 chars
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: changelog: raise summary cap from 250 → 350 chars. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Developers may misconfigure credentials, environment, or host setup: changelog: raise summary cap from 250 → 350 chars
- Evidence: failure_mode_cluster:github_issue | fmev_5d2f31e619abdbc2e753d5c67819c1a8 | https://github.com/cyanheads/mcp-ts-core/issues/129 | changelog: raise summary cap from 250 → 350 chars
- Hard boundary: do not present this pitfall as solved, verified, or safe to ignore unless later validation evidence explicitly closes it.
