pi-mcp-adapter 1.4.0 → 1.4.1
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/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/index.ts +9 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.1] - 2026-01-19
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Status bar shows server count instead of tool count ("MCP: 5 servers")
|
|
13
|
+
|
|
8
14
|
## [1.4.0] - 2026-01-19
|
|
9
15
|
|
|
10
16
|
### Changed
|
package/README.md
CHANGED
|
@@ -6,11 +6,11 @@ https://github.com/user-attachments/assets/4b7c66ff-e27e-4639-b195-22c3db406a5a
|
|
|
6
6
|
|
|
7
7
|
## Why This Exists
|
|
8
8
|
|
|
9
|
-
Mario
|
|
9
|
+
Mario wrote about [why you might not need MCP](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/). The problem: each MCP server dumps dozens of tools into your context. Playwright alone eats 13k tokens. Connect a few servers and you've burned half your context window before the conversation starts.
|
|
10
10
|
|
|
11
|
-
His
|
|
11
|
+
His take: skip MCP entirely, write simple CLI tools instead.
|
|
12
12
|
|
|
13
|
-
But
|
|
13
|
+
But the MCP ecosystem has useful stuff - databases, browsers, APIs. This adapter gives you access without the bloat. One proxy tool (~200 tokens) instead of hundreds. The agent discovers what it needs on-demand.
|
|
14
14
|
|
|
15
15
|
## Install
|
|
16
16
|
|
package/index.ts
CHANGED
|
@@ -71,9 +71,10 @@ export default function mcpAdapter(pi: ExtensionAPI) {
|
|
|
71
71
|
|
|
72
72
|
// Update status bar when ready
|
|
73
73
|
if (ctx.hasUI) {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
|
|
74
|
+
const serverCount = s.registeredTools.size;
|
|
75
|
+
if (serverCount > 0) {
|
|
76
|
+
const label = serverCount === 1 ? "server" : "servers";
|
|
77
|
+
ctx.ui.setStatus("mcp", ctx.ui.theme.fg("accent", `MCP: ${serverCount} ${label}`));
|
|
77
78
|
} else {
|
|
78
79
|
ctx.ui.setStatus("mcp", "");
|
|
79
80
|
}
|
|
@@ -901,11 +902,12 @@ async function reconnectServers(
|
|
|
901
902
|
}
|
|
902
903
|
}
|
|
903
904
|
|
|
904
|
-
// Update status bar with
|
|
905
|
+
// Update status bar with server count
|
|
905
906
|
if (ctx.hasUI) {
|
|
906
|
-
const
|
|
907
|
-
if (
|
|
908
|
-
|
|
907
|
+
const serverCount = state.registeredTools.size;
|
|
908
|
+
if (serverCount > 0) {
|
|
909
|
+
const label = serverCount === 1 ? "server" : "servers";
|
|
910
|
+
ctx.ui.setStatus("mcp", ctx.ui.theme.fg("accent", `MCP: ${serverCount} ${label}`));
|
|
909
911
|
} else {
|
|
910
912
|
ctx.ui.setStatus("mcp", "");
|
|
911
913
|
}
|