AI Context Inspector

MCP运维云端

提供方 cocaxcode · 包名 @cocaxcode/ai-context-inspector@latest

运维云端 stdio · 本地进程 无需鉴权 社区 / 第三方 Claude DesktopClaudeCursorWindsurf
查看接入方式

AI Context Inspector是一个全面的AI生态系统扫描工具,能够发现项目中的AI配置文件、MCP服务器、自定义技能和代理,支持跨7种工具的配置导出和导入。

一句话选型结论

按资料字段整理

AI Context Inspector 属于运维云端类 MCP 服务器,stdio · 本地进程,无需鉴权,可直接接入 Claude Desktop、Claude、Cursor 等,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类运维云端 传输方式stdio · 本地进程 鉴权无需鉴权 部署方式本地部署
GitHub 星标 1 仓库热度,无公开仓库时显示未标注
工具数 5 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

运维云端
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量5暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

AI工具TypeScript本地部署配置管理MCP服务器跨平台支持本地运行

安装与配置

stdio · 本地进程 无需鉴权
客户端在本机拉起子进程,数据不出本机
npx -y @cocaxcode/ai-context-inspector@latest

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 5 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
云资源查询

查实例、存储、账单等云上资源状态。

部署与发布

把部署、重启、回滚这类操作接进对话。

监控与告警

拉取监控指标,异常时让模型帮你判断。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 5 个工具,职责相对集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
AI Context Inspector当前 5 stdio · 本地进程 本地部署 有 2026-05-17
lobehub 未标注 stdio · 本地进程 本地部署 有 2026-04-11
TrendRadar 未标注 stdio · 本地进程 本地部署 有 2026-04-13
Ui Tars Desktop 8a825770 未标注 stdio · 本地进程 本地部署 有 2026-05-17
ruflo 未标注 stdio · 本地进程 本地部署 有 2026-04-13
FastGPT 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

运维云端
字段来自项目仓库与公开索引,中文说明由本站标注
提供方cocaxcode上游标注的维护方 cocaxcode
分类运维云端本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时@cocaxcode/ai-context-inspector@latest · Node.js本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

12.4 KB
来自项目仓库与上游目录的原文,未做删改

@cocaxcode/ai-context-inspector

One command. Every AI config in your project. Instantly.

CLI + MCP server · 19 tools detected · Export/Import across 7 targets

Quick Start ·
MCP Server ·
What It Detects ·
Features ·
Tool Reference ·
Architecture


可用的最全面的AI生态系统扫描仪。AI上下文检查器可以在19个工具中发现项目中的每个AI配置文件、MCP服务器、自定义技能、代理和持久内存,并在几秒钟内为您提供全貌。导出整个AI设置,并将其导入到7个支持的工具(Claude、Cursor、Windsurf、Copilot、Gemini、Codex、OpenCode)中的任何一个,并自动进行秘密编辑。零配置。除了MCP SDK和Zod之外,零运行时依赖性。 一切都在本地运行——你的配置和凭据永远不会离开你的机器。


快速开始```bash

npx -y @cocaxcode/ai-context-inspector@latest


就是这样。一个HTML仪表板打开,其中包含你的AI工具所知道的关于你的项目的一切。```bash
# Scan a specific directory
npx -y @cocaxcode/ai-context-inspector@latest --dir /path/to/project

# Include user-level configs (~/.claude, ~/.gemini, etc.)
npx -y @cocaxcode/ai-context-inspector@latest --user

# Live-connect to each MCP server and list its tools
npx -y @cocaxcode/ai-context-inspector@latest --introspect

# Output raw JSON instead of HTML
npx -y @cocaxcode/ai-context-inspector@latest --json

All CLI flags

标志 描述 默认值
--dir 要扫描的目录 . (当前)
--user 包括用户级别配置(~/) false
--introspect 连接到MCP服务器并列出工具 false
--timeout 每台服务器的自检超时 10000
--json 输出JSON而不是HTML false
--mcp 作为MCP服务器运行(stdio传输) false

MCP服务器设置

作为MCP服务器运行,这样你的AI工具就可以检查自己的生态系统。

克劳德代码```bash

claude mcp add --scope user ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcp


### 克劳德桌面

添加 `claude_desktop_config.json`:```json
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}

Cursor / Windsurf / VS Code / Codex CLI

光标/风帆 --添加到 .cursor/mcp.json 或同等产品:```json
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}


**VS代码** --添加到 `.vscode/mcp.json`:```json
{
"servers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}

Codex CLI:```bash
codex mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcp


或直接添加到任何 `.mcp.json`:```json
{
"mcpServers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}

它检测到什么

工具 上下文文件 找到了什么
克劳德代码 CLAUDE.md, .claude/, .mcp.json 指令、MCP配置、技能、代理、内存
光标 .cursorrules, .cursor/rules/, .cursorignore 规则,忽略模式
帆板运动 .windsurfrules, .windsurf/rules/ Codeium/风帆规则
GitHub Copilot .github/copilot-instructions.md, .github/agents/ 说明、定制代理
双子星命令行工具 GEMINI.md, .gemini/, .geminiignore 配置、规则
OpenAI 代码专家 AGENTS.md, AGENT.md, .codex/ 代理商说明
开源代码 OPENCODE.md, .opencode/, opencode.json CLI配置
教唆者 .aider.conf.yml, .aiderignore 配置、模型设置
克莱恩 .clinerules, .clineignore 规则(文件或目录)
Roo代码 .roo/rules/, .roorules, .rooignore 规则
Continue.dev .continuerules, .continue/config.yaml 规则、配置
亚马逊Q .amazonq/rules/ 开发者规则
增强 .augment/rules/, .augment-guidelines 代码规则
回复 .replit.md 代理商说明
Firebase工作室 .idx/airules.md AI规则
VS代码 .vscode/mcp.json MCP配置
塔布宁 .tabnine.yaml AI配置
源代码图 .sourcegraph/ 科迪配置
通用 CONVENTIONS.md 多工具惯例

> 提示: 通过 --user 还要扫描用户级别配置: ~/.claude/, ~/.gemini/, ~/.codex/, ~/.continue/, ~/.aider.conf.yml, ~/.augment/, ~/.github/agents/, ~/.codeium/, ~/.opencode/, ~/.tabnine/.

除了上下文文件,扫描仪还检测:

  • MCP服务器 从 .mcp.json, ~/.claude.json, .vscode/mcp.json,Claude Desktop配置——具有可选的实时自检功能
  • 定制技能 在 .claude/skills/ (包括来自的符号链接 npx skills add)
  • 自定义代理 在 .claude/agents/ 具有内存检测功能
  • 持久记忆 --克劳德内存、代理内存、engram、OpenSpec、ATL

特性

扫描```bash

npx -y @cocaxcode/ai-context-inspector@latest
npx -y @cocaxcode/ai-context-inspector@latest --user --introspect


生成一个包含暗/亮模式、搜索、可折叠部分、文件预览和颜色编码工具徽章的独立HTML仪表板。通过 `--json` 对于原始产量。

### 出口```bash
# Export your AI ecosystem to .aci/bundle.json
npx -y @cocaxcode/ai-context-inspector@latest export

# Export only MCP and context configs, redact secrets
npx -y @cocaxcode/ai-context-inspector@latest export --only mcp,context --secrets none

Export flags

标志 描述 默认值
--dir 要导出的目录 .
--output 输出目录 .aci/
--include-user 包括用户级别配置 false
--only 筛选器: mcp,skills,agents,memories,context 全部
--secrets none (修订)或 all (包括) 互动

导入```bash

Import into a Cursor project

npx -y @cocaxcode/ai-context-inspector@latest import --target cursor

Auto-detect tool, skip confirmation, overwrite existing

npx -y @cocaxcode/ai-context-inspector@latest import --yes --force


Import flags

|标志|描述|默认值|
|------|-------------|---------|
| `[file]` |JSON捆绑包路径|自动检测 `.aci/bundle.json` |
| `--dir ` |目标目录| `.` |
| `--target ` |目标工具(见表)|自动检测|
| `--scope ` | `project` 或 `user` |按资源|
| `--force` |覆盖现有资源| `false` |
| `--yes` |跳过确认提示| `false` |
| `--only ` |筛选器: `mcp,skills,agents,memories,context` |全部|
| `--secrets ` | `none` 或 `all` |交互式|

### 支持的导入目标

|目标|MCP配置|上下文文件|规则目录|技能|代理|
|--------|-----------|-------------|-----------|--------|--------|
| `claude` | `.mcp.json` | `CLAUDE.md` | -- | `.claude/skills/` | `.claude/agents/` |
| `cursor` | `.cursor/mcp.json` | `.cursorrules` | `.cursor/rules/` | -- | -- |
| `windsurf` | `.mcp.json` | `.windsurfrules` | `.windsurf/rules/` | -- | -- |
| `copilot` | `.vscode/mcp.json` | `.github/copilot-instructions.md` | `.github/instructions/` | -- | `.github/agents/` |
| `gemini` | `.gemini/settings.json` | `GEMINI.md` | `.gemini/rules/` | -- | -- |
| `codex` | `.mcp.json` | `AGENTS.md` | `.codex/rules/` | -- | -- |
| `opencode` | `opencode.json` | `OPENCODE.md` | `.opencode/rules/` | -- | -- |

> **注:** 秘密处理有三种模式: **无** (全部编辑——安全共享), **全部** (按原样包括),或 **交互式** (每个变量提示,CLI默认值)。MCP配置中的环境变量会自动检测。

______________________________________________________________________

## MCP工具参考

作为MCP服务器运行时(`--mcp`),暴露了五种工具:

### `scan`

在项目目录中发现完整的AI生态系统。

|参数|类型|必填|说明|
|-----------|------|----------|-------------|
| `directory` |string |否|扫描路径(默认:cwd)|
| `include_user` |boolean |否|包括用户级配置|
| `introspect` |boolean |否|实时连接到MCP服务器|
| `timeout` |number |否|自检超时(ms)|

### `introspect_mcp`

连接到特定的MCP服务器并列出其工具、资源和提示。

|参数|类型|必填|说明|
|-----------|------|----------|-------------|
| `command` |string | Yes\*|启动服务器的命令|
| `args` |string\[\]|否|命令的参数|
| `env` |object |否|环境变量|
| `url` |string |是\*|HTTP/SSE服务器的URL|
| `transport` |string |否| `stdio` (默认)或 `http` |
| `timeout` |number |否|连接超时(毫秒)|

\*要么 `command` (stdio)或 `url` (http)是必需的。

### `generate_report`

根据扫描结果生成独立的HTML仪表板。

|参数|类型|必填|说明|
|-----------|------|----------|-------------|
| `directory` |string |否|扫描路径|
| `include_user` |boolean |否|包括用户级配置|
| `introspect` |boolean |否|内省MCP服务器|
| `timeout` |number |否|自检超时(ms)|

### `export_ecosystem`

将完整的AI生态系统导出到便携式 `.aci/bundle.json`.

|参数|类型|必填|说明|
|-----------|------|----------|-------------|
| `dir` |string |否|要扫描的目录(默认:cwd)|
| `include_user` |boolean |否|包括用户级配置|
| `only` |string\[\]|否|类别: `mcp`, `skills`, `agents`, `memories`, `context` |
| `secrets` |string |否| `"none"` (默认), `"all"`,或 `["VAR1", "VAR2"]` |

### `import_ecosystem`

将捆绑包导入项目,使配置适应目标工具。

|参数|类型|必填|说明|
|-----------|------|----------|-------------|
| `file` |string |否|捆绑包路径(自动检测 `.aci/bundle.json`) |
| `dir` |string |否|目标目录(默认:cwd)|
| `target` |string |否|目标工具(自动检测): `claude`, `cursor`, `windsurf`, `copilot`, `gemini`, `codex`, `opencode` |
| `scope` |string |否| `project` 或 `user` |
| `force` |boolean |否|覆盖现有资源|
| `confirm` |boolean |否|执行导入(默认值: `false` =干运行)|
| `only` |string\[\]|否|要导入的类别|
| `secrets` |string |否| `"none"`, `"all"`, `["VAR1"]`,或 `{"VAR1": "value"}` |

> **警告:** `import_ecosystem` 默认为干运行模式(`confirm: false`).集 `confirm: true` 实际写入文件。

______________________________________________________________________

## 建筑```
src/
├── index.ts              # Entry: CLI vs MCP mode routing
├── cli.ts                # CLI arg parsing + orchestration
├── server.ts             # createServer() MCP factory
├── scanner/              # 6 parallel scanners (Promise.all)
│   ├── catalog.ts        # AI_FILE_CATALOG — 50+ entries, 19 tools
│   ├── context-files.ts  # Scan .md, rules, configs
│   ├── mcp-configs.ts    # Parse .mcp.json, ~/.claude.json, etc.
│   ├── mcp-introspect.ts # Connect to servers, list tools/resources
│   ├── skills.ts         # Skills + symlinks + frontmatter
│   ├── agents.ts         # Agents + memory detection
│   └── memories.ts       # engram, openspec, .atl, claude memory
├── ecosystem/            # Export/import engine
│   ├── export.ts         # Scan → bundle → .aci/bundle.json
│   ├── import.ts         # Load → plan → execute
│   ├── target-map.ts     # Path configs for 7 AI tools
│   ├── detect-target.ts  # Auto-detect tool in project
│   └── secrets.ts        # Env var detection + redaction
├── report/               # HTML dashboard generator
│   ├── generator.ts      # generateHtml(ScanResult) → string
│   ├── sections.ts       # Section renderers
│   ├── styles.ts         # CSS (dark/light)
│   └── scripts.ts        # JS (collapse, search, preview)
└── tools/                # 5 MCP tool handlers
├── scan.ts
├── introspect.ts
├── report.ts
├── export.ts
└── import.ts

堆栈: TypeScript 5(严格版,ESM)/MCP SDK/Zod/tsup/Vitest


麻省理工学院 ·建造于 可卡因

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
AI Context Inspector 怎么安装?

在客户端按下面的安装命令接入:npx -y @cocaxcode/ai-context-inspector@latest。对应的包名是 @cocaxcode/ai-context-inspector@latest。装完在客户端配置里引用同一个包或端点。

AI Context Inspector 怎么在 Claude Desktop、Claude、Cursor 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

AI Context Inspector 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

AI Context Inspector 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

AI Context Inspector 支持哪些客户端?

资料标注支持 Claude Desktop、Claude、Cursor、Windsurf、VS Code;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

AI Context Inspector 能提供哪些能力?

资料显示约 5 个工具;能力标签包括 本地运行、TypeScript、Claude、配置管理。具体工具清单以官方文档为准。

AI Context Inspector 需要什么运行环境?

运行时为 Node.js;属于本地进程,需要在本机装好运行环境。

AI Context Inspector 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。