cls-mcp-server 0.2.2 → 0.2.3
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 +2 -2
- package/dist/index.js +2 -6
- package/package.json +2 -2
package/README.md
CHANGED
@@ -25,7 +25,7 @@ To configure `cls-mcp-server` as an MCP service in stdio transport, add the foll
|
|
25
25
|
"command": "npx",
|
26
26
|
"args": [
|
27
27
|
"-y",
|
28
|
-
"cls-mcp-server"
|
28
|
+
"cls-mcp-server@latest"
|
29
29
|
],
|
30
30
|
"env": {
|
31
31
|
"TRANSPORT": "stdio",
|
@@ -59,7 +59,7 @@ PORT=3000
|
|
59
59
|
2. Run command to start sse server
|
60
60
|
|
61
61
|
```
|
62
|
-
npx -y cls-mcp-server
|
62
|
+
npx -y cls-mcp-server@latest
|
63
63
|
```
|
64
64
|
|
65
65
|
3. Config your `mcpServers` settings
|
package/dist/index.js
CHANGED
@@ -286,12 +286,7 @@ function main() {
|
|
286
286
|
const port = process.env.PORT ? Number(process.env.PORT) : 3000;
|
287
287
|
app.get('/sse', (req, res) => {
|
288
288
|
transport = new sse_js_1.SSEServerTransport('/messages', res);
|
289
|
-
mcpServer
|
290
|
-
.connect(transport)
|
291
|
-
.then(() => {
|
292
|
-
console.log(`Started cls-mcp-server in sse transport on port ${port}.`);
|
293
|
-
})
|
294
|
-
.catch((error) => {
|
289
|
+
mcpServer.connect(transport).catch((error) => {
|
295
290
|
console.error('Fatal error in main():', error);
|
296
291
|
process.exit(error?.code || 1);
|
297
292
|
});
|
@@ -302,6 +297,7 @@ function main() {
|
|
302
297
|
}
|
303
298
|
});
|
304
299
|
app.listen(port);
|
300
|
+
console.log(`Started cls-mcp-server in sse transport on port ${port}.`);
|
305
301
|
}
|
306
302
|
else {
|
307
303
|
const stdioTransport = new stdio_js_1.StdioServerTransport();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cls-mcp-server",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.3",
|
4
4
|
"main": "index.js",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -12,7 +12,7 @@
|
|
12
12
|
"build": "tsc && chmod 755 dist/index.js",
|
13
13
|
"lint": "eslint -c .eslintrc.js --fix --quiet src/**/*.ts src/**/*.tsx",
|
14
14
|
"prepare": "husky",
|
15
|
-
"publish": "npm run build && npm publish --registry=\"https://registry.npmjs.org/\"",
|
15
|
+
"publish:npm": "npm run build && npm publish --registry=\"https://registry.npmjs.org/\"",
|
16
16
|
"postinstall": "patch-package",
|
17
17
|
"start:sse": "npm run build && node ./dist/index.js"
|
18
18
|
},
|