Ai Context Inspector

io.github.cocaxcode由 GitHub 帳號 cocaxcode 發布v0.4.9更新於 Oct 24, 2026

Scan, export, and import your AI ecosystem. Discover MCP servers, skills, and memories.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,掃描專案中的 AI 工具設定、MCP 伺服器、技能、代理與記憶,並可在七種 AI 工具之間匯出與匯入。

可以做什麼
掃描專案目錄(可選擇包含使用者層級設定),找出 19 種工具的 AI 情境檔案、MCP 伺服器設定、技能、代理和持久記憶,並可選擇即時連線 MCP 伺服器列出其工具、資源與提示。依掃描結果產生獨立的 HTML 儀表板或原始 JSON 報告。將整個生態系匯出為可攜的打包檔,可依類別篩選,並選擇遮蔽、包含或依變數挑選密鑰。將打包檔匯入目標工具(Claude、Cursor、Windsurf、Copilot、Gemini、Codex、OpenCode),自動調整路徑與設定格式,預設以試跑方式執行。
適用情境
適合需要讓助理盤點專案既有的 AI 工具與設定、比較不同工具的設定,或在 AI 工具之間搬移 MCP 伺服器、規則、技能與代理的情況。
執行需求
透過 npx 以 Node.js 本機程序執行(stdio 傳輸,使用 --mcp 參數啟動)。未宣告需要帳號、API 金鑰或環境變數。僅在下載套件以及啟用即時探測時連線 HTTP/SSE MCP 伺服器才需要網路。
安裝前請注意
匯入會將設定檔寫入專案或使用者目錄,設定 force 時可能覆寫既有資源;預設為試跑,需明確確認才會寫入。匯出可能包含密鑰:secrets 選項可設為包含全部值或指定變數,分享打包檔前須審慎選擇遮蔽方式。即時探測會啟動設定中的 MCP 伺服器指令並向其傳遞環境變數。掃描使用者層級設定會讀取專案以外的檔案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ai Context Inspector,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@cocaxcode/ai-context-inspector

One command. Every AI config in your project. Instantly.
CLI + MCP server · 19 tools detected · Export/Import across 7 targets

[npm version] [npm downloads] [License] [Node] [19 AI tools]

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


The most comprehensive AI ecosystem scanner available. AI Context Inspector discovers every AI configuration file, MCP server, custom skill, agent, and persistent memory in your project — across 19 tools — and gives you the full picture in seconds. Export your entire AI setup and import it into any of 7 supported tools (Claude, Cursor, Windsurf, Copilot, Gemini, Codex, OpenCode) with automatic secret redaction. Zero config. Zero runtime dependencies beyond MCP SDK and Zod. Everything runs locally — your configs and credentials never leave your machine.


Quick Start

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

That's it. An HTML dashboard opens with everything your AI tools know about your project.

bash
# Scan a specific directorynpx -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 toolsnpx -y @cocaxcode/ai-context-inspector@latest --introspect
# Output raw JSON instead of HTMLnpx -y @cocaxcode/ai-context-inspector@latest --json
All CLI flags
FlagDescriptionDefault
--dir <path>Directory to scan. (current)
--userInclude user-level configs (~/)false
--introspectConnect to MCP servers and list toolsfalse
--timeout <ms>Introspection timeout per server10000
--jsonOutput JSON instead of HTMLfalse
--mcpRun as MCP server (stdio transport)false

MCP Server Setup

Run as an MCP server so your AI tools can inspect their own ecosystem.

Claude Code

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

Claude Desktop

Add to 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 / Windsurf — add to .cursor/mcp.json or equivalent:

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

VS Code — add to .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

Or add directly to any .mcp.json:

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

What It Detects

ToolContext FilesWhat's Found
Claude CodeCLAUDE.md, .claude/, .mcp.jsonInstructions, MCP config, skills, agents, memory
Cursor.cursorrules, .cursor/rules/, .cursorignoreRules, ignore patterns
Windsurf.windsurfrules, .windsurf/rules/Codeium/Windsurf rules
GitHub Copilot.github/copilot-instructions.md, .github/agents/Instructions, custom agents
Gemini CLIGEMINI.md, .gemini/, .geminiignoreConfig, rules
OpenAI CodexAGENTS.md, AGENT.md, .codex/Agent instructions
OpenCodeOPENCODE.md, .opencode/, opencode.jsonCLI config
Aider.aider.conf.yml, .aiderignoreConfig, model settings
Cline.clinerules, .clineignoreRules (file or directory)
Roo Code.roo/rules/, .roorules, .rooignoreRules
Continue.dev.continuerules, .continue/config.yamlRules, config
Amazon Q.amazonq/rules/Developer rules
Augment.augment/rules/, .augment-guidelinesCode rules
Replit.replit.mdAgent instructions
Firebase Studio.idx/airules.mdAI rules
VS Code.vscode/mcp.jsonMCP configuration
Tabnine.tabnine.yamlAI config
Sourcegraph.sourcegraph/Cody config
UniversalCONVENTIONS.mdMulti-tool conventions

Tip: Pass --user to also scan user-level configs: ~/.claude/, ~/.gemini/, ~/.codex/, ~/.continue/, ~/.aider.conf.yml, ~/.augment/, ~/.github/agents/, ~/.codeium/, ~/.opencode/, ~/.tabnine/.

Beyond context files, the scanner also detects:

  • MCP servers from .mcp.json, ~/.claude.json, .vscode/mcp.json, Claude Desktop config — with optional live introspection
  • Custom skills in .claude/skills/ (including symlinks from npx skills add)
  • Custom agents in .claude/agents/ with memory detection
  • Persistent memories — Claude Memory, agent memory, engram, OpenSpec, ATL

Features

Scan

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

Generates a self-contained HTML dashboard with dark/light mode, search, collapsible sections, file previews, and color-coded tool badges. Pass --json for raw output.

Export

bash
# Export your AI ecosystem to .aci/bundle.jsonnpx -y @cocaxcode/ai-context-inspector@latest export
# Export only MCP and context configs, redact secretsnpx -y @cocaxcode/ai-context-inspector@latest export --only mcp,context --secrets none
Export flags
FlagDescriptionDefault
--dir <path>Directory to export.
--output <path>Output directory.aci/
--include-userInclude user-level configsfalse
--only <categories>Filter: mcp,skills,agents,memories,contextall
--secrets <mode>none (redact) or all (include)interactive

Import

bash
# Import into a Cursor projectnpx -y @cocaxcode/ai-context-inspector@latest import --target cursor
# Auto-detect tool, skip confirmation, overwrite existingnpx -y @cocaxcode/ai-context-inspector@latest import --yes --force
Import flags
FlagDescriptionDefault
[file]Path to bundle JSONauto-detect .aci/bundle.json
--dir <path>Target directory.
--target <tool>Target tool (see table)auto-detect
--scope <scope>project or userper-resource
--forceOverwrite existing resourcesfalse
--yesSkip confirmation promptfalse
--only <categories>Filter: mcp,skills,agents,memories,contextall
--secrets <mode>none or allinteractive

Supported Import Targets

TargetMCP ConfigContext FileRules DirSkillsAgents
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/----

Note: Secrets handling has three modes: none (redact all — safe for sharing), all (include as-is), or interactive (prompt per variable, CLI default). Environment variables in MCP configs are detected automatically.


MCP Tool Reference

When running as an MCP server (--mcp), five tools are exposed:

scan

Discover the complete AI ecosystem in a project directory.

ParameterTypeRequiredDescription
directorystringNoPath to scan (default: cwd)
include_userbooleanNoInclude user-level configs
introspectbooleanNoLive-connect to MCP servers
timeoutnumberNoIntrospection timeout (ms)

introspect_mcp

Connect to a specific MCP server and list its tools, resources, and prompts.

ParameterTypeRequiredDescription
commandstringYes*Command to launch the server
argsstring[]NoArguments for the command
envobjectNoEnvironment variables
urlstringYes*URL for HTTP/SSE servers
transportstringNostdio (default) or http
timeoutnumberNoConnection timeout (ms)

*Either command (stdio) or url (http) is required.

generate_report

Generate a standalone HTML dashboard from scan results.

ParameterTypeRequiredDescription
directorystringNoPath to scan
include_userbooleanNoInclude user-level configs
introspectbooleanNoIntrospect MCP servers
timeoutnumberNoIntrospection timeout (ms)

export_ecosystem

Export the complete AI ecosystem to a portable .aci/bundle.json.

ParameterTypeRequiredDescription
dirstringNoDirectory to scan (default: cwd)
include_userbooleanNoInclude user-level configs
onlystring[]NoCategories: mcp, skills, agents, memories, context
secretsstringNo"none" (default), "all", or ["VAR1", "VAR2"]

import_ecosystem

Import a bundle into a project, adapting configuration to the target tool.

ParameterTypeRequiredDescription
filestringNoPath to bundle (auto-detects .aci/bundle.json)
dirstringNoTarget directory (default: cwd)
targetstringNoTarget tool (auto-detects): claude, cursor, windsurf, copilot, gemini, codex, opencode
scopestringNoproject or user
forcebooleanNoOverwrite existing resources
confirmbooleanNoExecute import (default: false = dry-run)
onlystring[]NoCategories to import
secretsstringNo"none", "all", ["VAR1"], or {"VAR1": "value"}

Warning: import_ecosystem defaults to dry-run mode (confirm: false). Set confirm: true to actually write files.


Architecture

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

Stack: TypeScript 5 (strict, ESM) / MCP SDK / Zod / tsup / Vitest


MIT · Built by cocaxcode

來源:README.md,提交 2e12a55

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.4.9最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分