fix(mcp): correct content path + publish 1.0.3

Fix ENOENT on production install: CONTENT_DIR resolved 2 levels up
from dist/ instead of 1, reaching node_modules/ instead of package
root where content/ lives. ../content is the correct relative path.

Publié : claude-code-ultimate-guide-mcp@1.0.3

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Florian BRUNIAUX 2026-02-28 21:26:57 +01:00
parent 7236362c1e
commit 67ea720d63
3 changed files with 14 additions and 8 deletions

View file

@ -14,7 +14,7 @@ const GUIDE_ROOT = process.env.GUIDE_ROOT
const CONTENT_DIR = GUIDE_ROOT
? resolve(GUIDE_ROOT, 'machine-readable')
: resolve(__dirname, '../../content');
: resolve(__dirname, '../content');
const ALLOWED_EXTENSIONS = new Set([
'.md', '.yaml', '.yml', '.sh', '.ts', '.js', '.json', '.py', '.txt',