bookstack-mcp 3.2.0 → 3.3.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
@@ -51,8 +51,11 @@ BOOKSTACK_BASE_URL=https://your-bookstack.com # Required
51
51
  BOOKSTACK_TOKEN_ID=your-token-id # Required
52
52
  BOOKSTACK_TOKEN_SECRET=your-token-secret # Required
53
53
  BOOKSTACK_ENABLE_WRITE=false # Optional, default false
54
+ BOOKSTACK_INSECURE_SKIP_TLS_VERIFY=false # Optional, default false
54
55
  ```
55
56
 
57
+ > **Security warning:** `BOOKSTACK_INSECURE_SKIP_TLS_VERIFY=true` disables TLS certificate verification for outgoing requests to BookStack. Use only for self-signed certs on a trusted LAN — connections become vulnerable to MITM attacks. The server logs a `WARNING` line at startup whenever this is enabled.
58
+
56
59
  ## Client Configuration
57
60
 
58
61
  ### Claude Desktop
@@ -1,4 +1,5 @@
1
1
  import axios from 'axios';
2
+ import https from 'https';
2
3
  export class BookStackClient {
3
4
  client;
4
5
  enableWrite;
@@ -12,7 +13,10 @@ export class BookStackClient {
12
13
  headers: {
13
14
  'Authorization': `Token ${config.tokenId}:${config.tokenSecret}`,
14
15
  'Content-Type': 'application/json'
15
- }
16
+ },
17
+ httpsAgent: config.insecureSkipTlsVerify
18
+ ? new https.Agent({ rejectUnauthorized: false })
19
+ : undefined
16
20
  });
17
21
  }
18
22
  applyFilters(params, filter) {
package/dist/index.js CHANGED
@@ -974,11 +974,15 @@ async function main() {
974
974
  baseUrl: getRequiredEnvVar('BOOKSTACK_BASE_URL'),
975
975
  tokenId: getRequiredEnvVar('BOOKSTACK_TOKEN_ID'),
976
976
  tokenSecret: getRequiredEnvVar('BOOKSTACK_TOKEN_SECRET'),
977
- enableWrite: process.env.BOOKSTACK_ENABLE_WRITE?.toLowerCase() === 'true'
977
+ enableWrite: process.env.BOOKSTACK_ENABLE_WRITE?.toLowerCase() === 'true',
978
+ insecureSkipTlsVerify: process.env.BOOKSTACK_INSECURE_SKIP_TLS_VERIFY?.toLowerCase() === 'true'
978
979
  };
979
980
  console.error('Initializing BookStack MCP Server...');
980
981
  console.error(`BookStack URL: ${config.baseUrl}`);
981
982
  console.error(`Write operations: ${config.enableWrite ? 'ENABLED' : 'DISABLED'}`);
983
+ if (config.insecureSkipTlsVerify) {
984
+ console.error('WARNING: TLS certificate verification is DISABLED (BOOKSTACK_INSECURE_SKIP_TLS_VERIFY=true). Connections to BookStack are vulnerable to MITM attacks. Use only with trusted self-signed certs on a trusted network.');
985
+ }
982
986
  const transportMode = (process.env.MCP_TRANSPORT ?? "stdio").toLowerCase();
983
987
  if (transportMode === "http" || transportMode === "sse") {
984
988
  await startHttp(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bookstack-mcp",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "MCP server for BookStack wiki — search, read, create, and manage documentation via AI assistants",
5
5
  "type": "module",
6
6
  "bin": {