@pi-unipi/mcp 2.0.13 → 2.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/mcp",
3
- "version": "2.0.13",
3
+ "version": "2.1.0",
4
4
  "description": "MCP server management extension for Pi coding agent \u2014 browse, add, configure, and use MCP servers",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -27,11 +27,11 @@
27
27
  "README.md"
28
28
  ],
29
29
  "dependencies": {
30
- "@pi-unipi/core": "2.0.13"
30
+ "@pi-unipi/core": "2.1.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@earendil-works/pi-coding-agent": "^0.78.0",
34
- "@earendil-works/pi-tui": "^0.78.0",
33
+ "@earendil-works/pi-coding-agent": "^0.80.0",
34
+ "@earendil-works/pi-tui": "^0.80.0",
35
35
  "typebox": "^1.1.38"
36
36
  },
37
37
  "devDependencies": {
package/src/index.ts CHANGED
@@ -4,6 +4,8 @@
4
4
  * Registers commands, handles session lifecycle, wires up MCP server management.
5
5
  */
6
6
 
7
+ import { dirname } from "node:path";
8
+ import { fileURLToPath } from "node:url";
7
9
  import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
8
10
  import {
9
11
  UNIPI_EVENTS,
@@ -20,7 +22,7 @@ import { renderMcpAddOverlay } from "./tui/add-overlay.js";
20
22
  import { renderMcpSettingsOverlay } from "./tui/settings-overlay.js";
21
23
 
22
24
  /** Package version */
23
- const VERSION = getPackageVersion(new URL(".", import.meta.url).pathname);
25
+ const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
24
26
 
25
27
  /** Module-local registry instance */
26
28
  let registry: ServerRegistry | null = null;
File without changes