vektori-cortex 1.0.0 → 1.1.0
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 +15 -15
- package/dist/api.d.ts +2 -2
- package/dist/api.js +4 -4
- package/dist/index.js +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
Sync your AI coding decisions across Claude, Cursor, and other MCP tools.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Setup (2 steps)
|
|
6
6
|
|
|
7
|
-
### 1.
|
|
7
|
+
### 1. Get Your API Key
|
|
8
8
|
|
|
9
|
-
Open
|
|
9
|
+
Open **Vektori extension → Settings → MCP Keys → Generate Key**
|
|
10
|
+
|
|
11
|
+
Copy the key (starts with `vk_`).
|
|
12
|
+
|
|
13
|
+
### 2. Add to Claude Desktop
|
|
14
|
+
|
|
15
|
+
Open config:
|
|
10
16
|
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
11
17
|
- **Mac:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
12
18
|
|
|
13
|
-
Paste
|
|
19
|
+
Paste:
|
|
14
20
|
```json
|
|
15
21
|
{
|
|
16
22
|
"mcpServers": {
|
|
17
|
-
"vektori
|
|
23
|
+
"vektori": {
|
|
18
24
|
"command": "npx",
|
|
19
25
|
"args": ["-y", "vektori-cortex"],
|
|
20
26
|
"env": {
|
|
21
|
-
"
|
|
27
|
+
"VEKTORI_API_KEY": "vk_your_key_here"
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
32
|
```
|
|
27
33
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Copy your JWT from the Vektori browser extension (Settings → Copy Token).
|
|
31
|
-
|
|
32
|
-
### 3. Restart Claude Desktop
|
|
33
|
-
|
|
34
|
-
Done. Claude now remembers your decisions across sessions.
|
|
34
|
+
Restart Claude. Done.
|
|
35
35
|
|
|
36
36
|
---
|
|
37
37
|
|
|
@@ -41,6 +41,6 @@ Done. Claude now remembers your decisions across sessions.
|
|
|
41
41
|
|---------|-------------|
|
|
42
42
|
| "Let's use PostgreSQL" | Saves the decision |
|
|
43
43
|
| "What did we decide about auth?" | Searches your memory |
|
|
44
|
-
| *(new session
|
|
44
|
+
| *(new session)* | Recalls recent context |
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Your decisions sync across all MCP tools.
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SaveDecisionRequest, SaveDecisionResponse, SearchMemoryRequest, SearchMemoryResponse, ContextResponse } from "./types.js";
|
|
2
2
|
export declare class VektoriAPI {
|
|
3
|
-
private
|
|
4
|
-
constructor(
|
|
3
|
+
private apiKey;
|
|
4
|
+
constructor(apiKey: string);
|
|
5
5
|
private request;
|
|
6
6
|
saveDecision(data: SaveDecisionRequest): Promise<SaveDecisionResponse>;
|
|
7
7
|
searchMemory(data: SearchMemoryRequest): Promise<SearchMemoryResponse>;
|
package/dist/api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const BASE_URL = "https://vektori-memory.vektori-cloud.workers.dev";
|
|
2
2
|
export class VektoriAPI {
|
|
3
|
-
|
|
4
|
-
constructor(
|
|
5
|
-
this.
|
|
3
|
+
apiKey;
|
|
4
|
+
constructor(apiKey) {
|
|
5
|
+
this.apiKey = apiKey;
|
|
6
6
|
}
|
|
7
7
|
async request(endpoint, options = {}) {
|
|
8
8
|
const url = `${BASE_URL}${endpoint}`;
|
|
@@ -10,7 +10,7 @@ export class VektoriAPI {
|
|
|
10
10
|
...options,
|
|
11
11
|
headers: {
|
|
12
12
|
"Content-Type": "application/json",
|
|
13
|
-
|
|
13
|
+
"X-MCP-Key": this.apiKey,
|
|
14
14
|
...options.headers,
|
|
15
15
|
},
|
|
16
16
|
});
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,14 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
5
5
|
import { VektoriAPI } from "./api.js";
|
|
6
|
-
// Get
|
|
7
|
-
const
|
|
8
|
-
if (!
|
|
9
|
-
console.error("Error:
|
|
6
|
+
// Get API key from environment
|
|
7
|
+
const VEKTORI_API_KEY = process.env.VEKTORI_API_KEY;
|
|
8
|
+
if (!VEKTORI_API_KEY) {
|
|
9
|
+
console.error("Error: VEKTORI_API_KEY environment variable is required");
|
|
10
|
+
console.error("Get your key from Vektori extension → Settings → MCP Keys");
|
|
10
11
|
process.exit(1);
|
|
11
12
|
}
|
|
12
|
-
const api = new VektoriAPI(
|
|
13
|
+
const api = new VektoriAPI(VEKTORI_API_KEY);
|
|
13
14
|
// Create MCP server
|
|
14
15
|
const server = new Server({
|
|
15
16
|
name: "vektori-cortex",
|