# @apify/actors-mcp-server - Doramagic AI Context Pack

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

## 充分原则

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

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 @apify/actors-mcp-server 编译的 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 文档。 证据：`.claude/skills/bug-triage/SKILL.md`, `.claude/skills/dig/SKILL.md` Claim：`clm_0004` supported 0.86

## 它能做什么

- **AI Skill / Agent 指令资产库**（可做安装前预览）：项目包含可被宿主 AI 读取的 Skill 或 Agent 指令文件，可用于把专业流程带入 Claude、Codex、Cursor 等宿主。 证据：`.claude/skills/bug-triage/SKILL.md`, `.claude/skills/dig/SKILL.md` Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md` Claim：`clm_0002` supported 0.86

## 怎么开始

- `npx @apify/actors-mcp-server --tools actors,docs,apify/rag-web-browser` 证据：`README.md` Claim：`clm_0005` supported 0.86
- `npx @apify/actors-mcp-server --tools apify/my-actor` 证据：`README.md` Claim：`clm_0006` supported 0.86
- `npx @apify/actors-mcp-server --ui true` 证据：`README.md` Claim：`clm_0007` supported 0.86
- `npx @apify/actors-mcp-server` 证据：`README.md` Claim：`clm_0005` supported 0.86, `clm_0006` supported 0.86, `clm_0007` supported 0.86, `clm_0008` supported 0.86 等
- `npx @apify/actors-mcp-server --telemetry-enabled=false` 证据：`README.md` Claim：`clm_0009` supported 0.86
- `npx @modelcontextprotocol/inspector node ./dist/stdio.js` 证据：`README.md` Claim：`clm_0010` 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 或项目证据支撑，但仍不等于真实安装效果。 证据：`.claude/skills/bug-triage/SKILL.md`, `.claude/skills/dig/SKILL.md` Claim：`clm_0004` supported 0.86
- **能力存在：AI Skill / Agent 指令资产库**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`.claude/skills/bug-triage/SKILL.md`, `.claude/skills/dig/SKILL.md` Claim：`clm_0001` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.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 的默认行为。 证据：`.claude/skills/bug-triage/SKILL.md`, `.claude/skills/dig/SKILL.md`, `CLAUDE.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。
- **安装命令是否需要网络、权限或全局写入？**（unverified）：这影响企业环境和个人环境的安装风险。 证据：`README.md`

### 继续会触碰什么

- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`.claude/skills/bug-triage/SKILL.md`, `.claude/skills/dig/SKILL.md`, `CLAUDE.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`README.md`
- **环境变量 / API Key**：项目入口文档明确出现 API key、token、secret 或账号凭证配置。 原因：如果真实安装需要凭证，应先使用测试凭证并经过权限/合规判断。 证据：`.mcp.json`, `CLAUDE.md`, `DEVELOPMENT.md`, `README.md` 等
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

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

### 退出方式

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

## 哪些只能预览

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

## 哪些必须安装后验证

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

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0011` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0012` 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 体验。 证据：`.claude/skills/bug-triage/SKILL.md`, `.claude/skills/dig/SKILL.md` Claim：`clm_0001` supported 0.86
- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md` Claim：`clm_0002` supported 0.86

### 上下文规模

- 文件总数：297
- 重要文件覆盖：40/297
- 证据索引条目：77
- 角色 / Skill 条目：2

### 证据不足时的处理

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

## Prompt Recipes

### 适配判断

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

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

### 安装前体验

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

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

请严格输出四段：
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
请基于 @apify/actors-mcp-server 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```


## 角色 / Skill 索引

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

- **bug-triage**（skill）：- 激活提示：当用户任务与“bug-triage”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`.claude/skills/bug-triage/SKILL.md`
- **dig**（skill）：- 激活提示：当用户任务与“dig”描述的流程高度相关时，先用它做安装前体验，再决定是否安装。 证据：`.claude/skills/dig/SKILL.md`

## 证据索引

- 共索引 77 条证据。

- **Apify MCP server**（documentation）：TypeScript, ES modules. Runs in two modes: stdio local CLI clients, stdio.ts and HTTP Streamable dev server.ts . 证据：`CLAUDE.md`
- **Table of Contents**（documentation）：The Apify Model Context Protocol MCP server at mcp.apify.com https://mcp.apify.com enables your AI agents to extract data from social media, search engines, maps, e-commerce sites, and any other website using thousands of ready-made scrapers, crawlers, and automation tools from Apify Store https://apify.com/store . It supports OAuth, allowing you to connect from clients like Claude.ai or Visual Studio Code using just the URL. 证据：`README.md`
- **MCP tool selection evaluation**（documentation）：Evaluates MCP server tool selection. Phoenix is used only for storing results and visualization. 证据：`evals/README.md`
- **Tests**（documentation）：This directory contains unit and integration tests for the actors-mcp-server project. 证据：`tests/README.md`
- **Workflow Evaluation System**（documentation）：Tests AI agents performing multi-turn conversations with Apify MCP tools, evaluated by an LLM judge. 证据：`evals/workflows/README.md`
- **Package**（package_manifest）：{ "name": "@apify/actors-mcp-server", "version": "0.10.9", "type": "module", "description": "Apify MCP Server", "mcpName": "com.apify/apify-mcp-server", "engines": { "node": " =22.0.0" }, "devEngines": { "packageManager": { "name": "pnpm", "version": "11.1.3", "onFail": "error" } }, "packageManager": "pnpm@11.1.3", "main": "dist/index.js", "exports": { ".": "./dist/index.js", "./internals": "./dist/index internals.js", "./internals.js": "./dist/index internals.js", "./manifest.json": "./manifest.json" }, "bin": { "actors-mcp-server": "./dist/stdio.js" }, "files": "dist", "LICENSE", "package.json", "server.json", "manifest.json" , "repository": { "type": "git", "url": "https://github.com/api… 证据：`package.json`
- **Contributing Guidelines**（documentation）：Welcome! This document describes how to contribute to this repository. Following these guidelines helps us maintain a clean history, consistent quality, and smooth review process. All pull requests are subject to automated and manual review against these guidelines. 证据：`CONTRIBUTING.md`
- **Package**（package_manifest）：{ "name": "@apify/mcp-web-widget", "version": "0.1.0", "type": "module", "scripts": { "dev": "node build.js --watch", "build": "node build.js" }, "keywords": , "author": "", "license": "ISC", "description": "", "dependencies": { "@apify/ui-icons": "^1.27.2", "@apify/ui-library": "^1.124.0", "@modelcontextprotocol/ext-apps": "^1.1.2", "pluralize": "^8.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "styled-components": "^6.3.8" }, "devDependencies": { "@types/pluralize": "^0.0.33", "@types/react": "^19.2.7", "@types/react-dom": "^19.2.3", "autoprefixer": "^10.4.20", "esbuild": "^0.28.0", "postcss": "^8.4.49", "tailwindcss": "^3.4.17", "typescript": "^5.6.3" } } 证据：`src/web/package.json`
- **Bug Triage**（skill_instruction）：Triage open bug issues on apify/apify-mcp-server . Analyze, draft responses, get approval, post. 证据：`.claude/skills/bug-triage/SKILL.md`
- **Dig**（skill_instruction）：Flexible skill for exploring, planning, and speccing work on the Apify MCP server. Do NOT edit source files — this skill is for understanding and planning only. 证据：`.claude/skills/dig/SKILL.md`
- **Changelog**（documentation）：All notable changes to this project will be documented in this file. 证据：`CHANGELOG.md`
- **Design System Agent Instructions**（documentation）：CRITICAL : These instructions are MANDATORY for all UI/frontend work. Follow exactly as written. 证据：`DESIGN_SYSTEM_AGENT_INSTRUCTIONS.md`
- **Development**（documentation）：This repository public provides: - The core MCP server implementation published as an NPM package - The stdio entry point CLI - An Express HTTP server for local development and testing 证据：`DEVELOPMENT.md`
- **License**（documentation）：Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files the "Software" , to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 证据：`LICENSE.md`
- **Failed Cases Analysis & Implementation Guide**（documentation）：Failed Cases Analysis & Implementation Guide 证据：`evals/2025_11_04_failed_cases_analysis.md`
- **Actor Input Schema: required vs default vs prefill**（documentation）：Actor Input Schema: required vs default vs prefill 证据：`res/actor_input_schema_required_fields.md`
- **Algolia Search Response Analysis**（documentation）：This document contains insights about Algolia API responses for each documentation source. This information helps understand the data structure returned by Algolia and informs decisions about response processing logic. 证据：`res/algolia.md`
- **V4 — call-actor redesign RFC**（documentation）：Status: contract being implemented across PRs 823 get-actor-run waitSecs and 825 call-actor waitSecs + storage reshape . Field names below reflect the final shipping shape, not the original draft. Audience: PM and tech lead. No prior reading required — this document is self-contained. 证据：`res/call_actor_redesign_v4.md`
- **ChatGPT MCP Apps Submission**（documentation）：Status: In Progress Last updated: 2026-03-12 证据：`res/chatgpt-app-submission.md`
- **Resources Directory Index**（documentation）：This directory contains useful documents and insights about the repository architecture, design decisions, and implementation details that don't belong in code comments or JSDoc. 证据：`res/index.md`
- **Integration test coverage audit**（documentation）：Audit of tests/integration/suite.ts against the MCP 2025-11-25 spec and the request handlers actually wired in src/mcp/server.ts and src/dev server.ts . Goal: identify protocol-level gaps that block confident deploys, without duplicating SDK or unit tests. 证据：`res/integration_test_coverage_audit.md`
- **Integration test coverage — implementation plan PR / issue breakdown**（documentation）：Integration test coverage — implementation plan PR / issue breakdown 证据：`res/integration_test_coverage_plan.md`
- **MCP Resources Implementation Analysis for Apify MCP Server**（documentation）：MCP Resources Implementation Analysis for Apify MCP Server 证据：`res/mcp_resources_analysis.md`
- **MCP Server Refactoring: Migration to High-Level API**（documentation）：MCP Server Refactoring: Migration to High-Level API 证据：`res/mcp_server_refactor_analysis.md`
- **MCP Tasks and SDK Features Reference**（documentation）：MCP Tasks and SDK Features Reference 证据：`res/mcp_task_reference.md`
- **Patterns for Simplifying the Apify MCP Server Codebase**（documentation）：Patterns for Simplifying the Apify MCP Server Codebase 证据：`res/patterns_for_simplification.md`
- **Pricing output contract**（documentation）：Contract for pricingInfoToStructured and pricingInfoToString in src/utils/pricing info.ts . 证据：`res/pricing_output_contract.md`
- **tasks/cancel → Actor abort flow**（documentation）：How a client's tasks/cancel request gets translated into an actual apifyClient.run runId .abort call against the Apify platform, and what PR 812 issue 763 changed. 证据：`res/tasks_cancel_abort_flow.md`
- **Web Widget Bundle Size Notes**（documentation）：The widget bundles in src/web/dist must stay self-contained, but the top-level @apify/ui-library and @apify/ui-icons entrypoints are expensive to bundle. 证据：`res/web-widget-bundle-size.md`
- **Key principles**（documentation）：You are a development testing agent for the Apify MCP server. Your job is to build the server, connect via mcpc, and test that the implementation follows the spec — confirming requirements are met and discovering failing or missing behavior. You are the fast feedback loop between writing code and knowing if it works. 证据：`.claude/agents/mcpc-tester.md`
- **.Mcp**（structured_config）：{ "mcpServers": { "storybook": { "type": "http", "url": "https://baldasseva--storybook-mcp.apify.actor/mcp?token=${APIFY TOKEN}" }, "figma": { "type": "http", "url": "https://mcp.figma.com/mcp" }, "dev": { "type": "http", "url": "http://localhost:3001", "headers": { "Authorization": "Bearer ${APIFY TOKEN}" } }, "stdio": { "command": "node", "args": "dist/stdio.js" , "env": { "APIFY TOKEN": "${APIFY TOKEN}", "NODE EXTRA CA CERTS": "${NODE EXTRA CA CERTS}" } }, "stdio-full": { "command": "node", "args": "dist/stdio.js", "--tools=actors,docs,experimental,runs,storage,apify/rag-web-browser" , "env": { "APIFY TOKEN": "${APIFY TOKEN}", "NODE EXTRA CA CERTS": "${NODE EXTRA CA CERTS}" } } } } 证据：`.mcp.json`
- **Claude Code Tools**（structured_config）：{ "tools": { "name": "Task", "description": "Launch a new agent to handle complex, multi-step tasks autonomously. \n\nAvailable agent types and the tools they have access to:\n- general-purpose: General-purpose agent for researching complex questions, searching for code, and executing multi-step tasks. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries use this agent to perform the search for you. Tools: \n- statusline-setup: Use this agent to configure the user's Claude Code status line setting. Tools: Read, Edit \n- output-style-setup: Use this agent to create a Claude Code output style. Tools: Read, Write, Edit, Gl… 证据：`docs/claude-code-tools.json`
- **Tsconfig**（structured_config）：{ "compilerOptions": { "target": "ES2019", "module": "ES2022", "moduleResolution": "bundler", "lib": "ESNext" , "strict": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "skipLibCheck": true, "noEmit": true, "types": "vitest/globals" }, "include": " .ts" } 证据：`evals/tsconfig.json`
- **Glama**（structured_config）：{ "$schema": "https://glama.ai/mcp/schemas/server.json", "maintainers": "jirispilka", "mq37" } 证据：`glama.json`
- **Manifest**（structured_config）：{ "manifest version": "0.3", "name": "apify-mcp-server", "display name": "Apify", "version": "0.10.9", "description": "Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store.", "long description": "Apify is the world's largest marketplace of tools for web scraping, crawling, data extraction, and web automation. Get structured data from social media, e-commerce, search engines, maps, travel sites, or any other website.", "keywords": "apify", "actors", "dataset", "mcp", "automation", "web", "web automation", "web scraper", "web crawler", "scraping", "crawl", "crawler", "crawling", "ai", "data", "extraction", "bright", "fire", "data extraction", "API… 证据：`manifest.json`
- **Server**（structured_config）：{ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "com.apify/apify-mcp-server", "description": "Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡", "repository": { "url": "https://github.com/apify/apify-mcp-server", "source": "github" }, "version": "0.10.9", "remotes": { "type": "streamable-http", "url": "https://mcp.apify.com/", "headers": { "name": "Authorization", "description": "Apify API token for authentication with Apify platform services. For example 'Bearer '", "isRequired": true, "isSecret": true } } } 证据：`server.json`
- **Tsconfig**（structured_config）：{ "extends": "../tsconfig.json", "compilerOptions": { "rootDir": "./", "outDir": "../dist", "noEmit": false, }, "include": "./ / " , "exclude": "web" } 证据：`src/tsconfig.json`
- **Tsconfig**（structured_config）：{ "extends": "@apify/tsconfig", "compilerOptions": { "module": "ES2022", "moduleResolution": "Bundler", "skipLibCheck": true, "noEmit": true, }, "include": "src/ / ", "tests/ / " , "exclude": "src/web" } 证据：`tsconfig.json`
- **Results**（structured_config）：{ "version": "1.0", "results": { "anthropic/claude-haiku-4.5:x-ai/grok-4.1-fast:search-google-maps": { "timestamp": "2026-01-07T10:59:07.836Z", "agentModel": "anthropic/claude-haiku-4.5", "judgeModel": "x-ai/grok-4.1-fast", "testId": "search-google-maps", "verdict": "PASS", "reason": "The agent used the appropriate search-actors tool with correct arguments to find Google Maps-related actors and provided a clear response with more than 3 results, including names and detailed descriptions meeting all requirements.", "durationMs": 15021, "turns": 2, "error": null }, "anthropic/claude-haiku-4.5:x-ai/grok-4.1-fast:search-add-python-actor": { "timestamp": "2026-01-07T10:59:07.837Z", "agentModel":… 证据：`evals/workflows/results.json`
- **Tsconfig**（structured_config）：{ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, "lib": "ES2020", "DOM", "DOM.Iterable" , "module": "ESNext", "skipLibCheck": true, "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, "esModuleInterop": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, "types": }, "include": "src" } 证据：`src/web/tsconfig.json`
- **configurations**（source_file）：crawlee and apify storage folders apify storage crawlee storage storage 证据：`.dockerignore`
- **EditorConfig is a file format and collection of text editor plugins**（source_file）：EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs See https://editorconfig.org for more information 证据：`.editorconfig`
- **EVALS**（source_file）：EVALS PHOENIX API KEY= PHOENIX HOST= 证据：`.env.example`
- **This file tells Git which files shouldn't be added to source control**（source_file）：This file tells Git which files shouldn't be added to source control 证据：`.gitignore`
- **.npmignore**（source_file）：.npmignore Exclude everything by default 证据：`.npmignore`
- **.nvmrc**（source_file）：24 证据：`.nvmrc`
- **.sentryclirc**（source_file）：defaults org=apify project=apify-mcp 证据：`.sentryclirc`
- **Stage 1: Build the project**（source_file）：Stage 1: Build the project FROM node:24-alpine AS builder 证据：`Dockerfile`
- **Apify Logo**（source_file）： 证据：`docs/apify-logo.svg`
- **Important tool context**（source_file）：/ Configuration for Apify MCP Server evaluations. / 证据：`evals/config.ts`
- **!/usr/bin/env tsx**（source_file）：!/usr/bin/env tsx / One-time script to create Phoenix dataset from test cases. Run this once to upload test cases to Phoenix platform and receive a dataset ID. / 证据：`evals/create_dataset.ts`
- **!/usr/bin/env tsx**（source_file）：import dotenv from 'dotenv'; import log from '@apify/log'; import { loadTools, createOpenRouterTask, createToolSelectionLLMEvaluator, loadTestCases, filterById, type TestCase } from './evaluation utils.js'; import { PASS THRESHOLD } from './config.js'; 证据：`evals/eval_single.ts`
- **Evaluation Utils**（source_file）：/ Shared evaluation utilities extracted from run-evaluation.ts / 证据：`evals/evaluation_utils.ts`
- **!/usr/bin/env tsx**（source_file）：!/usr/bin/env tsx / Main evaluation script for MCP tool calling TypeScript version . / 证据：`evals/run_evaluation.ts`
- **Evaluation 2025**（source_file）：{ "cells": { "cell type": "markdown", "metadata": { "id": "-CjOraVLBBeV" }, "source": " MCP Evaluation\n", "\n", " Context\n", "\n", "For the MCP server tool calls evaluation, there are several objectives:\n", "\n", "1. Help to identify problems in the description of the tools\n", "2. Create a test suite that can be run manually or automatically in a CI\n", "3. Allow for quick iteration on the tool descriptions\n", "\n", "We considered several options to evaluate the MCP server tool calls.\n", "\n", "1. ✍️ Create test cases manually \n", "\n", "- Pros: \n", " - Straightforward approach\n", " - Simple to create test cases for each tool\n", "\n", "- Cons: \n", " - A bit complicated to create… 证据：`notebooks/evaluation_2025.ipynb`
- **Oxlint.Config**（source_file）：import { defineConfig } from '@apify/oxlint-config'; 证据：`oxlint.config.ts`
- **72-hour quarantine on newly published versions to blunt supply-chain attacks**（source_file）：72-hour quarantine on newly published versions to blunt supply-chain attacks compromised packages typically get yanked within hours of discovery, but the longer window catches slow-detection cases too . Excludes are scopes we publish ourselves and trust on the same release cadence. minimumReleaseAge: 4320 minimumReleaseAgeExclude: - "@apify/ " - "@apify-packages/ " 证据：`pnpm-workspace.yaml`
- **Pyproject**（source_file）：project name = "apify-mcp-evals" version = "0.1.0" description = "Python evaluations for Apify MCP Server using Arize Phoenix" requires-python = " =3.12" dependencies = "arize-phoenix =12.5.0", "anthropic =0.33.1", "openai =1.0.0", "pandas =2.0.0", "python-dotenv =1.0.0", "tqdm =4.65.0", 证据：`pyproject.toml`
- **Check Widgets**（source_file）：/ eslint-disable no-console / / Build-time check to ensure widget files exist This script validates that all registered widgets have corresponding files / 证据：`scripts/check_widgets.ts`
- **!/usr/bin/env node**（source_file）：!/usr/bin/env node / Dev orchestrator: runs web widget builder in watch mode and the MCP server in standby dev mode. Ensures the server always reads compiled assets from src/web/dist while enabling hot-reload. / 证据：`scripts/dev_standby.js`
- 其余 17 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

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

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

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

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

## 验收标准

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

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **项目简介**：importance `high`
  - source_paths: README.md, package.json, server.json
- **系统架构**：importance `high`
  - source_paths: src/index.ts, src/index_internals.ts, src/mcp/server.ts, src/mcp/client.ts, src/state.ts
- **MCP 协议实现**：importance `high`
  - source_paths: src/mcp/server.ts, src/mcp/client.ts, src/mcp/actors.ts, src/mcp/proxy.ts, src/mcp/utils.ts
- **Actor 工具系统**：importance `high`
  - source_paths: src/tools/actor_executor.ts, src/tools/core/actor_tools_factory.ts, src/tools/core/call_actor_common.ts, src/tools/default/call_actor.ts, src/tools/default/search_actors.ts
- **支付系统集成**：importance `medium`
  - source_paths: src/payments/index.ts, src/payments/x402.ts, src/payments/skyfire.ts, src/payments/resolve.ts, src/payments/helpers.ts
- **存储管理**：importance `medium`
  - source_paths: src/tools/common/get_dataset.ts, src/tools/common/get_dataset_items.ts, src/tools/common/get_dataset_schema.ts, src/tools/common/dataset_collection.ts, src/tools/common/get_key_value_store.ts
- **遥测与监控**：importance `medium`
  - source_paths: src/telemetry.ts, src/utils/logging.ts, src/utils/progress.ts, .sentryclirc
- **前端架构**：importance `medium`
  - source_paths: src/web/src/index.css, src/web/src/context/mcp-app-context.tsx, src/web/src/hooks/use-max-height.ts, src/web/src/hooks/use-widget-props.ts, src/web/tailwind.config.js

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `a6600017d733743b702f2989008216197b87f0f2`
- inspected_files: `pyproject.toml`, `pnpm-lock.yaml`, `Dockerfile`, `package.json`, `README.md`, `docs/claude-code-tools.json`, `src/stdio.ts`, `src/server_card.ts`, `src/errors.ts`, `src/index.ts`, `src/index_internals.ts`, `src/types.ts`, `src/instrument.ts`, `src/apify_client.ts`, `src/state.ts`, `src/tsconfig.json`, `src/dev_server.ts`, `src/telemetry.ts`, `src/input.ts`, `src/const.ts`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 来源证据：fix: Allow calling MCP server actors in normal (one-shot) mode

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：fix: Allow calling MCP server actors in normal (one-shot) mode
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_be82315ed0f441ba9d942931d846d78c | https://github.com/apify/apify-mcp-server/issues/857 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：Remove the flat-fields back-compat shim from `_meta.x402` once all consumers read `accepts[]`

- Trigger: GitHub 社区证据显示该项目存在一个配置相关的待验证问题：Remove the flat-fields back-compat shim from `_meta.x402` once all consumers read `accepts[]`
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响升级、迁移或版本选择。
- Evidence: community_evidence:github | cevd_8ec6ff22f24a4bb18b439177f4a8c270 | https://github.com/apify/apify-mcp-server/issues/892 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 来源证据：Do not include the rag web browser when ?payment=x402

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：Do not include the rag web browser when ?payment=x402
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响授权、密钥配置或安全边界。
- Evidence: community_evidence:github | cevd_23bafe4901554148896241f0a1e183b0 | https://github.com/apify/apify-mcp-server/issues/875 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 来源证据：Perf: `search-actors` tools returns huuuge `inputFields` object

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：Perf: `search-actors` tools returns huuuge `inputFields` object
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响授权、密钥配置或安全边界。
- Evidence: community_evidence:github | cevd_af51cb3cbcb3479fbbdf27cedef734aa | https://github.com/apify/apify-mcp-server/issues/888 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 来源证据：feat(telemetry): track tool result size in bytes

- Trigger: GitHub 社区证据显示该项目存在一个安全/权限相关的待验证问题：feat(telemetry): track tool result size in bytes
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响授权、密钥配置或安全边界。
- Evidence: community_evidence:github | cevd_9c2ef77c88914458910ae67d9f903931 | https://github.com/apify/apify-mcp-server/issues/838 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 仓库名和安装名不一致

- Trigger: 仓库名 `apify-mcp-server` 与安装入口 `@apify/actors-mcp-server` 不完全一致。
- Host AI rule: 在 npm/PyPI/GitHub 上确认包名映射和官方 README 说明。
- Why it matters: 用户照着仓库名搜索包或照着包名找仓库时容易走错入口。
- Evidence: identity.distribution | github_repo:911256711 | https://github.com/apify/apify-mcp-server | repo=apify-mcp-server; install=@apify/actors-mcp-server
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 来源证据：chore(core): collapse array indices in dataset fields to prevent nextStep schema bloat

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：chore(core): collapse array indices in dataset fields to prevent nextStep schema bloat
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_9c05c17621e3443dad6175f21db31a34 | https://github.com/apify/apify-mcp-server/issues/894 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 来源证据：feat: Add structured output to remaining storage tools

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：feat: Add structured output to remaining storage tools
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_c9b7c39f3e8f43e88ee52c2c8ae94b01 | https://github.com/apify/apify-mcp-server/issues/884 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 9: 来源证据：feat: migrate direct actor tools to canonical RunResponse shape

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：feat: migrate direct actor tools to canonical RunResponse shape
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能阻塞安装或首次运行。
- Evidence: community_evidence:github | cevd_6b304ff2763849fe9b4678cc7bf9f5b2 | https://github.com/apify/apify-mcp-server/issues/852 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 10: 来源证据：test: Consolidate duplicated MCP server test fixtures

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：test: Consolidate duplicated MCP server test fixtures
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_5a7a24d9e8ce42468a7775a54dfa8ca6 | https://github.com/apify/apify-mcp-server/issues/847 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
