Ai Context Inspector

io.github.cocaxcodePublished by GitHub account cocaxcodev0.4.9Updated Oct 24, 2026

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

Overview

AI-generated overview

A local MCP server that scans a project's AI tool configurations, MCP servers, skills, agents and memories, and exports or imports them across seven AI tools.

What you can do
Scan a project directory, optionally including user-level configs, for AI context files, MCP server configs, skills, agents and persistent memories across 19 tools, with optional live introspection of MCP servers to list their tools, resources and prompts. Generate a standalone HTML dashboard or raw JSON report from scan results. Export the whole ecosystem to a portable bundle file, filtering by category and choosing whether secrets are redacted, included, or selected per variable. Import a bundle into a target tool (Claude, Cursor, Windsurf, Copilot, Gemini, Codex, OpenCode), adapting paths and config formats, with dry-run by default.
When to use it
Useful when you want an assistant to inventory what AI tooling and configuration a project already contains, compare setups across tools, or migrate MCP servers, rules, skills and agents from one AI tool to another.
Requirements
Runs locally as a Node.js process via npx (stdio transport, started with the --mcp flag). No accounts, API keys or environment variables are declared. Network access is only needed to fetch the package and, if introspection is enabled, to reach HTTP/SSE MCP servers.
Before you install
Import writes configuration files into the project or user directories and can overwrite existing resources when force is set; it defaults to dry-run, so confirm deliberately. Export can include secrets: the secrets option can be set to include all values or specific variables, so redaction must be chosen carefully before sharing a bundle. Introspection launches configured MCP server commands and passes environment variables to them. Scanning user-level configs reads files outside the project.

Installation

In SourceWeft

  1. Open Ai Context Inspector in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Source: README.md at commit 2e12a55

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.4.9LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts