entroly-mcp 0.4.0

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.
Files changed (3) hide show
  1. package/README.md +32 -0
  2. package/index.js +33 -0
  3. package/package.json +33 -0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @ebbiforge/entroly-mcp
2
+
3
+ NPM bridge for the Entroly MCP server. This package wraps the Python `entroly` CLI so you can use it with Cursor, VS Code, and other MCP clients that prefer npm-based tool installation.
4
+
5
+ ## Prerequisites
6
+
7
+ You need the Python `entroly` package installed:
8
+
9
+ ```bash
10
+ pip install entroly
11
+ ```
12
+
13
+ ## Usage with Cursor
14
+
15
+ Add to your Cursor MCP config (`.cursor/mcp.json`):
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "entroly": {
21
+ "command": "npx",
22
+ "args": ["-y", "@ebbiforge/entroly-mcp"]
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## What this does
29
+
30
+ This is a **thin bridge** — it simply calls `entroly serve` under the hood. All the actual context optimization runs in the Entroly Python package backed by the `entroly-core` Rust engine.
31
+
32
+ For more info, see the [main repo](https://github.com/juyterman1000/entroly).
package/index.js ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawnSync } = require('child_process');
4
+ const path = require('path');
5
+
6
+ // Pass all arguments straight through to the Python MCP server
7
+ const args = process.argv.slice(2);
8
+
9
+ // Check if 'entroly' command is available (installed via pip/pipx)
10
+ const checkCmd = process.platform === 'win32' ? 'where' : 'which';
11
+ const checkStatus = spawnSync(checkCmd, ['entroly'], { stdio: 'ignore' });
12
+
13
+ if (checkStatus.status !== 0) {
14
+ console.error("=====================================================================");
15
+ console.error(" Error: 'entroly' Python package is not installed.");
16
+ console.error("");
17
+ console.error(" The @ebbiforge/entroly-mcp package is a bridge. To use it,");
18
+ console.error(" you must have the Python engine installed on your system.");
19
+ console.error("");
20
+ console.error(" Please run:");
21
+ console.error(" pip install entroly");
22
+ console.error(" or");
23
+ console.error(" pipx install entroly");
24
+ console.error("=====================================================================");
25
+ process.exit(1);
26
+ }
27
+
28
+ // Spawn the Python process, replacing the current node process's stdio directly
29
+ const pyProcess = spawnSync('entroly', args, {
30
+ stdio: 'inherit'
31
+ });
32
+
33
+ process.exit(pyProcess.status !== null ? pyProcess.status : 1);
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "entroly-mcp",
3
+ "version": "0.4.0",
4
+ "description": "Information-theoretic context optimization MCP server for AI coding agents. Bridge package that wraps the Entroly Python engine.",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "entroly-mcp": "index.js"
8
+ },
9
+ "files": [
10
+ "index.js",
11
+ "README.md"
12
+ ],
13
+ "scripts": {
14
+ "test": "node index.js --help || true"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/juyterman1000/entroly"
19
+ },
20
+ "homepage": "https://github.com/juyterman1000/entroly",
21
+ "keywords": [
22
+ "mcp",
23
+ "context-optimization",
24
+ "entroly",
25
+ "ai",
26
+ "agents",
27
+ "cursor",
28
+ "claude",
29
+ "vscode"
30
+ ],
31
+ "author": "Ebbiforge Team",
32
+ "license": "MIT"
33
+ }