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 CHANGED
@@ -2,36 +2,36 @@
2
2
 
3
3
  Sync your AI coding decisions across Claude, Cursor, and other MCP tools.
4
4
 
5
- ## Quick Setup
5
+ ## Setup (2 steps)
6
6
 
7
- ### 1. Add to Claude Desktop
7
+ ### 1. Get Your API Key
8
8
 
9
- Open config file:
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 this:
19
+ Paste:
14
20
  ```json
15
21
  {
16
22
  "mcpServers": {
17
- "vektori-cortex": {
23
+ "vektori": {
18
24
  "command": "npx",
19
25
  "args": ["-y", "vektori-cortex"],
20
26
  "env": {
21
- "VEKTORI_TOKEN": "YOUR_TOKEN"
27
+ "VEKTORI_API_KEY": "vk_your_key_here"
22
28
  }
23
29
  }
24
30
  }
25
31
  }
26
32
  ```
27
33
 
28
- ### 2. Get Your Token
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 starts)* | Loads recent context |
44
+ | *(new session)* | Recalls recent context |
45
45
 
46
- Decisions sync across all your MCP tools.
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 token;
4
- constructor(token: string);
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
- token;
4
- constructor(token) {
5
- this.token = token;
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
- Authorization: `Bearer ${this.token}`,
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 auth token from environment
7
- const VEKTORI_TOKEN = process.env.VEKTORI_TOKEN;
8
- if (!VEKTORI_TOKEN) {
9
- console.error("Error: VEKTORI_TOKEN environment variable is required");
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(VEKTORI_TOKEN);
13
+ const api = new VektoriAPI(VEKTORI_API_KEY);
13
14
  // Create MCP server
14
15
  const server = new Server({
15
16
  name: "vektori-cortex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vektori-cortex",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "MCP server for syncing AI coding decisions across tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",