@just-every/mcp-read-website-fast 0.1.17 → 0.1.19
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 +4 -0
- package/bin/mcp-read-website.js +7 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,10 @@ Fast, token-efficient web content extraction for AI agents - converts websites t
|
|
|
5
5
|
[](https://www.npmjs.com/package/@just-every/mcp-read-website-fast)
|
|
6
6
|
[](https://github.com/just-every/mcp-read-website-fast/actions)
|
|
7
7
|
|
|
8
|
+
<a href="https://glama.ai/mcp/servers/@just-every/mcp-read-website-fast">
|
|
9
|
+
<img width="380" height="200" src="https://glama.ai/mcp/servers/@just-every/mcp-read-website-fast/badge" alt="read-website-fast MCP server" />
|
|
10
|
+
</a>
|
|
11
|
+
|
|
8
12
|
## Overview
|
|
9
13
|
|
|
10
14
|
Existing MCP web crawlers are slow and consume large quantities of tokens. This pauses the development process and provides incomplete results as LLMs need to parse whole web pages.
|
package/bin/mcp-read-website.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from 'url';
|
|
4
4
|
import { dirname, join } from 'path';
|
|
5
5
|
import { existsSync } from 'fs';
|
|
6
6
|
|
|
@@ -19,10 +19,11 @@ async function main() {
|
|
|
19
19
|
// Use compiled JavaScript for production (fast startup)
|
|
20
20
|
if (command === 'serve') {
|
|
21
21
|
const servePath = join(__dirname, '..', 'dist', 'serve-restart.js');
|
|
22
|
-
|
|
22
|
+
// Convert absolute path to file:// URL for Windows ESM loader compatibility
|
|
23
|
+
await import(pathToFileURL(servePath).href);
|
|
23
24
|
} else {
|
|
24
25
|
const cliPath = join(__dirname, '..', 'dist', 'index.js');
|
|
25
|
-
await import(cliPath);
|
|
26
|
+
await import(pathToFileURL(cliPath).href);
|
|
26
27
|
}
|
|
27
28
|
} else {
|
|
28
29
|
// Fall back to TypeScript with tsx for development
|
|
@@ -31,10 +32,10 @@ async function main() {
|
|
|
31
32
|
|
|
32
33
|
if (command === 'serve') {
|
|
33
34
|
const servePath = join(__dirname, '..', 'src', 'serve-restart.ts');
|
|
34
|
-
await import(servePath);
|
|
35
|
+
await import(pathToFileURL(servePath).href);
|
|
35
36
|
} else {
|
|
36
37
|
const cliPath = join(__dirname, '..', 'src', 'index.ts');
|
|
37
|
-
await import(cliPath);
|
|
38
|
+
await import(pathToFileURL(cliPath).href);
|
|
38
39
|
}
|
|
39
40
|
} catch (error) {
|
|
40
41
|
console.error('Error: Development dependencies not installed. Please run "npm install" first.');
|
|
@@ -46,4 +47,4 @@ async function main() {
|
|
|
46
47
|
main().catch(err => {
|
|
47
48
|
console.error('Error:', err);
|
|
48
49
|
process.exit(1);
|
|
49
|
-
});
|
|
50
|
+
});
|
package/package.json
CHANGED