@grainulation/wheat 1.0.8 → 1.0.9
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/bin/wheat-mcp.js +24 -0
- package/lib/init.js +1 -1
- package/package.json +3 -2
package/bin/wheat-mcp.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* wheat-mcp — Dedicated MCP server entry point
|
|
4
|
+
*
|
|
5
|
+
* Skips the CLI dispatch chain (bin/wheat.js) and starts the MCP server
|
|
6
|
+
* directly. This avoids the async import overhead, install-prompt, and
|
|
7
|
+
* arg parsing that can cause connection timeouts in Claude Code's
|
|
8
|
+
* plugin transport (30s stdio initialization timeout).
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* node bin/wheat-mcp.js [--dir <path>]
|
|
12
|
+
* npx @grainulation/wheat-mcp [--dir <path>]
|
|
13
|
+
*
|
|
14
|
+
* Zero npm dependencies.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { startServer } from "../lib/serve-mcp.js";
|
|
18
|
+
|
|
19
|
+
const dirIdx = process.argv.indexOf("--dir");
|
|
20
|
+
const dir = dirIdx !== -1 && process.argv[dirIdx + 1]
|
|
21
|
+
? process.argv[dirIdx + 1]
|
|
22
|
+
: process.cwd();
|
|
23
|
+
|
|
24
|
+
startServer(dir);
|
package/lib/init.js
CHANGED
|
@@ -344,7 +344,7 @@ function writeMcpJson(dir) {
|
|
|
344
344
|
const mcpPath = target(dir, ".mcp.json");
|
|
345
345
|
const wheatEntry = {
|
|
346
346
|
command: "npx",
|
|
347
|
-
args: ["-y", "@grainulation/wheat
|
|
347
|
+
args: ["-y", "@grainulation/wheat-mcp"],
|
|
348
348
|
};
|
|
349
349
|
|
|
350
350
|
let config = { mcpServers: {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grainulation/wheat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Research-driven development framework — structured claims, compiled evidence, deterministic output",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "grainulation contributors",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"./load-claims": "./lib/load-claims.js"
|
|
37
37
|
},
|
|
38
38
|
"bin": {
|
|
39
|
-
"wheat": "bin/wheat.js"
|
|
39
|
+
"wheat": "bin/wheat.js",
|
|
40
|
+
"wheat-mcp": "bin/wheat-mcp.js"
|
|
40
41
|
},
|
|
41
42
|
"files": [
|
|
42
43
|
"bin/",
|