gohumanize-open-humanizer-mcp 0.1.2 → 0.1.4
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 +6 -0
- package/package.json +1 -1
- package/server.js +4 -1
package/README.md
CHANGED
|
@@ -56,6 +56,12 @@ export OPEN_HUMANIZER_URL=http://localhost:11434/v1
|
|
|
56
56
|
export OPEN_HUMANIZER_MODEL=hf.co/gohumanize/gohumanize-open-humanizer:Q4_K_M
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
**The hosted endpoint sleeps when idle.** The first request after a quiet period waits
|
|
60
|
+
for a GPU cold start, measured at one to two minutes; afterwards a rewrite takes a
|
|
61
|
+
second or two. MCP clients apply their own timeout, often 60 seconds, so the first
|
|
62
|
+
call through a client may fail even with a valid key and succeed on retry. Running the
|
|
63
|
+
model locally avoids this entirely.
|
|
64
|
+
|
|
59
65
|
The endpoint the server falls back to is the one behind the browser demo on
|
|
60
66
|
[gohumanize.ai/research](https://gohumanize.ai/research). It is rate-limited and
|
|
61
67
|
requires `OPEN_HUMANIZER_API_KEY`, so it is not open for general use; to try the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gohumanize-open-humanizer-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "MCP server for the GoHumanize Open Humanizer: rewrites AI-styled text into natural human prose using the open Qwen3-4B fine-tune (hosted endpoint or local Ollama)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/server.js
CHANGED
|
@@ -29,7 +29,10 @@ const DEFAULT_URL = 'https://gohumanize--gohumanize-open-humanizer-serve-serve.m
|
|
|
29
29
|
const BASE_URL = (process.env.OPEN_HUMANIZER_URL || DEFAULT_URL).replace(/\/$/, '');
|
|
30
30
|
const MODEL = process.env.OPEN_HUMANIZER_MODEL || 'gohumanize-open-humanizer';
|
|
31
31
|
const API_KEY = process.env.OPEN_HUMANIZER_API_KEY || '';
|
|
32
|
-
|
|
32
|
+
// 300 s, not 120: the hosted endpoint runs on a GPU that scales to zero, and a cold
|
|
33
|
+
// start plus generation can exceed two minutes. Note that MCP clients apply their own
|
|
34
|
+
// timeout (often 60 s), so a local endpoint is the reliable choice.
|
|
35
|
+
const TIMEOUT_MS = Number(process.env.OPEN_HUMANIZER_TIMEOUT_MS || 300000);
|
|
33
36
|
const MAX_WORDS = 1500;
|
|
34
37
|
|
|
35
38
|
// The hosted endpoint is not open to the public: it is the one behind the browser
|