About janreges/ai-distiller-mcp
janreges/ai-distiller-mcp is an MCP server published by janreges in the Data category: aI Distiller is ultra‑fast, open‑source tool for intelligently extracting only the essential public APIs, types, and structure from large codebases. Compresses 90–98% of code into AI‑friendly context, integrates via CLI or MCP, supports 12+ languages, and AI prompt workflows for cleaner, cost‑effective AI development. Conduid read 16 tools from its source: aid_analyze, aid_analyze_security, aid_best_practices, aid_complex_analysis, aid_deep_file_analysis, aid_generate_diagram and 10 more. No package is published for it, so it installs from a source checkout.
The repository has 176 stars and 22 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v1.4.0 (25 May 2026): This release adds selective implementation expansion for agent-driven context building, fixes the Windows install path end-to-end, and ships a fully automated, OIDC-publ… It follows v1.3.1 (21 Jun 2025), and the 4 most recent releases go back to v1.0.0 (18 Jun 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include data.
Install
git clone https://github.com/janreges/ai-distillerTools (16)
aid_analyzeDirect access to all AI actions for custom workflowsaid_analyze_securityGenerates a security analysis prompt with distilled code for AI agents to perform comprehensive security audits with OWASP Top 10 focus. Use when you need AI to identify vulnerabilities, security anti-patterns, and weak points.
OUTPUT: Generates a markdown file with security audit prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to analyze security vulnerabilities and suggest remediation.aid_best_practicesCode quality prompt with industry standards. Generates analysis prompts that guide AI agents to assess code against best practices, design patterns, and clean code principles.
OUTPUT: Generates best practices analysis prompt covering code quality metrics, pattern usage, and improvement suggestions.| Parameter | Type | Description |
|---|---|---|
| exclude_patterns | string | File patterns to exclude |
| include_patterns | string | File patterns to include |
| include_private | boolean | Include all visibility levels (default: true) |
| target_path * | string | Path to analyze |
aid_complex_analysisEnterprise-grade analysis prompt with full codebase context. Generates comprehensive prompts for architecture analysis, compliance checks, and detailed findings. Best suited for large codebases requiring deep architectural insights.
OUTPUT: Generates analysis prompt with distilled code that AI agents can use to create architecture diagrams, identify patterns, and provide strategic recommendations.| Parameter | Type | Description |
|---|---|---|
| exclude_patterns | string | File patterns to exclude |
| include_implementation | boolean | Include implementation details (default: true) |
| include_patterns | string | File patterns to include |
| include_private | boolean | Include all visibility levels (default: true) |
| target_path * | string | Path to analyze |
aid_deep_file_analysisGenerates task lists and prompts for systematic file-by-file analysis. Creates a structured workflow where AI agents analyze each file across multiple dimensions (Security, Performance, Maintainability, Readability). Perfect for comprehensive codebase reviews.
OUTPUT: Generates task list, summary template, and directory structure for organizing analysis results. AI agents should read the task list and follow instructions systematically.| Parameter | Type | Description |
|---|---|---|
| exclude_patterns | string | File patterns to exclude |
| include_implementation | boolean | Include implementation details (default: true) |
| include_patterns | string | File patterns to include |
| include_private | boolean | Include all visibility levels (default: true) |
| target_path * | string | Path to analyze |
aid_generate_diagramGenerates a diagram creation prompt with distilled code for AI agents to create architectural diagrams in Mermaid format. Use when you need AI to generate flowcharts, sequence diagrams, class diagrams, and architecture overviews.
OUTPUT: Generates a markdown file with diagram generation prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to create 10+ Mermaid diagrams.aid_generate_docsGenerates documentation creation prompts with distilled code for AI agents to create comprehensive documentation including API references, usage examples, and developer guides. Use when you need AI to generate technical documentation from code.
OUTPUT: Generates markdown files with documentation prompts and distilled code. The response includes file paths - AI agents should read these files and follow instructions to create the actual documentation.aid_hunt_bugsGenerates a bug hunting prompt with distilled code for AI agents to systematically identify potential bugs, logical errors, race conditions, and quality issues. Use when you need AI to analyze code for hidden bugs or perform a comprehensive code health check.
OUTPUT: Generates a markdown file with bug hunting prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to perform the actual bug analysis.aid_multi_file_docsCreates documentation workflow prompts with file relationships. Generates structured prompts that guide AI agents to create interconnected documentation covering multiple files, their relationships, and overall system architecture.
OUTPUT: Generates workflow files that AI agents can follow to create comprehensive documentation with proper cross-references.| Parameter | Type | Description |
|---|---|---|
| exclude_patterns | string | File patterns to exclude |
| include_patterns | string | File patterns to include |
| target_path * | string | Path to document |
aid_performance_analysisPerformance optimization prompt with complexity focus. Generates analysis prompts that guide AI agents to identify performance bottlenecks, analyze algorithmic complexity, and suggest optimization strategies.
OUTPUT: Generates performance analysis prompt focusing on scalability issues, resource usage, and optimization opportunities.| Parameter | Type | Description |
|---|---|---|
| exclude_patterns | string | File patterns to exclude |
| include_implementation | boolean | Include implementation details (default: true) |
| include_patterns | string | File patterns to include |
| target_path * | string | Path to analyze |
aid_suggest_refactoringGenerates a refactoring analysis prompt with distilled code for AI agents to identify specific refactoring opportunities. Use when you need AI to suggest improvements for code quality, readability, maintainability, or performance.
OUTPUT: Generates a markdown file with refactoring prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to provide refactoring suggestions with before/after examples.distill_directoryExtract structure from entire directories| Parameter | Type | Description |
|---|---|---|
| directory_path * | string | Path to the directory to distill |
| exclude_patterns | string | File patterns to exclude (comma-separated, e.g., '*test*,vendor/**') |
| expand | string | Keep full implementation ONLY for symbols whose name matches these globs (comma-separated, e.g. 'GetUser,*Service*'). Matches a function/method name anywhere; matching a type name expands its methods: the ones nested inside the type's body (e.g. Python/TypeScript/Java/C#), Go methods whose receiver is that type, and Rust impl blocks for it. For Swift extensions and C++ out-of-class definitions, match the method name; for a Kotlin extension function, its receiver type and name (e.g. 'Point.moved' or '*.moved'). Signatures everywhere else. |
| include_comments | boolean | Include comments (default: false) |
| include_fields | boolean | Include fields/properties (default: true) |
| include_implementation | boolean | Include function/method bodies (default: false) |
| include_internal | boolean | Include internal/package-private members (default: false) |
| include_methods | boolean | Include methods/functions (default: true) |
| include_patterns | string | File patterns to include (comma-separated, e.g., '*.go,*.py') |
| include_private | boolean | Include private members (default: false) |
| include_protected | boolean | Include protected members (default: false) |
| output_format | string | Output format (default: text) |
| recursive | boolean | Process subdirectories recursively (default: true) |
distill_fileExtract structure from a single file| Parameter | Type | Description |
|---|---|---|
| expand | string | Keep full implementation ONLY for symbols whose name matches these globs (comma-separated, e.g. 'GetUser,*Service*'). Matches a function/method name anywhere; matching a type name expands its methods: the ones nested inside the type's body (e.g. Python/TypeScript/Java/C#), Go methods whose receiver is that type, and Rust impl blocks for it. For Swift extensions and C++ out-of-class definitions, match the method name; for a Kotlin extension function, its receiver type and name (e.g. 'Point.moved' or '*.moved'). Signatures everywhere else. |
| file_path * | string | Path to the file to distill |
| include_comments | boolean | Include comments (default: false) |
| include_fields | boolean | Include fields/properties (default: true) |
| include_implementation | boolean | Include function/method bodies (default: false) |
| include_internal | boolean | Include internal/package-private members (default: false) |
| include_methods | boolean | Include methods/functions (default: true) |
| include_private | boolean | Include private members (default: false) |
| include_protected | boolean | Include protected members (default: false) |
| output_format | string | Output format (default: text) |
distill_with_dependenciesEXPERIMENTAL: distill a file together with the files it depends on (heuristic, regex-based analysis)| Parameter | Type | Description |
|---|---|---|
| expand | string | Keep full implementation ONLY for symbols whose name matches these globs (comma-separated, e.g. 'GetUser,*Service*'). Matches a function/method name anywhere; matching a type name expands its methods: the ones nested inside the type's body (e.g. Python/TypeScript/Java/C#), Go methods whose receiver is that type, and Rust impl blocks for it. For Swift extensions and C++ out-of-class definitions, match the method name; for a Kotlin extension function, its receiver type and name (e.g. 'Point.moved' or '*.moved'). Signatures everywhere else. |
| file_path * | string | Target file to analyze |
| include_comments | boolean | Include comments (default: false) |
| include_fields | boolean | Include fields/properties (default: true) |
| include_implementation | boolean | Include function/method bodies (default: false) |
| include_internal | boolean | Include internal/package-private members (default: false) |
| include_methods | boolean | Include methods/functions (default: true) |
| include_private | boolean | Include private members (default: false) |
| include_protected | boolean | Include protected members (default: false) |
| max_depth | number | Levels of imports to follow, 1 = only what the target file imports directly (default: 2) |
| output_format | string | Output format (default: text) |
get_capabilitiesGet info about AI Distiller capabilitieslist_filesBrowse directories with file statistics| Parameter | Type | Description |
|---|---|---|
| path | string | Directory to list (default: the server root AID_ROOT); it must lie inside AID_ROOT, and a relative path is resolved against it |
| pattern | string | File pattern to match |
| recursive | boolean | List recursively (default: true) |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 7.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum and mcp-npm/package-lock.json.
- !No dynamic code executionScanned 229 source files and found 5 calls to eval or shell execution, in test-data/import-filtering/javascript/05_edge_cases.js:52, test-data/import-filtering/javascript/05_edge_cases.js:57 and testdata/php/05_very_complex/source.php:162 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiomcp-npm/mcp-server-sdk.ts:4
- Starts other programs
- 5 callsmcp-npm/mcp-server-wrapper.js:25, mcp-npm/run-aid.ts:52, internal/cli/root.go:1068
- Outbound network calls
- 6 callstest-data/import-filtering/csharp/01_BasicImports.cs:57, test-data/import-filtering/csharp/02_AliasedImports.cs:36, test-data/import-filtering/csharp/04_GlobalAndConditional.cs:60
- Writes or deletes files
- 19 callsinternal/cli/root.go:526, internal/cli/root.go:578, internal/cli/root.go:764
- Lockfile
- go.sum and mcp-npm/package-lock.json
Pattern matches on the source text of 229 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 7.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README