Skip to content

Commit 0ecd73f

Browse files
authored
refactor: update TypeScript configuration and align build paths (#18)
1 parent c78b0e2 commit 0ecd73f

File tree

5 files changed

+27
-48
lines changed

5 files changed

+27
-48
lines changed

README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,35 +68,37 @@ npm run build
6868
## AI IDE Integration
6969

7070
### Cursor AI IDE
71-
Create the script `run-mcp.sh` in the project root:
72-
73-
```bash
74-
#!/bin/zsh
75-
cd /path/to/your/project
76-
source ~/.zshrc
77-
nvm use --lts
78-
79-
# Let the app load environment variables from .env file
80-
node dist/index.js
81-
```
82-
83-
Make the script executable:
84-
```bash
85-
chmod +x run-mcp.sh
86-
```
87-
8871
Add this configuration to your `~/.cursor/mcp.json` or `.cursor/mcp.json` file:
8972
```json
9073
{
9174
"mcpServers": {
9275
"wisdomforge": {
93-
"command": "/path/to/your/project/run-mcp.sh",
94-
"args": []
76+
"command": "npx",
77+
"args": [
78+
"-y",
79+
"@smithery/cli@latest",
80+
"run",
81+
"@hadv/wisdomforge",
82+
"--key",
83+
"YOUR_API_KEY",
84+
"--config",
85+
"{\"database\":{\"type\":\"qdrant\",\"collectionName\":\"YOUR_COLLECTION_NAME\",\"url\":\"YOUR_QDRANT_URL\",\"apiKey\":\"YOUR_QDRANT_API_KEY\"}}",
86+
"--transport",
87+
"ws"
88+
]
9589
}
9690
}
9791
}
9892
```
9993

94+
Replace the following placeholders in the configuration:
95+
- `YOUR_API_KEY`: Your Smithery API key
96+
- `YOUR_COLLECTION_NAME`: Your Qdrant collection name
97+
- `YOUR_QDRANT_URL`: Your Qdrant instance URL
98+
- `YOUR_QDRANT_API_KEY`: Your Qdrant API key
99+
100+
Note: Make sure you have Node.js installed and `npx` available in your PATH. If you're using nvm, ensure you're using the correct Node.js version by running `nvm use --lts` before starting Cursor.
101+
100102
### Claude Desktop
101103
Add this configuration in Claude's settings:
102104
```json

claude-config.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "1.0.0",
44
"description": "A powerful knowledge management system that forges wisdom from experiences, insights, and best practices",
55
"main": "dist/index.js",
6-
"bin": {
7-
"wisdomforge": "./dist/index.js"
8-
},
96
"scripts": {
107
"build": "tsc",
118
"start": "node dist/index.js",

smithery.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "mcp-server",
55
"description": "A powerful knowledge management system that forges wisdom from experiences, insights, and best practices",
66
"main": "dist/index.js",
7-
"entrypoint": "dist/src/index.js",
7+
"entrypoint": "dist/index.js",
88
"runtime": {
99
"node": ">=18.0.0"
1010
},

tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"target": "ES2020",
44
"module": "CommonJS",
55
"outDir": "./dist",
6+
"rootDir": "./src",
67
"strict": true,
78
"esModuleInterop": true,
89
"skipLibCheck": true,
910
"forceConsistentCasingInFileNames": true,
1011
"typeRoots": ["./node_modules/@types", "./src/types/declarations"],
11-
"sourceMap": true
12+
"sourceMap": true,
13+
"declaration": true
1214
},
13-
"include": ["./*.ts", "./src/**/*.ts", "./tests/**/*.ts", "./src/types/declarations/*.d.ts"],
14-
"exclude": ["node_modules", "dist"]
15+
"include": ["./src/**/*.ts"],
16+
"exclude": ["node_modules", "dist", "tests"]
1517
}

0 commit comments

Comments
 (0)