doc2mcp 0.1.14 → 0.1.16

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
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
 
3
- <img src="https://raw.githubusercontent.com/gautammanak1/doc2mcp/main/public/doc2mcp-cli-banner.png" alt="doc2mcp — turn any docs site into a hosted MCP server from your terminal" width="100%" />
3
+ <img src="./assets/doc2mcp-cli-banner.png" alt="doc2mcp — turn any docs site into a hosted MCP server from your terminal" width="100%" />
4
4
 
5
5
  # doc2mcp
6
6
 
@@ -172,7 +172,7 @@ Existing config is merged, not overwritten.
172
172
 
173
173
  | Symptom | Fix |
174
174
  | --- | --- |
175
- | `command not found: doc2mcp` | You installed locally. Reinstall with `npm i -g doc2mcp`, or use `npx doc2mcp <url>`. |
175
+ | `command not found: doc2mcp` | You installed locally or your shell cached PATH. Reinstall with `npm i -g doc2mcp`, then run `hash -r` or open a new terminal. You can also use `npx doc2mcp <url>`. |
176
176
  | Browser doesn't open on `login` | Copy the printed URL into your browser manually, then approve. |
177
177
  | `login` can't reach the server | Confirm you're online; for self-hosting set `DOC2MCP_API_URL` to your instance. |
178
178
  | "Limit reached" | You've hit your plan's monthly conversion limit (shared across CLI, web, and Playground). |
Binary file
package/dist/index.js CHANGED
@@ -358,28 +358,35 @@ function mergeVscodeMcp(existing, incoming) {
358
358
  }
359
359
 
360
360
  // src/installers/install.ts
361
+ function unwrapConfig(value) {
362
+ const nested = value.config;
363
+ if (nested && typeof nested === "object" && !Array.isArray(nested)) {
364
+ return nested;
365
+ }
366
+ return value;
367
+ }
361
368
  async function installToClient(client, configPath, payload) {
362
369
  if (client === "cursor") {
363
370
  const existing = await readJsonFile(configPath);
364
- const merged = mergeMcpServers(existing, payload.cursor);
371
+ const merged = mergeMcpServers(existing, unwrapConfig(payload.cursor));
365
372
  await writeJsonFile(configPath, merged);
366
373
  return;
367
374
  }
368
375
  if (client === "vscode") {
369
376
  const existing = await readJsonFile(configPath);
370
- const merged = mergeVscodeMcp(existing, payload.vscode);
377
+ const merged = mergeVscodeMcp(existing, unwrapConfig(payload.vscode));
371
378
  await writeJsonFile(configPath, merged);
372
379
  return;
373
380
  }
374
381
  if (client === "windsurf") {
375
382
  const existing = await readJsonFile(configPath);
376
- const merged = mergeMcpServers(existing, payload.windsurf);
383
+ const merged = mergeMcpServers(existing, unwrapConfig(payload.windsurf));
377
384
  await writeJsonFile(configPath, merged);
378
385
  return;
379
386
  }
380
387
  if (client === "claude") {
381
388
  const existing = await readJsonFile(configPath);
382
- const merged = mergeMcpServers(existing, payload.claude);
389
+ const merged = mergeMcpServers(existing, unwrapConfig(payload.claude));
383
390
  await writeJsonFile(configPath, merged);
384
391
  }
385
392
  }
@@ -534,7 +541,7 @@ async function runList() {
534
541
 
535
542
  // src/index.ts
536
543
  var program = new Command();
537
- program.name("doc2mcp").description("Generate documentation MCP servers from your terminal").version("0.1.14", "-v, --version", "Print the installed CLI version");
544
+ program.name("doc2mcp").description("Generate documentation MCP servers from your terminal").version("0.1.16", "-v, --version", "Print the installed CLI version");
538
545
  program.command("login").description("Authorize the CLI via browser").action(async () => {
539
546
  await runLogin();
540
547
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc2mcp",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Turn any documentation site into a hosted MCP server from your terminal — for Cursor, Claude, VS Code, Windsurf, and OpenAI agents.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,6 +16,7 @@
16
16
  "url": "https://github.com/gautammanak1/doc2mcp/issues"
17
17
  },
18
18
  "files": [
19
+ "assets",
19
20
  "dist",
20
21
  "README.md"
21
22
  ],