serena-slim 0.0.1-slim.1.4 → 0.0.1-slim.1.6
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 -8
- package/bin/mcpslim-windows-x64.exe +0 -0
- package/index.js +15 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# serena-slim
|
|
2
2
|
|
|
3
|
-
> **Serena MCP server optimized for AI assistants** — Reduce context window tokens by
|
|
3
|
+
> **Serena MCP server optimized for AI assistants** — Reduce context window tokens by ~38% while keeping full functionality. Compatible with Claude, ChatGPT, Gemini, Cursor, and all MCP clients.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/serena-slim)
|
|
6
6
|
[](https://github.com/mcpslim/mcpslim)
|
|
@@ -14,11 +14,11 @@ A **token-optimized** version of the Serena [Model Context Protocol (MCP)](https
|
|
|
14
14
|
|
|
15
15
|
MCP tool schemas consume significant **context window tokens**. When AI assistants like Claude or ChatGPT load MCP tools, each tool definition takes up valuable context space.
|
|
16
16
|
|
|
17
|
-
The original `serena` loads **29 tools** consuming approximately **~
|
|
17
|
+
The original `serena` loads **29 tools** consuming approximately **~0 tokens** — that's space you could use for actual conversation.
|
|
18
18
|
|
|
19
19
|
### The Solution
|
|
20
20
|
|
|
21
|
-
`serena-slim` intelligently **groups 29 tools into 18 semantic operations**, reducing token usage by **
|
|
21
|
+
`serena-slim` intelligently **groups 29 tools into 18 semantic operations**, reducing token usage by **undefined** — with **zero functionality loss**.
|
|
22
22
|
|
|
23
23
|
Your AI assistant sees fewer, smarter tools. Every original capability remains available.
|
|
24
24
|
|
|
@@ -27,8 +27,6 @@ Your AI assistant sees fewer, smarter tools. Every original capability remains a
|
|
|
27
27
|
| Metric | Original | Slim | Reduction |
|
|
28
28
|
|--------|----------|------|-----------|
|
|
29
29
|
| Tools | 29 | 18 | **-38%** |
|
|
30
|
-
| Schema Tokens | 7,348 | 1,289 | **82.5%** |
|
|
31
|
-
| Claude Code (est.) | ~23,878 | ~11,549 | **~51.6%** |
|
|
32
30
|
|
|
33
31
|
> **Benchmark Info**
|
|
34
32
|
> - Original: `serena@0.0.1`
|
|
@@ -116,7 +114,7 @@ MCPSlim acts as a **transparent bridge** between AI models and the original MCP
|
|
|
116
114
|
│ Without MCPSlim │
|
|
117
115
|
│ │
|
|
118
116
|
│ [AI Model] ──── reads 29 tool schemas ────→ [Original MCP] │
|
|
119
|
-
│ (~
|
|
117
|
+
│ (~0 tokens loaded into context) │
|
|
120
118
|
├─────────────────────────────────────────────────────────────────┤
|
|
121
119
|
│ With MCPSlim │
|
|
122
120
|
│ │
|
|
@@ -124,7 +122,7 @@ MCPSlim acts as a **transparent bridge** between AI models and the original MCP
|
|
|
124
122
|
│ │ │ │ │
|
|
125
123
|
│ Sees 18 grouped Translates to Executes actual │
|
|
126
124
|
│ tools only original call tool & returns │
|
|
127
|
-
│ (~
|
|
125
|
+
│ (~0 tokens) │
|
|
128
126
|
└─────────────────────────────────────────────────────────────────┘
|
|
129
127
|
```
|
|
130
128
|
|
|
@@ -136,7 +134,7 @@ MCPSlim acts as a **transparent bridge** between AI models and the original MCP
|
|
|
136
134
|
4. **Original MCP executes** — Real server processes the request
|
|
137
135
|
5. **Response returned** — Result passes back unchanged
|
|
138
136
|
|
|
139
|
-
**Zero functionality loss.
|
|
137
|
+
**Zero functionality loss. ~38% token savings.**
|
|
140
138
|
|
|
141
139
|
## Available Tool Groups
|
|
142
140
|
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -17,7 +17,7 @@ const os = require('os');
|
|
|
17
17
|
const fs = require('fs');
|
|
18
18
|
const readline = require('readline');
|
|
19
19
|
|
|
20
|
-
const MCP_NAME = 'serena';
|
|
20
|
+
const MCP_NAME = 'serena-slim';
|
|
21
21
|
const PACKAGE_NAME = 'serena-slim';
|
|
22
22
|
|
|
23
23
|
// 환경변수 요구사항 (빌드 시 주입)
|
|
@@ -234,7 +234,20 @@ if (setupIndex !== -1) {
|
|
|
234
234
|
// Normal Mode: Run MCP server
|
|
235
235
|
// ============================================
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
// 플랫폼별 바이너리 이름 결정
|
|
238
|
+
function getBinaryName() {
|
|
239
|
+
const platform = os.platform();
|
|
240
|
+
const arch = os.arch();
|
|
241
|
+
if (platform === 'win32') {
|
|
242
|
+
return 'mcpslim-windows-x64.exe';
|
|
243
|
+
} else if (platform === 'darwin') {
|
|
244
|
+
return arch === 'arm64' ? 'mcpslim-darwin-arm64' : 'mcpslim-darwin-x64';
|
|
245
|
+
} else {
|
|
246
|
+
return 'mcpslim-linux-x64';
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
const binName = getBinaryName();
|
|
238
251
|
const mcpslimBin = path.join(__dirname, 'bin', binName);
|
|
239
252
|
const recipePath = path.join(__dirname, 'recipes', 'serena.json');
|
|
240
253
|
|