@arabold/docs-mcp-server 3.4.0 → 3.4.1
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 +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/{main-BTCYUUTU.js → main-Cb6JaTXM.js} +2231 -194
- package/dist/main-Cb6JaTXM.js.map +1 -0
- package/package.json +1 -1
- package/dist/main-BTCYUUTU.js.map +0 -1
- package/dist/utils-1UoDzw8s.js +0 -1
- package/dist/utils-7a9aMv8E.js +0 -1866
- package/dist/utils-7a9aMv8E.js.map +0 -1
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ npx @arabold/docs-mcp-server@latest fetch-url https://react.dev/reference/react/
|
|
|
87
87
|
## Web Scraping
|
|
88
88
|
|
|
89
89
|
- Before it crawls a website, a scrape or refresh looks for an `llms.txt` file in the start URL's directory and at the site root. The links listed there become extra starting points, and for those pages the scraper first tries the Markdown version of the URL, such as `/guide/index.html.md` or `/page.html.md`.
|
|
90
|
-
- Requests ask for
|
|
90
|
+
- Requests ask for HTML first, like a browser. Markdown that a server converts on request leaves out the site's navigation, so a crawl would miss most pages. The scraper uses Markdown where the site publishes it: pages listed in `llms.txt` and links to `.md` files. A custom `Accept` header replaces the default one.
|
|
91
91
|
- For documentation sites that route with hash URLs, such as `https://docs.example.com/#/guide`, turn on hash routes for the scrape. See [Hash Route Behavior](docs/setup/configuration.md#hash-route-behavior).
|
|
92
92
|
|
|
93
93
|
## Documentation
|
package/dist/index.js
CHANGED
|
@@ -5,8 +5,7 @@ import "dotenv/config";
|
|
|
5
5
|
// src/index.ts
|
|
6
6
|
process.setSourceMapsEnabled(true);
|
|
7
7
|
sanitizeEnvironment();
|
|
8
|
-
var
|
|
9
|
-
ensurePlaywrightBrowsersInstalled();
|
|
8
|
+
var { runCli } = await import("./main-Cb6JaTXM.js");
|
|
10
9
|
runCli().catch((error) => {
|
|
11
10
|
logger.error(`🔥 Fatal error in main execution: ${error}`);
|
|
12
11
|
process.exit(1);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Enable source maps (Node.js 20+)\nprocess.setSourceMapsEnabled(true);\n\nimport \"dotenv/config\";\nimport { sanitizeEnvironment } from \"./utils/env\";\nimport { logger } from \"./utils/logger\";\n\nsanitizeEnvironment();\n\
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Enable source maps (Node.js 20+)\nprocess.setSourceMapsEnabled(true);\n\nimport \"dotenv/config\";\nimport { sanitizeEnvironment } from \"./utils/env\";\nimport { logger } from \"./utils/logger\";\n\nsanitizeEnvironment();\n\n// Commands that can launch a browser make sure one is installed themselves.\nconst { runCli } = await import(\"./cli/main\");\n\n// Run the CLI\nrunCli().catch((error) => {\n logger.error(`🔥 Fatal error in main execution: ${error}`);\n process.exit(1);\n});\n"],"mappings":";;;;AACA,QAAQ,qBAAqB,IAAI;AAMjC,oBAAoB;AAGpB,IAAM,EAAE,WAAW,MAAM,OAAO;AAGhC,OAAO,CAAC,CAAC,OAAO,UAAU;CACxB,OAAO,MAAM,qCAAqC,OAAO;CACzD,QAAQ,KAAK,CAAC;AAChB,CAAC"}
|