{"id":44026953,"url":"https://github.com/febalist/code-tree","last_synced_at":"2026-02-21T14:11:40.506Z","repository":{"id":337069415,"uuid":"1152123134","full_name":"febalist/code-tree","owner":"febalist","description":"A CLI tool and MCP server for quickly exploring project structure and codebase","archived":false,"fork":false,"pushed_at":"2026-02-07T16:32:10.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-08T00:10:19.971Z","etag":null,"topics":["ast","cli","code","codebase","mcp","tree"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@febalist/code-tree","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/febalist.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-07T11:57:25.000Z","updated_at":"2026-02-07T16:31:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/febalist/code-tree","commit_stats":null,"previous_names":["febalist/code-tree"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/febalist/code-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febalist%2Fcode-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febalist%2Fcode-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febalist%2Fcode-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febalist%2Fcode-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/febalist","download_url":"https://codeload.github.com/febalist/code-tree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febalist%2Fcode-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29682754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T13:29:26.630Z","status":"ssl_error","status_checked_at":"2026-02-21T13:26:50.125Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","cli","code","codebase","mcp","tree"],"created_at":"2026-02-07T18:09:56.231Z","updated_at":"2026-02-21T14:11:40.502Z","avatar_url":"https://github.com/febalist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-tree\n\n[![npm version](https://img.shields.io/npm/v/@febalist/code-tree)](https://www.npmjs.com/package/@febalist/code-tree)\n[![CI](https://github.com/febalist/code-tree/actions/workflows/ci.yml/badge.svg)](https://github.com/febalist/code-tree/actions/workflows/ci.yml)\n\nA CLI tool and MCP server for quickly exploring project structure and codebase.\n\n**Requirements:** Bun\n\n## Features\n\n- 🌳 Directory structure scanning (like `tree`)\n- 🔍 Code symbol extraction: classes, functions, interfaces, types\n- 📝 Doc comment support\n- 🚀 Accurate AST parsing via Tree-sitter (WASM)\n- 🎯 10+ programming languages + Markdown\n- ⚡ Automatic output optimization\n\n## Installation\n\n```bash\n# Global installation\nbun add -g @febalist/code-tree\n\n# Or use with bunx (no installation needed)\nbunx @febalist/code-tree .\n```\n\n## Usage\n\n```bash\n# Scan current directory\ncode-tree .\n\n# Scan specific directory\ncode-tree src/\n\n# Parse specific file\ncode-tree src/index.ts\n\n# Multiple paths\ncode-tree src/ lib/\n\n# With options\ncode-tree --depth 2 --no-symbols .\ncode-tree --ignore \"*.test.ts\" --ignore \"*.spec.ts\" src/\n\n# Help\ncode-tree --help\n```\n\n## Parameters\n\n- **Positional arguments**: Paths to directories or files (default: `.`)\n- `--depth \u003cn\u003e`: Maximum traversal depth (default: 10)\n- `--symbols` / `--no-symbols`: Include/exclude code symbols (default: auto)\n- `--comments` / `--no-comments`: Include/exclude doc comments (default: auto)\n- `--ignore \u003cpattern\u003e`: Additional ignore patterns (repeatable)\n\n## Output Examples\n\n**Directory with symbols:**\n```\nsrc/\n├── index.ts\n│     async run(args)\n├── parser/\n│   ├── index.ts\n│   │     class ParserManager\n│   │       async init()\n│   │       private async loadLanguage(config: LanguageConfig): Promise\u003cLanguage\u003e\n│   │       async parseFile(filePath: string): Promise\u003cFileSymbols | null\u003e\n│   └── types.ts\n│         type SymbolKind\n│         interface CodeSymbol\n│         interface FileSymbols\n```\n\n**File with detailed breakdown:**\n```\nsrc/parser/index.ts\n\n  class ParserManager\n    async init()\n      locateFile()\n    private async loadLanguage(config: LanguageConfig): Promise\u003cLanguage\u003e\n    async parseFile(filePath: string): Promise\u003cFileSymbols | null\u003e\n```\n\n## Supported Languages\n\n- TypeScript (.ts, .tsx)\n- JavaScript (.js, .jsx, .mjs, .cjs)\n- Python (.py, .pyw)\n- Go (.go)\n- PHP (.php)\n- Rust (.rs)\n- Java (.java)\n- C# (.cs)\n- Ruby (.rb)\n- Kotlin (.kt, .kts)\n- Swift (.swift)\n- C/C++ (.c, .h, .cpp, .hpp, .cc, .cxx, .hh, .hxx)\n- Markdown (.md, .mdx)\n\n## File Ignoring\n\nAutomatically ignored:\n\n- `.git`, `.svn`, `.hg`, `.DS_Store` (always)\n- `node_modules`, `vendor`, `dist`, `build`, `__pycache__`, `venv`, `target`, `bin`, `obj`, `coverage`\n- Patterns from `.gitignore`\n- Custom patterns via `--ignore` parameter\n\n## MCP Server\n\n`code-tree` also provides an MCP (Model Context Protocol) server for integration with LLM clients like Claude Code.\n\nThe MCP server exposes the same capabilities and parameters as the CLI.\n\n### Integration Example\n\nAdd to Claude Code MCP configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"code-tree\": {\n      \"command\": \"bunx\",\n      \"args\": [\"@febalist/code-tree\", \"mcp\"]\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebalist%2Fcode-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffebalist%2Fcode-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebalist%2Fcode-tree/lists"}