ai-context-inspector
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ai-context-inspectorscan my project for all AI configurations"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
npx -y @cocaxcode/ai-context-inspector@latestThat's it. An HTML dashboard opens with everything your AI tools know about your project.
# 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 --jsonFlag | Description | Default |
| Directory to scan |
|
| Include user-level configs ( |
|
| Connect to MCP servers and list tools |
|
| Introspection timeout per server |
|
| Output JSON instead of HTML |
|
| Run as MCP server (stdio transport) |
|
Related MCP server: codesight
MCP Server Setup
Run as an MCP server so your AI tools can inspect their own ecosystem.
Claude Code
claude mcp add --scope user ai-context-inspector -- npx -y @cocaxcode/ai-context-inspector@latest --mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}Cursor / Windsurf — add to .cursor/mcp.json or equivalent:
{
"mcpServers": {
"ai-context-inspector": {
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}VS Code — add to .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 --mcpOr add directly to any .mcp.json:
{
"mcpServers": {
"ai-context-inspector": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cocaxcode/ai-context-inspector@latest", "--mcp"]
}
}
}What It Detects
Tool | Context Files | What's Found |
Claude Code |
| Instructions, MCP config, skills, agents, memory |
Cursor |
| Rules, ignore patterns |
Windsurf |
| Codeium/Windsurf rules |
GitHub Copilot |
| Instructions, custom agents |
Gemini CLI |
| Config, rules |
OpenAI Codex |
| Agent instructions |
OpenCode |
| CLI config |
Aider |
| Config, model settings |
Cline |
| Rules (file or directory) |
Roo Code |
| Rules |
Continue.dev |
| Rules, config |
Amazon Q |
| Developer rules |
Augment |
| Code rules |
Replit |
| Agent instructions |
Firebase Studio |
| AI rules |
VS Code |
| MCP configuration |
Tabnine |
| AI config |
Sourcegraph |
| Cody config |
Universal |
| Multi-tool conventions |
Tip: Pass
--userto 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 introspectionCustom skills in
.claude/skills/(including symlinks fromnpx skills add)Custom agents in
.claude/agents/with memory detectionPersistent memories — Claude Memory, agent memory, engram, OpenSpec, ATL
Features
Scan
npx -y @cocaxcode/ai-context-inspector@latest
npx -y @cocaxcode/ai-context-inspector@latest --user --introspectGenerates 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
# 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 noneFlag | Description | Default |
| Directory to export |
|
| Output directory |
|
| Include user-level configs |
|
| Filter: | all |
|
| interactive |
Import
# 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 --forceFlag | Description | Default |
| Path to bundle JSON | auto-detect |
| Target directory |
|
| Target tool (see table) | auto-detect |
|
| per-resource |
| Overwrite existing resources |
|
| Skip confirmation prompt |
|
| Filter: | all |
|
| interactive |
Supported Import Targets
Target | MCP Config | Context File | Rules Dir | Skills | Agents |
|
|
| -- |
|
|
|
|
|
| -- | -- |
|
|
|
| -- | -- |
|
|
|
| -- |
|
|
|
|
| -- | -- |
|
|
|
| -- | -- |
|
|
|
| -- | -- |
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.
Parameter | Type | Required | Description |
| string | No | Path to scan (default: cwd) |
| boolean | No | Include user-level configs |
| boolean | No | Live-connect to MCP servers |
| number | No | Introspection timeout (ms) |
introspect_mcp
Connect to a specific MCP server and list its tools, resources, and prompts.
Parameter | Type | Required | Description |
| string | Yes* | Command to launch the server |
| string[] | No | Arguments for the command |
| object | No | Environment variables |
| string | Yes* | URL for HTTP/SSE servers |
| string | No |
|
| number | No | Connection timeout (ms) |
*Either command (stdio) or url (http) is required.
generate_report
Generate a standalone HTML dashboard from scan results.
Parameter | Type | Required | Description |
| string | No | Path to scan |
| boolean | No | Include user-level configs |
| boolean | No | Introspect MCP servers |
| number | No | Introspection timeout (ms) |
export_ecosystem
Export the complete AI ecosystem to a portable .aci/bundle.json.
Parameter | Type | Required | Description |
| string | No | Directory to scan (default: cwd) |
| boolean | No | Include user-level configs |
| string[] | No | Categories: |
| string | No |
|
import_ecosystem
Import a bundle into a project, adapting configuration to the target tool.
Parameter | Type | Required | Description |
| string | No | Path to bundle (auto-detects |
| string | No | Target directory (default: cwd) |
| string | No | Target tool (auto-detects): |
| string | No |
|
| boolean | No | Overwrite existing resources |
| boolean | No | Execute import (default: |
| string[] | No | Categories to import |
| string | No |
|
Warning:
import_ecosystemdefaults to dry-run mode (confirm: false). Setconfirm: trueto 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.tsStack: TypeScript 5 (strict, ESM) / MCP SDK / Zod / tsup / Vitest
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityCmaintenanceScan for AI tools and agents - MCP servers & CLIs for scanning, auditing, and managing your AI environment1
- AlicenseNot gradedqualityAmaintenanceProvides 13 MCP tools for codebase analysis, wiki generation, and knowledge mapping, enabling AI assistants to understand project structure and context efficiently.9421,343MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI-powered architecture analysis and visualization of codebases, exposing 17 MCP tools for querying components, dependencies, and generating interactive diagrams.MIT
- AlicenseNot gradedqualityBmaintenanceGenerates a comprehensive context map of your codebase to reduce token usage for AI coding assistants. Provides 12 MCP tools for exploring project structure, dependencies, and generating wiki knowledge bases.335MIT
Related MCP Connectors
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cocaxcode/ai-context-inspector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server