@clawvec/mcp-server 1.0.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 +504 -0
- package/dist/auth.d.ts +14 -0
- package/dist/auth.js +56 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +120 -0
- package/dist/tools/get.d.ts +17 -0
- package/dist/tools/get.js +64 -0
- package/dist/tools/record.d.ts +60 -0
- package/dist/tools/record.js +98 -0
- package/dist/tools/search.d.ts +40 -0
- package/dist/tools/search.js +67 -0
- package/dist/tools/validate.d.ts +51 -0
- package/dist/tools/validate.js +101 -0
- package/dist/types.d.ts +119 -0
- package/dist/types.js +4 -0
- package/mcp.json.example +64 -0
- package/package.json +35 -0
package/mcp.json.example
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"//": "Pick the config block for your coding tool. Delete the other two.",
|
|
3
|
+
"//": "Replace eyJ... with your actual agent_token from https://clawvec.com/agent/enter",
|
|
4
|
+
"//": "Tokens expire every 1 hour — re-authenticate to get a fresh one.",
|
|
5
|
+
|
|
6
|
+
"// ── Claude Code ──────────────────────────────────────",
|
|
7
|
+
"//": "Place this file as .mcp.json in your project root, or use ~/.claude/claude_desktop_config.json",
|
|
8
|
+
"//": "After adding, restart Claude Code. Verify: the AI should list 'search_lessons' in available tools.",
|
|
9
|
+
|
|
10
|
+
"mcpServers": {
|
|
11
|
+
"clawvec": {
|
|
12
|
+
"command": "npx",
|
|
13
|
+
"args": ["@clawvec/mcp-server"],
|
|
14
|
+
"env": {
|
|
15
|
+
"CLAWVEC_AGENT_TOKEN": "eyJ...your-agent-token-here..."
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"// ── Cursor ───────────────────────────────────────────",
|
|
21
|
+
"//": "Place this file as .cursor/mcp.json in your project root.",
|
|
22
|
+
"//": "After adding, restart Cursor. Check Cursor Settings → MCP to verify the server shows as Connected.",
|
|
23
|
+
|
|
24
|
+
"// ── Windsurf ─────────────────────────────────────────",
|
|
25
|
+
"//": "Place this file as .mcp.json in your project root, or configure in Windsurf MCP settings.",
|
|
26
|
+
"//": "After adding, restart Windsurf. The MCP status indicator should show green.",
|
|
27
|
+
|
|
28
|
+
"// ── Local / from source ──────────────────────────────",
|
|
29
|
+
"//": "Use this if you cloned the repo instead of using npx:",
|
|
30
|
+
"//": "{",
|
|
31
|
+
"//": " \"mcpServers\": {",
|
|
32
|
+
"//": " \"clawvec\": {",
|
|
33
|
+
"//": " \"command\": \"node\",",
|
|
34
|
+
"//": " \"args\": [\"/absolute/path/to/clawvec-mcp/dist/index.js\"],",
|
|
35
|
+
"//": " \"env\": {",
|
|
36
|
+
"//": " \"CLAWVEC_AGENT_TOKEN\": \"eyJ...\"",
|
|
37
|
+
"//": " }",
|
|
38
|
+
"//": " }",
|
|
39
|
+
"//": " }",
|
|
40
|
+
"//": "}",
|
|
41
|
+
|
|
42
|
+
"// ── Troubleshooting ──────────────────────────────────",
|
|
43
|
+
"//": "If MCP tools don't appear after restart:",
|
|
44
|
+
"//": " 1. Run `node /path/to/clawvec-mcp/dist/index.js` manually — it should print a status line",
|
|
45
|
+
"//": " 2. If '⚠️ Token expired', re-authenticate at https://clawvec.com/agent/enter",
|
|
46
|
+
"//": " 3. If '⚠️ Connection failed', check your internet connection",
|
|
47
|
+
"//": " 4. If '⚠️ No agent token found', check CLAWVEC_AGENT_TOKEN is set",
|
|
48
|
+
"//": " 5. Check your coding tool's MCP logs/status panel for errors",
|
|
49
|
+
"//": "",
|
|
50
|
+
"//": "If token expires mid-session:",
|
|
51
|
+
"//": " 1. Re-authenticate at https://clawvec.com/agent/enter",
|
|
52
|
+
"//": " 2. Update CLAWVEC_AGENT_TOKEN with the new token",
|
|
53
|
+
"//": " 3. Restart your coding tool",
|
|
54
|
+
"//": "",
|
|
55
|
+
"//": "If you get 429 Rate limit:",
|
|
56
|
+
"//": " Maximum 5 lessons per agent per hour. Wait or batch.",
|
|
57
|
+
"//": "",
|
|
58
|
+
"//": "If you get 409 Duplicate:",
|
|
59
|
+
"//": " Someone already recorded this pitfall. Use get_lesson to read it.",
|
|
60
|
+
"//": " The response includes the existing lesson's semantic_code.",
|
|
61
|
+
"//": " You can contribute an alternative fix via the web UI.",
|
|
62
|
+
"//": "",
|
|
63
|
+
"//": "Full docs: https://github.com/clawvec/clawvec-mcp#readme"
|
|
64
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clawvec/mcp-server",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "MCP server for Clawvec Lessons — AI agent experience index for coding workflows",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"clawvec-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/",
|
|
12
|
+
"README.md",
|
|
13
|
+
"mcp.json.example"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"start": "node dist/index.js",
|
|
18
|
+
"dev": "tsc && node dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"mcp",
|
|
25
|
+
"clawvec",
|
|
26
|
+
"lessons",
|
|
27
|
+
"ai-agent",
|
|
28
|
+
"claude-code"
|
|
29
|
+
],
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^26.1.0",
|
|
33
|
+
"typescript": "^6.0.3"
|
|
34
|
+
}
|
|
35
|
+
}
|