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:
parent
7236362c1e
commit
67ea720d63
3 changed files with 14 additions and 8 deletions
4
mcp-server/package-lock.json
generated
4
mcp-server/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "claude-code-ultimate-guide-mcp",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "claude-code-ultimate-guide-mcp",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.3",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.6.0",
|
||||
|
|
|
|||
|
|
@ -1,20 +1,26 @@
|
|||
{
|
||||
"name": "claude-code-ultimate-guide-mcp",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.3",
|
||||
"description": "MCP server for the Claude Code Ultimate Guide — search, read, and explore 20K+ lines of documentation directly from Claude Code",
|
||||
"keywords": ["mcp", "claude-code", "anthropic", "documentation", "guide"],
|
||||
"keywords": [
|
||||
"mcp",
|
||||
"claude-code",
|
||||
"anthropic",
|
||||
"documentation",
|
||||
"guide"
|
||||
],
|
||||
"author": "Florian Bruniaux",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/FlorianBruniaux/claude-code-ultimate-guide",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/FlorianBruniaux/claude-code-ultimate-guide.git",
|
||||
"url": "git+https://github.com/FlorianBruniaux/claude-code-ultimate-guide.git",
|
||||
"directory": "mcp-server"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"bin": {
|
||||
"claude-code-guide-mcp": "./dist/index.js"
|
||||
"claude-code-ultimate-guide-mcp": "dist/index.js"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*.js",
|
||||
|
|
@ -22,7 +28,7 @@
|
|||
"content"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"build": "tsup && chmod +x dist/index.js",
|
||||
"dev": "GUIDE_ROOT=.. node --watch dist/index.js",
|
||||
"start": "node dist/index.js",
|
||||
"prepublishOnly": "npm run build"
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue