counsel-mcp-server 0.1.2 → 0.1.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 +17 -5
- package/dist/index.js +3 -3
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -402,13 +402,25 @@ npm run build
|
|
|
402
402
|
### Commands
|
|
403
403
|
|
|
404
404
|
```bash
|
|
405
|
-
npm run build
|
|
406
|
-
npm run dev
|
|
407
|
-
npm run start
|
|
408
|
-
npm test
|
|
409
|
-
npm run lint
|
|
405
|
+
npm run build # Compile TypeScript
|
|
406
|
+
npm run dev # Watch mode
|
|
407
|
+
npm run start # Run server
|
|
408
|
+
npm test # Run tests
|
|
409
|
+
npm run lint # Type check
|
|
410
|
+
npm run security:check # Scan staged files for secrets
|
|
411
|
+
npm run security:check:all # Scan all files for secrets
|
|
410
412
|
```
|
|
411
413
|
|
|
414
|
+
### Security
|
|
415
|
+
|
|
416
|
+
This project includes automated secret detection:
|
|
417
|
+
|
|
418
|
+
- **Pre-commit hook**: Automatically scans staged files before each commit
|
|
419
|
+
- **CI integration**: Security checks run on all pull requests
|
|
420
|
+
- **Pattern detection**: AWS keys, GitHub tokens, API keys, private keys, etc.
|
|
421
|
+
|
|
422
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md#security-checks) for details.
|
|
423
|
+
|
|
412
424
|
### Project Structure
|
|
413
425
|
|
|
414
426
|
```
|
package/dist/index.js
CHANGED
|
@@ -11,14 +11,14 @@ const program = new Command();
|
|
|
11
11
|
program
|
|
12
12
|
.name("counsel-mcp")
|
|
13
13
|
.description("Counsel MCP Server")
|
|
14
|
-
.version("0.1.
|
|
14
|
+
.version("0.1.3");
|
|
15
15
|
/**
|
|
16
16
|
* Create and configure the MCP server with all tools
|
|
17
17
|
*/
|
|
18
18
|
function createMcpServer() {
|
|
19
19
|
const server = new McpServer({
|
|
20
20
|
name: "counsel-mcp",
|
|
21
|
-
version: "0.1.
|
|
21
|
+
version: "0.1.3",
|
|
22
22
|
});
|
|
23
23
|
// Register all tools
|
|
24
24
|
for (const tool of Object.values(DEBATE_TOOLS)) {
|
|
@@ -112,7 +112,7 @@ program.command("http")
|
|
|
112
112
|
});
|
|
113
113
|
app.use("/mcp", mcpHandler);
|
|
114
114
|
app.get("/health", (_req, res) => {
|
|
115
|
-
res.json({ status: "ok", version: "0.1.
|
|
115
|
+
res.json({ status: "ok", version: "0.1.3" });
|
|
116
116
|
});
|
|
117
117
|
app.listen(port, host, () => {
|
|
118
118
|
console.log(`Counsel MCP Server running at ${baseUrl.href}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "counsel-mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Open-source MCP server for connecting AI agents to the Counsel API",
|
|
5
5
|
"author": "Counsel AI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"bin": {
|
|
11
|
-
"counsel-mcp": "
|
|
11
|
+
"counsel-mcp": "dist/index.js"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -31,7 +31,10 @@
|
|
|
31
31
|
"test": "vitest run",
|
|
32
32
|
"test:watch": "vitest",
|
|
33
33
|
"lint": "tsc --noEmit",
|
|
34
|
-
"
|
|
34
|
+
"security:check": "node scripts/check-secrets.js",
|
|
35
|
+
"security:check:all": "node scripts/check-secrets.js --all",
|
|
36
|
+
"prepublishOnly": "npm run build && npm run test",
|
|
37
|
+
"prepare": "husky"
|
|
35
38
|
},
|
|
36
39
|
"keywords": [
|
|
37
40
|
"mcp",
|
|
@@ -71,6 +74,7 @@
|
|
|
71
74
|
"devDependencies": {
|
|
72
75
|
"@types/express": "^5.0.6",
|
|
73
76
|
"@types/node": "^20.0.0",
|
|
77
|
+
"husky": "^9.1.7",
|
|
74
78
|
"typescript": "^5.0.0",
|
|
75
79
|
"vitest": "^2.0.0"
|
|
76
80
|
}
|