@phi-code-admin/phi-code 0.84.1 → 0.84.2

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
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.84.2] - 2026-06-14
4
+
5
+ ### Fixed
6
+
7
+ - **The `/mcp` command was missing until at least one server was configured.**
8
+ The bundled mcp extension returned early when `mcp.json` had no servers, so
9
+ `/mcp` never registered and there was no way to discover how to set MCP up. It
10
+ now always registers `/mcp` (plus `/mcp:start`, `/mcp:stop`, `/mcp:auth`); when
11
+ no servers are configured, `/mcp` prints guidance and an example `mcp.json`.
12
+ Servers are still only connected when one is actually configured.
13
+
3
14
  ## [0.84.1] - 2026-06-14
4
15
 
5
16
  ### Fixed
@@ -69,10 +69,9 @@ export default async function (pi: ExtensionAPI): Promise<void> {
69
69
  return;
70
70
  }
71
71
 
72
- if (Object.keys(config.mcpServers).length === 0) {
73
- // No servers configured silently exit. Users can create mcp.json later.
74
- return;
75
- }
72
+ // Even with zero configured servers we proceed so the bundled `/mcp` command
73
+ // is always available (discoverability); it then guides the user to create an
74
+ // mcp.json. Servers are still only connected when one is actually configured.
76
75
 
77
76
  // ── 2. Initialize bridge components ──────────────────────────────────────
78
77
  // Auth callbacks — opens browser and notifies user when OAuth is needed
@@ -172,6 +171,13 @@ export default async function (pi: ExtensionAPI): Promise<void> {
172
171
  .filter(Boolean)
173
172
  .join("\n");
174
173
  ctx.ui.notify(detail, "info");
174
+ } else if (manager.getAllServers().length === 0) {
175
+ // No servers configured yet: guide the user instead of showing nothing.
176
+ ctx.ui.notify(
177
+ 'No MCP servers configured. Create ~/.phi/agent/mcp.json (global) or .phi/mcp.json (project) with an "mcpServers" block, e.g.:\n' +
178
+ '{ "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], "lifecycle": "eager" } } }',
179
+ "info",
180
+ );
175
181
  } else {
176
182
  // Summary view: all servers
177
183
  ctx.ui.notify(manager.getStatusSummary(), "info");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phi-code-admin/phi-code",
3
- "version": "0.84.1",
3
+ "version": "0.84.2",
4
4
  "description": "Coding agent CLI with persistent memory, sub-agents, intelligent routing, and orchestration",
5
5
  "type": "module",
6
6
  "piConfig": {