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 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 (Pi's creator) wrote about [why you might not need MCP](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/). The core issue: MCP servers ship dozens of tools with verbose descriptions. Playwright MCP has 21 tools eating 13.7k tokens. Chrome DevTools MCP has 26 tools eating 18k tokens. Connect a few servers and you've burned 30-50k tokens before the conversation starts. That's context bloat, slower responses, higher costs, and confused agents drowning in tool options.
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 solution: skip MCP, write simple CLI tools.
11
+ His take: skip MCP entirely, write simple CLI tools instead.
12
12
 
13
- But there's an active ecosystem of well-maintained MCP servers for databases, browsers, APIs, file systems, and more. This adapter lets you tap into that ecosystem without the context cost. One proxy tool (~200 tokens) instead of hundreds of individual tool definitions. The LLM discovers what it needs on-demand.
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 totalTools = [...s.registeredTools.values()].flat().length;
75
- if (totalTools > 0) {
76
- ctx.ui.setStatus("mcp", ctx.ui.theme.fg("accent", `MCP: ${totalTools} tools`));
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 new tool count
905
+ // Update status bar with server count
905
906
  if (ctx.hasUI) {
906
- const totalTools = [...state.registeredTools.values()].flat().length;
907
- if (totalTools > 0) {
908
- ctx.ui.setStatus("mcp", ctx.ui.theme.fg("accent", `MCP: ${totalTools} tools`));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-mcp-adapter",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "MCP (Model Context Protocol) adapter extension for Pi coding agent",
5
5
  "type": "module",
6
6
  "license": "MIT",