Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 21 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,35 +68,37 @@ npm run build
## AI IDE Integration

### Cursor AI IDE
Create the script `run-mcp.sh` in the project root:

```bash
#!/bin/zsh
cd /path/to/your/project
source ~/.zshrc
nvm use --lts

# Let the app load environment variables from .env file
node dist/index.js
```

Make the script executable:
```bash
chmod +x run-mcp.sh
```

Add this configuration to your `~/.cursor/mcp.json` or `.cursor/mcp.json` file:
```json
{
"mcpServers": {
"wisdomforge": {
"command": "/path/to/your/project/run-mcp.sh",
"args": []
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@hadv/wisdomforge",
"--key",
"YOUR_API_KEY",
"--config",
"{\"database\":{\"type\":\"qdrant\",\"collectionName\":\"YOUR_COLLECTION_NAME\",\"url\":\"YOUR_QDRANT_URL\",\"apiKey\":\"YOUR_QDRANT_API_KEY\"}}",
"--transport",
"ws"
]
}
}
}
```

Replace the following placeholders in the configuration:
- `YOUR_API_KEY`: Your Smithery API key
- `YOUR_COLLECTION_NAME`: Your Qdrant collection name
- `YOUR_QDRANT_URL`: Your Qdrant instance URL
- `YOUR_QDRANT_API_KEY`: Your Qdrant API key

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.

### Claude Desktop
Add this configuration in Claude's settings:
```json
Expand Down
22 changes: 0 additions & 22 deletions claude-config.json

This file was deleted.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "1.0.0",
"description": "A powerful knowledge management system that forges wisdom from experiences, insights, and best practices",
"main": "dist/index.js",
"bin": {
"wisdomforge": "./dist/index.js"
},
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion smithery.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "mcp-server",
"description": "A powerful knowledge management system that forges wisdom from experiences, insights, and best practices",
"main": "dist/index.js",
"entrypoint": "dist/src/index.js",
"entrypoint": "dist/index.js",
"runtime": {
"node": ">=18.0.0"
},
Expand Down
8 changes: 5 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"target": "ES2020",
"module": "CommonJS",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"typeRoots": ["./node_modules/@types", "./src/types/declarations"],
"sourceMap": true
"sourceMap": true,
"declaration": true
},
"include": ["./*.ts", "./src/**/*.ts", "./tests/**/*.ts", "./src/types/declarations/*.d.ts"],
"exclude": ["node_modules", "dist"]
"include": ["./src/**/*.ts"],
"exclude": ["node_modules", "dist", "tests"]
}