claude-sessions-mcp 0.3.0 → 0.4.1-beta.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 +25 -78
- package/dist/index.js +402 -0
- package/dist/index.js.map +1 -0
- package/package.json +20 -67
- package/dist/chunk-7MUU7A32.js +0 -47
- package/dist/chunk-7MUU7A32.js.map +0 -1
- package/dist/mcp/index.js +0 -714
- package/dist/mcp/index.js.map +0 -1
- package/dist/server.d.ts +0 -10
- package/dist/server.js +0 -9
- package/dist/server.js.map +0 -1
- package/dist/web/client/_app/immutable/assets/0.XO-DXdC4.css +0 -1
- package/dist/web/client/_app/immutable/assets/0.XO-DXdC4.css.br +0 -0
- package/dist/web/client/_app/immutable/assets/0.XO-DXdC4.css.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/B2IHY0Hs.js +0 -1
- package/dist/web/client/_app/immutable/chunks/B2IHY0Hs.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/B2IHY0Hs.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/BCJVXGHY.js +0 -1
- package/dist/web/client/_app/immutable/chunks/BCJVXGHY.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/BCJVXGHY.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/CMwK7N_O.js +0 -1
- package/dist/web/client/_app/immutable/chunks/CMwK7N_O.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/CMwK7N_O.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/CZTho13P.js +0 -1
- package/dist/web/client/_app/immutable/chunks/CZTho13P.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/CZTho13P.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/F-H9hLgW.js +0 -2
- package/dist/web/client/_app/immutable/chunks/F-H9hLgW.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/F-H9hLgW.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/gR9AL7GA.js +0 -2
- package/dist/web/client/_app/immutable/chunks/gR9AL7GA.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/gR9AL7GA.js.gz +0 -0
- package/dist/web/client/_app/immutable/entry/app.Boej0hfY.js +0 -2
- package/dist/web/client/_app/immutable/entry/app.Boej0hfY.js.br +0 -0
- package/dist/web/client/_app/immutable/entry/app.Boej0hfY.js.gz +0 -0
- package/dist/web/client/_app/immutable/entry/start.CVYJWPd9.js +0 -1
- package/dist/web/client/_app/immutable/entry/start.CVYJWPd9.js.br +0 -2
- package/dist/web/client/_app/immutable/entry/start.CVYJWPd9.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/0.Lbeu1dpo.js +0 -1
- package/dist/web/client/_app/immutable/nodes/0.Lbeu1dpo.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/0.Lbeu1dpo.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/1.DvRsCtcA.js +0 -1
- package/dist/web/client/_app/immutable/nodes/1.DvRsCtcA.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/1.DvRsCtcA.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/2.CjVN0Bwe.js +0 -73
- package/dist/web/client/_app/immutable/nodes/2.CjVN0Bwe.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/2.CjVN0Bwe.js.gz +0 -0
- package/dist/web/client/_app/version.json +0 -1
- package/dist/web/client/_app/version.json.br +0 -0
- package/dist/web/client/_app/version.json.gz +0 -0
- package/dist/web/client/favicon.png +0 -0
- package/dist/web/env.js +0 -45
- package/dist/web/handler.js +0 -1390
- package/dist/web/index.js +0 -334
- package/dist/web/server/chunks/0-C_hzGzlo.js +0 -17
- package/dist/web/server/chunks/0-C_hzGzlo.js.map +0 -1
- package/dist/web/server/chunks/1-CSNAjAzD.js +0 -9
- package/dist/web/server/chunks/1-CSNAjAzD.js.map +0 -1
- package/dist/web/server/chunks/2-D_ZAFGkV.js +0 -9
- package/dist/web/server/chunks/2-D_ZAFGkV.js.map +0 -1
- package/dist/web/server/chunks/_layout.svelte-BWDuddeu.js +0 -33
- package/dist/web/server/chunks/_layout.svelte-BWDuddeu.js.map +0 -1
- package/dist/web/server/chunks/_page.svelte-BTPPI5f9.js +0 -113
- package/dist/web/server/chunks/_page.svelte-BTPPI5f9.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-B0JVJ9FB.js +0 -28
- package/dist/web/server/chunks/_server.ts-B0JVJ9FB.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-BLGLFyUk.js +0 -19
- package/dist/web/server/chunks/_server.ts-BLGLFyUk.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-BaqmP9oG.js +0 -14
- package/dist/web/server/chunks/_server.ts-BaqmP9oG.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-Beze9L3_.js +0 -19
- package/dist/web/server/chunks/_server.ts-Beze9L3_.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-BlgHsHoW.js +0 -8
- package/dist/web/server/chunks/_server.ts-BlgHsHoW.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-Bw_uJ6TN.js +0 -11
- package/dist/web/server/chunks/_server.ts-Bw_uJ6TN.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-CHX8x48n.js +0 -27
- package/dist/web/server/chunks/_server.ts-CHX8x48n.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-Cb5-fa8C.js +0 -37
- package/dist/web/server/chunks/_server.ts-Cb5-fa8C.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-ChE2aT-W.js +0 -29
- package/dist/web/server/chunks/_server.ts-ChE2aT-W.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-Cksv90lD.js +0 -18
- package/dist/web/server/chunks/_server.ts-Cksv90lD.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-D80JJ66s.js +0 -26
- package/dist/web/server/chunks/_server.ts-D80JJ66s.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-DjWf5N-i.js +0 -18
- package/dist/web/server/chunks/_server.ts-DjWf5N-i.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-DmMLJ93T.js +0 -18
- package/dist/web/server/chunks/_server.ts-DmMLJ93T.js.map +0 -1
- package/dist/web/server/chunks/context-R2425nfV.js +0 -64
- package/dist/web/server/chunks/context-R2425nfV.js.map +0 -1
- package/dist/web/server/chunks/error.svelte-DazOwnSn.js +0 -45
- package/dist/web/server/chunks/error.svelte-DazOwnSn.js.map +0 -1
- package/dist/web/server/chunks/exports-BzHwARwz.js +0 -326
- package/dist/web/server/chunks/exports-BzHwARwz.js.map +0 -1
- package/dist/web/server/chunks/index-CXFDTUAl.js +0 -913
- package/dist/web/server/chunks/index-CXFDTUAl.js.map +0 -1
- package/dist/web/server/chunks/index-CoD1IJuy.js +0 -190
- package/dist/web/server/chunks/index-CoD1IJuy.js.map +0 -1
- package/dist/web/server/chunks/session-DmOGNZUD.js +0 -781
- package/dist/web/server/chunks/session-DmOGNZUD.js.map +0 -1
- package/dist/web/server/index.js +0 -7938
- package/dist/web/server/index.js.map +0 -1
- package/dist/web/server/manifest.js +0 -137
- package/dist/web/server/manifest.js.map +0 -1
- package/dist/web/shims.js +0 -32
- /package/dist/{mcp/index.d.ts → index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-sessions-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1-beta.0",
|
|
4
4
|
"description": "MCP server for managing Claude Code conversation sessions",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"packageManager": "pnpm@9.15.0",
|
|
7
6
|
"license": "MIT",
|
|
8
7
|
"author": "es6.kr <drumrobot43@gmail.com>",
|
|
9
8
|
"repository": {
|
|
10
9
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/es6kr/claude-sessions
|
|
10
|
+
"url": "https://github.com/es6kr/claude-code-sessions",
|
|
11
|
+
"directory": "packages/mcp"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"claude",
|
|
@@ -19,82 +19,35 @@
|
|
|
19
19
|
],
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"import": "./dist/
|
|
23
|
-
"types": "./dist/
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"types": "./dist/index.d.ts"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"bin": {
|
|
27
|
-
"claude-sessions-mcp": "./dist/
|
|
27
|
+
"claude-sessions-mcp": "./dist/index.js"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"dev": "pnpm --filter web dev",
|
|
34
|
-
"dev:mcp": "tsx watch src/mcp/index.ts",
|
|
35
|
-
"build": "pnpm run build:mcp && pnpm run build:web",
|
|
36
|
-
"build:mcp": "tsup",
|
|
37
|
-
"build:web": "pnpm --filter web build",
|
|
38
|
-
"lint": "eslint src",
|
|
39
|
-
"prepare": "husky",
|
|
40
|
-
"typecheck": "tsc --noEmit",
|
|
41
|
-
"version": "node -e \"const fs=require('fs');const p=require('./web/package.json');p.version=process.env.npm_package_version;fs.writeFileSync('./web/package.json',JSON.stringify(p,null,2)+'\\n')\" && git add web/package.json"
|
|
42
|
-
},
|
|
43
32
|
"dependencies": {
|
|
44
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
45
|
-
"effect": "^3.
|
|
46
|
-
"
|
|
47
|
-
"
|
|
33
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
34
|
+
"effect": "^3.19.14",
|
|
35
|
+
"zod": "^4.3.5",
|
|
36
|
+
"@claude-sessions/core": "0.4.1-beta.0"
|
|
48
37
|
},
|
|
49
38
|
"devDependencies": {
|
|
50
|
-
"@
|
|
51
|
-
"@types/node": "^22.0.0",
|
|
52
|
-
"editorconfig-checker": "^6.1.1",
|
|
53
|
-
"eslint": "^9.0.0",
|
|
54
|
-
"eslint-config-prettier": "^10.1.8",
|
|
55
|
-
"eslint-plugin-svelte": "^3.13.1",
|
|
56
|
-
"globals": "^16.5.0",
|
|
57
|
-
"husky": "^9.1.7",
|
|
58
|
-
"lint-staged": "^16.2.7",
|
|
59
|
-
"prettier": "^3.7.4",
|
|
60
|
-
"prettier-plugin-svelte": "^3.4.0",
|
|
61
|
-
"svelte-eslint-parser": "^1.4.1",
|
|
39
|
+
"@types/node": "^25.0.9",
|
|
62
40
|
"tsup": "^8.3.0",
|
|
63
41
|
"tsx": "^4.19.0",
|
|
64
42
|
"typescript": "^5.7.0",
|
|
65
|
-
"
|
|
43
|
+
"vitest": "^4.0.17"
|
|
66
44
|
},
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
"eslint --fix",
|
|
75
|
-
"editorconfig-checker"
|
|
76
|
-
],
|
|
77
|
-
"*.{json,md,css,html,yaml,yml}": [
|
|
78
|
-
"prettier --write",
|
|
79
|
-
"editorconfig-checker"
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
"prettier": {
|
|
83
|
-
"printWidth": 100,
|
|
84
|
-
"semi": false,
|
|
85
|
-
"singleQuote": true,
|
|
86
|
-
"tabWidth": 2,
|
|
87
|
-
"trailingComma": "es5",
|
|
88
|
-
"plugins": [
|
|
89
|
-
"prettier-plugin-svelte"
|
|
90
|
-
],
|
|
91
|
-
"overrides": [
|
|
92
|
-
{
|
|
93
|
-
"files": "*.svelte",
|
|
94
|
-
"options": {
|
|
95
|
-
"parser": "svelte"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
]
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsup",
|
|
47
|
+
"dev": "tsx watch src/index.ts",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"test:watch": "vitest",
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
51
|
+
"lint": "eslint src"
|
|
99
52
|
}
|
|
100
|
-
}
|
|
53
|
+
}
|
package/dist/chunk-7MUU7A32.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// src/server.ts
|
|
2
|
-
import { spawn } from "child_process";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
4
|
-
import path from "path";
|
|
5
|
-
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
var webServerPath = path.join(__dirname, "web", "index.js");
|
|
7
|
-
async function startWebServer(port = 5173, openBrowser = true) {
|
|
8
|
-
const child = spawn("node", [webServerPath], {
|
|
9
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
10
|
-
env: { ...process.env, PORT: String(port) }
|
|
11
|
-
});
|
|
12
|
-
await new Promise((resolve, reject) => {
|
|
13
|
-
const timeout = setTimeout(() => reject(new Error("Server startup timeout")), 1e4);
|
|
14
|
-
child.stdout?.on("data", (data) => {
|
|
15
|
-
const output = data.toString();
|
|
16
|
-
if (output.includes("Listening on") || output.includes("localhost") || output.includes("Local:")) {
|
|
17
|
-
clearTimeout(timeout);
|
|
18
|
-
resolve();
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
child.on("error", (err) => {
|
|
22
|
-
clearTimeout(timeout);
|
|
23
|
-
reject(err);
|
|
24
|
-
});
|
|
25
|
-
child.on("exit", (code) => {
|
|
26
|
-
if (code !== 0) {
|
|
27
|
-
clearTimeout(timeout);
|
|
28
|
-
reject(new Error(`Server exited with code ${code}`));
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
if (openBrowser) {
|
|
33
|
-
const url = `http://localhost:${port}`;
|
|
34
|
-
const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
35
|
-
spawn(openCmd, [url], { stdio: "ignore", detached: true }).unref();
|
|
36
|
-
}
|
|
37
|
-
return { process: child, port };
|
|
38
|
-
}
|
|
39
|
-
async function stopWebServer(server) {
|
|
40
|
-
server.process.kill("SIGTERM");
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
startWebServer,
|
|
45
|
-
stopWebServer
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=chunk-7MUU7A32.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/server.ts"],"sourcesContent":["import { spawn, type ChildProcess } from 'node:child_process'\nimport { fileURLToPath } from 'node:url'\nimport path from 'node:path'\n\nconst __dirname = path.dirname(fileURLToPath(import.meta.url))\n// dist/web/index.js is the built SvelteKit server (adapter-node)\nconst webServerPath = path.join(__dirname, 'web', 'index.js')\n\ninterface WebServer {\n process: ChildProcess\n port: number\n}\n\nexport async function startWebServer(\n port: number = 5173,\n openBrowser: boolean = true\n): Promise<WebServer> {\n // Run the built SvelteKit server directly with Node\n const child = spawn('node', [webServerPath], {\n stdio: ['ignore', 'pipe', 'pipe'],\n env: { ...process.env, PORT: String(port) },\n })\n\n // Wait for server to start\n await new Promise<void>((resolve, reject) => {\n const timeout = setTimeout(() => reject(new Error('Server startup timeout')), 10000)\n\n child.stdout?.on('data', (data: Buffer) => {\n const output = data.toString()\n // SvelteKit adapter-node outputs \"Listening on http://0.0.0.0:PORT\"\n if (\n output.includes('Listening on') ||\n output.includes('localhost') ||\n output.includes('Local:')\n ) {\n clearTimeout(timeout)\n resolve()\n }\n })\n\n child.on('error', (err) => {\n clearTimeout(timeout)\n reject(err)\n })\n\n child.on('exit', (code) => {\n if (code !== 0) {\n clearTimeout(timeout)\n reject(new Error(`Server exited with code ${code}`))\n }\n })\n })\n\n // Open browser if requested\n if (openBrowser) {\n const url = `http://localhost:${port}`\n const openCmd =\n process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'start' : 'xdg-open'\n spawn(openCmd, [url], { stdio: 'ignore', detached: true }).unref()\n }\n\n return { process: child, port }\n}\n\nexport async function stopWebServer(server: WebServer): Promise<void> {\n server.process.kill('SIGTERM')\n}\n"],"mappings":";AAAA,SAAS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