Token导航 LogoToken导航TokenDH.com
AI Context Inspector logo
运维云端stdio官方级别未说明来源级核验

AI Context Inspector

MCP Server

@cocaxcode/ai-context-inspector@latest

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

工具数

5

提示词数

0

GitHub Stars

1

资源数

0
本地运行TypeScriptClaude配置管理Claude DesktopClaudeCursorWindsurfVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

cocaxcode

提供方

cocaxcode

最后核验

2026/5/17 20:23

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

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

详细介绍

@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之外,零运行时依赖性。 一切都在本地运行——你的配置和凭据永远不会离开你的机器。

______________________________________________________________________

快速开始

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

就是这样。一个HTML仪表板打开,其中包含你的AI工具所知道的关于你的项目的一切。

# 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而不是HTMLfalse
--mcp作为MCP服务器运行(stdio传输)false

______________________________________________________________________

MCP服务器设置

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

克劳德代码

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

克劳德桌面

添加 claude_desktop_config.json:

{
  "mcpServers": {
    "ai-context-inspector": {
      "command": "npx",
      "args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
    }
  }
}

Cursor / Windsurf / VS Code / Codex CLI

光标/风帆 --添加到 .cursor/mcp.json 或同等产品:

{
  "mcpServers": {
    "ai-context-inspector": {
      "command": "npx",
      "args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
    }
  }
}

VS代码 --添加到 .vscode/mcp.json:

{
  "servers": {
    "ai-context-inspector": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
    }
  }
}

Codex CLI:

codex mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcp

或直接添加到任何 .mcp.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.jsonCLI配置
教唆者.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.mdAI规则
VS代码.vscode/mcp.jsonMCP配置
塔布宁.tabnine.yamlAI配置
源代码图.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

______________________________________________________________________

特性

扫描

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

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

出口

# 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 (包括)互动

导入

# 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 projectuser按资源
--force覆盖现有资源false
--yes跳过确认提示false
--only 筛选器: mcp,skills,agents,memories,context全部
--secrets noneall交互式

支持的导入目标

目标MCP配置上下文文件规则目录技能代理
claude.mcp.jsonCLAUDE.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.jsonGEMINI.md.gemini/rules/----
codex.mcp.jsonAGENTS.md.codex/rules/----
opencodeopencode.jsonOPENCODE.md.opencode/rules/----
注: 秘密处理有三种模式: (全部编辑——安全共享), 全部 (按原样包括),或 交互式 (每个变量提示,CLI默认值)。MCP配置中的环境变量会自动检测。

______________________________________________________________________

MCP工具参考

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

scan

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

参数类型必填说明
directorystring扫描路径(默认:cwd)
include_userboolean包括用户级配置
introspectboolean实时连接到MCP服务器
timeoutnumber自检超时(ms)

introspect_mcp

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

参数类型必填说明
commandstringYes\*启动服务器的命令
argsstring\[\]命令的参数
envobject环境变量
urlstring是\*HTTP/SSE服务器的URL
transportstringstdio (默认)或 http
timeoutnumber连接超时(毫秒)

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

generate_report

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

参数类型必填说明
directorystring扫描路径
include_userboolean包括用户级配置
introspectboolean内省MCP服务器
timeoutnumber自检超时(ms)

export_ecosystem

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

参数类型必填说明
dirstring要扫描的目录(默认:cwd)
include_userboolean包括用户级配置
onlystring\[\]类别: mcp, skills, agents, memories, context
secretsstring"none" (默认), "all",或 ["VAR1", "VAR2"]

import_ecosystem

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

参数类型必填说明
filestring捆绑包路径(自动检测 .aci/bundle.json)
dirstring目标目录(默认:cwd)
targetstring目标工具(自动检测): claude, cursor, windsurf, copilot, gemini, codex, opencode
scopestringprojectuser
forceboolean覆盖现有资源
confirmboolean执行导入(默认值: false =干运行)
onlystring\[\]要导入的类别
secretsstring"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

______________________________________________________________________

目录标签

目录标签

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

支持客户端

Claude DesktopClaudeCursorWindsurfVS Code

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@cocaxcode/ai-context-inspector@latest

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP