codeast 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,10 +16,17 @@ When LLMs analyze code, they typically read entire files. CodeAst extracts **onl
16
16
 
17
17
  ## Installation
18
18
 
19
+ **macOS / Linux:**
19
20
  ```bash
20
21
  claude mcp add codeast npx codeast
21
22
  ```
22
23
 
24
+ **Windows:**
25
+ ```bash
26
+ npm install -g codeast
27
+ claude mcp add codeast codeast
28
+ ```
29
+
23
30
  The analyzer binary is downloaded automatically on first run.
24
31
 
25
32
  ## Tools
@@ -1,8 +1,11 @@
1
1
  import { createWriteStream, existsSync, mkdirSync, chmodSync } from 'fs';
2
- import { join } from 'path';
2
+ import { join, dirname } from 'path';
3
3
  import { Readable } from 'stream';
4
4
  import { finished } from 'stream/promises';
5
+ import { fileURLToPath } from 'url';
5
6
  import os from 'os';
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = dirname(__filename);
6
9
  const GITHUB_REPO = 'dimaland1/codeast';
7
10
  const BINARY_NAME = 'codebase-analysis';
8
11
  function getPlatformInfo() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeast",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "MCP server for code analysis - reduces context window usage by returning structured data",
5
5
  "type": "module",
6
6
  "bin": {