
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
@cocaxcode/ai-context-inspector
Advanced tools
Scan any project to discover its complete AI ecosystem: MCP servers, tools, context files, skills, memories. Generates an interactive HTML dashboard. Works as CLI and MCP server.
See everything your AI tools know about your project.
19 AI tools · 6 scanners · 3 MCP tools · Dual mode: CLI + MCP server
The Problem · The Solution · Installation · CLI Usage · MCP Server · What It Detects · HTML Dashboard · Architecture
Your project has AI configuration scattered everywhere:
CLAUDE.md with project instructions, .cursorrules with coding rules, AGENTS.md with universal guidelines.mcp.json, ~/.claude.json, .vscode/mcp.json — each with different toolsnpx skills add, custom agents in ~/.claude/agents/AI Context Inspector scans your entire AI ecosystem in one shot:
npx @cocaxcode/ai-context-inspector
It discovers every AI configuration file, MCP server (with live introspection), installed skill, custom agent, and persistent memory — then generates a beautiful HTML dashboard or exposes the data as an MCP server for your AI tools to consume.
Zero config. Zero dependencies. Just run it.
npx @cocaxcode/ai-context-inspector
claude mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcp
Or add to your .mcp.json:
{
"mcpServers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
Add to claude_desktop_config.json:
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
Add to .cursor/mcp.json or equivalent:
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
codex mcp add ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcp
Add to .vscode/mcp.json:
{
"servers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}
# Scan current directory → generates HTML report
npx @cocaxcode/ai-context-inspector
# Scan a specific directory
npx @cocaxcode/ai-context-inspector --dir /path/to/project
# Include user-level configs (~/.claude, ~/.gemini, etc.)
npx @cocaxcode/ai-context-inspector --user
# Enable live MCP server introspection (connects to each server)
npx @cocaxcode/ai-context-inspector --introspect
# Set introspection timeout (default: 10000ms)
npx @cocaxcode/ai-context-inspector --introspect --timeout 15000
# Output raw JSON instead of HTML
npx @cocaxcode/ai-context-inspector --json
# Run as MCP server (for AI tool integration)
npx @cocaxcode/ai-context-inspector --mcp
# All flags combined
npx @cocaxcode/ai-context-inspector --dir ./my-project --user --introspect --timeout 15000
| Flag | Description | Default |
|---|---|---|
--dir <path> | Directory to scan | . (current) |
--user | Include user-level configs (~/) | false |
--introspect | Connect to MCP servers and list tools | false |
--timeout <ms> | Introspection timeout per server | 10000 |
--json | Output JSON instead of HTML | false |
--mcp | Run as MCP server (stdio transport) | false |
When running as an MCP server (--mcp), three tools are exposed:
scanScan a project directory to discover its complete AI ecosystem.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
directory | string | No | Path to scan (default: cwd) |
include_user | boolean | No | Include user-level configs |
introspect | boolean | No | Live-connect to MCP servers |
timeout | number | No | Introspection timeout (ms) |
Example prompt: "Scan this project and tell me what AI tools are configured"
introspect_mcpConnect to a specific MCP server and list its tools, resources, and prompts.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
command | string | Yes* | Command to launch the server |
args | string[] | No | Arguments for the command |
env | object | No | Environment variables |
url | string | Yes* | URL for HTTP/SSE servers |
transport | string | No | stdio (default) or http |
timeout | number | No | Connection timeout (ms) |
*Either command (stdio) or url (http) is required.
Example prompt: "Introspect the MCP server at npx @anthropic/mcp-server-memory"
generate_reportGenerate a standalone HTML dashboard from scan results.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
directory | string | No | Path to scan |
include_user | boolean | No | Include user-level configs |
introspect | boolean | No | Introspect MCP servers |
timeout | number | No | Introspection timeout (ms) |
Example prompt: "Generate an HTML report of my project's AI context"
| Tool | Context Files | Description |
|---|---|---|
| Claude Code | CLAUDE.md, .claude/, .mcp.json | Project instructions + MCP config |
| Cursor | .cursorrules, .cursor/rules/, .cursorignore | Rules + ignore patterns |
| Windsurf | .windsurfrules, .windsurf/rules/ | Codeium/Windsurf rules |
| GitHub Copilot | .github/copilot-instructions.md, .github/agents/ | Instructions + custom agents |
| Gemini CLI | GEMINI.md, .gemini/, .geminiignore | Google Gemini config |
| OpenAI Codex | AGENTS.md, AGENT.md, .codex/ | Universal agent instructions |
| OpenCode | OPENCODE.md, .opencode/, opencode.json | OpenCode CLI config |
| Aider | .aider.conf.yml, .aiderignore | Aider config + model settings |
| Cline | .clinerules, .clineignore | Cline rules (file or directory) |
| Roo Code | .roo/rules/, .roorules, .rooignore | Roo Code rules |
| Continue.dev | .continuerules, .continue/config.yaml | Continue rules + config |
| Amazon Q | .amazonq/rules/ | Amazon Q Developer rules |
| Augment | .augment/rules/, .augment-guidelines | Augment Code rules |
| Replit | .replit.md | Replit Agent instructions |
| Firebase Studio | .idx/airules.md | Firebase Studio AI rules |
| VS Code | .vscode/mcp.json | VS Code MCP configuration |
| Tabnine | .tabnine.yaml | Tabnine AI config |
| Sourcegraph | .sourcegraph/ | Sourcegraph Cody config |
| Universal | CONVENTIONS.md | Multi-tool conventions |
Plus user-level configs (~/.claude/, ~/.gemini/, ~/.codex/, ~/.continue/, ~/.aider.conf.yml, ~/.augment/, ~/.github/agents/, ~/.codeium/, ~/.opencode/, ~/.tabnine/).
.mcp.json, ~/.claude.json, .vscode/mcp.json, Claude Desktop config.claude/skills/ (project) and ~/.claude/skills/ (user)npx skills add)## Purpose section parsing.claude/agents/ (project) and ~/.claude/agents/ (user)~/.claude/agent-memory/)~/.claude/projects/*/memory/MEMORY.md with preview~/.claude/agent-memory/ files and directoriesopenspec/ directory with specs and changes count.atl/ directory with file countThe CLI generates a self-contained HTML file (no external dependencies) with:
src/
├── index.ts # Entry: CLI vs MCP mode routing
├── cli.ts # CLI arg parsing + orchestration
├── server.ts # createServer() MCP factory
├── scanner/
│ ├── types.ts # All TypeScript interfaces
│ ├── catalog.ts # AI_FILE_CATALOG (50+ entries, 19 tools)
│ ├── index.ts # runAllScanners() orchestrator
│ ├── context-files.ts # Scan context files (.md, rules, configs)
│ ├── mcp-configs.ts # Parse .mcp.json, ~/.claude.json, etc.
│ ├── mcp-introspect.ts # Connect to MCP servers, list tools/resources
│ ├── skills.ts # Scan skill directories + parse frontmatter
│ ├── agents.ts # Scan agent directories + detect memory
│ └── memories.ts # Detect engram, openspec, .atl, claude memory
├── report/
│ ├── generator.ts # generateHtml(ScanResult) → string
│ ├── sections.ts # HTML section renderers
│ ├── styles.ts # CSS (dark/light mode)
│ └── scripts.ts # JS (collapse, search, preview)
├── tools/
│ ├── scan.ts # MCP tool: scan project
│ ├── introspect.ts # MCP tool: introspect specific MCP
│ └── report.ts # MCP tool: generate HTML report
└── __tests__/
├── fixtures/ # Test projects (full, empty, mcp-only)
├── helpers.ts # fixture() path helper
└── *.test.ts # 7 test files, 33 tests
| Scanner | Detects | Sources |
|---|---|---|
context-files | Config files for 19 AI tools | Project + user dirs |
mcp-configs | MCP server definitions | .mcp.json, ~/.claude.json, VS Code, Desktop |
mcp-introspect | Live tool/resource/prompt listings | stdio/http connections |
skills | Custom Claude Code skills | .claude/skills/ + symlinks |
agents | Custom Claude Code agents | .claude/agents/ + memory detection |
memories | Persistent memory systems | engram, openspec, .atl, claude memory |
All scanners run in parallel via Promise.all() for maximum speed.
Zero runtime dependencies beyond MCP SDK and Zod.
git clone https://github.com/cocaxcode/ai-context-inspector.git
cd ai-context-inspector
npm install
npm test # Run all tests
npm run build # Build with tsup
npm run typecheck # TypeScript check
npm run lint # ESLint
MIT © cocaxcode
FAQs
Scan, export, and import your AI ecosystem across tools. Discover MCP servers, context files, skills, memories. Export/import between Claude, Cursor, Windsurf, Copilot, Gemini, Codex, OpenCode. CLI + MCP server.
We found that @cocaxcode/ai-context-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.