obsidian-mcp-server 1.2.5 → 1.2.6

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/build/obsidian.js CHANGED
@@ -135,11 +135,19 @@ export class ObsidianClient {
135
135
  const errorData = response?.data;
136
136
  // Handle common connection errors with helpful messages
137
137
  if (error.code === 'DEPTH_ZERO_SELF_SIGNED_CERT' || error.code === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE') {
138
- throw new ObsidianError(`SSL certificate verification failed. To fix this:\n` +
138
+ throw new ObsidianError(`SSL certificate verification failed. You have two options:\n\n` +
139
+ `Option 1 - Enable HTTP (not recommended for production):\n` +
140
+ `1. Go to Obsidian Settings > Local REST API\n` +
141
+ `2. Enable "Enable Non-encrypted (HTTP) Server"\n` +
142
+ `3. Update your client config to use "http" protocol\n\n` +
143
+ `Option 2 - Configure HTTPS (recommended):\n` +
139
144
  `1. Go to Obsidian Settings > Local REST API\n` +
140
145
  `2. Under 'How to Access', copy the certificate\n` +
141
- `3. Configure the certificate as a trusted certificate authority\n` +
142
- `4. Ensure you're using HTTPS (HTTP is disabled by default)\n` +
146
+ `3. Add the certificate to your system's trusted certificates:\n` +
147
+ ` - On macOS: Add to Keychain Access\n` +
148
+ ` - On Windows: Add to Certificate Manager\n` +
149
+ ` - On Linux: Add to ca-certificates\n` +
150
+ ` For development only: Set verifySSL: false in client config\n\n` +
143
151
  `Original error: ${error.message}`, 50001, // SSL error code
144
152
  { code: error.code, config: { verifySSL: this.config.verifySSL } });
145
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-mcp-server",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Model Context Protocol server for Obsidian integration with token-aware response handling",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
package/src/obsidian.ts CHANGED
@@ -171,11 +171,19 @@ export class ObsidianClient {
171
171
  // Handle common connection errors with helpful messages
172
172
  if (error.code === 'DEPTH_ZERO_SELF_SIGNED_CERT' || error.code === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE') {
173
173
  throw new ObsidianError(
174
- `SSL certificate verification failed. To fix this:\n` +
174
+ `SSL certificate verification failed. You have two options:\n\n` +
175
+ `Option 1 - Enable HTTP (not recommended for production):\n` +
176
+ `1. Go to Obsidian Settings > Local REST API\n` +
177
+ `2. Enable "Enable Non-encrypted (HTTP) Server"\n` +
178
+ `3. Update your client config to use "http" protocol\n\n` +
179
+ `Option 2 - Configure HTTPS (recommended):\n` +
175
180
  `1. Go to Obsidian Settings > Local REST API\n` +
176
181
  `2. Under 'How to Access', copy the certificate\n` +
177
- `3. Configure the certificate as a trusted certificate authority\n` +
178
- `4. Ensure you're using HTTPS (HTTP is disabled by default)\n` +
182
+ `3. Add the certificate to your system's trusted certificates:\n` +
183
+ ` - On macOS: Add to Keychain Access\n` +
184
+ ` - On Windows: Add to Certificate Manager\n` +
185
+ ` - On Linux: Add to ca-certificates\n` +
186
+ ` For development only: Set verifySSL: false in client config\n\n` +
179
187
  `Original error: ${error.message}`,
180
188
  50001, // SSL error code
181
189
  { code: error.code, config: { verifySSL: this.config.verifySSL } }