@portofcontext/pctx 0.5.0 → 0.7.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/CHANGELOG.md CHANGED
@@ -13,6 +13,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
 
14
14
  ### Fixed
15
15
 
16
+ ## [v0.7.0] - 2026-03-25
17
+
18
+ ### Added
19
+
20
+ - Upstream MCP connection pooling: PCTX now maintains persistent connections to upstream MCP servers across `execute_typescript` calls, so stateful upstream servers (e.g. LSP servers, database connections) see a continuous session rather than disconnected requests.
21
+ - `pctx mcp start --stateful-http`: HTTP mode now supports stateful upstream sessions scoped to the MCP session ID. The connection pool is created on the first request and reused for the lifetime of the HTTP session, then torn down when the client sends a `DELETE`.
22
+ - `pctx mcp start --stdio`: When running as a stdio MCP server (e.g. in Claude Desktop), a single global session is used for the entire process lifetime — upstream MCP servers connect once and stay connected until `pctx` exits.
23
+ - Session server (`pctx start`): upstream connection pools are now scoped per code mode session — created on first use and cleaned up when the session is deleted.
24
+ - `ExecuteTypescriptOutput` now includes a `trace` field: a structured record of everything that happened during the execution — the type-check phase, each upstream MCP tool call (including whether the client was served from the connection pool cache), and each callback invocation — all with start/end timestamps.
25
+
26
+ ### Changed
27
+
28
+ ### Fixed
29
+ ## [v0.6.0] - 2026-03-13
30
+
31
+ ### Added
32
+
33
+ - Python `@tool` decorator now parses docstrings (Google, NumPy, reStructuredText, and Epydoc formats) to extract parameter descriptions, return value descriptions, and detailed function descriptions into tool schemas
34
+ - Make code mode config and all tools / descriptions easily configurable from python client
35
+ - `ToolDisclosure` support in python client and unified mcp with `pctx mcp start`
36
+
37
+ ### Changed
38
+
39
+ - Centralized tool descriptions and workflows in root of the repo and loaded by the various `pctx` surfaces.
40
+ - Unified MCP server no longer returns structured content, most agent frameworks prioritize this, and the structured content is x2 the number of tokens than just the code-mode code
41
+
42
+ ### Fixed
43
+
44
+ - Various `pctx mcp dev` rendering issues.
16
45
  ## [v0.5.0] - 2026-02-14
17
46
 
18
47
  ### Added
@@ -29,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
29
58
  - When removing a websocket session, graceful cancel of all pending client tool executions
30
59
 
31
60
  - JS runtime race condition by moving the V8 mutex to be held for the entire typecheck/execute process. This previously caused a panic: `../../../../third_party/libc++/src/include/__vector/vector.h:416: libc++ Hardening assertion __n < size() failed: vector[] index out of bounds`
61
+
32
62
  ## [v0.4.3] - 2026-01-27
33
63
 
34
64
  ### Added
package/README.md CHANGED
@@ -132,7 +132,7 @@ console.log(`Found ${orders.length} orders`);
132
132
  ## Features
133
133
 
134
134
  - **Code Mode interface**: Tools exposed as code functions for efficient agent interaction. See [Code Mode Guide](docs/code-mode.md).
135
- - **Upstream MCP server aggregation**: Connect to multiple MCP servers through a single interface. See [Upstream MCP Servers Guide](docs/upstream-mcp-servers.md).
135
+ - **Upstream MCP server aggregation**: Connect to multiple MCP servers through a single interface, with persistent upstream sessions across `execute_typescript` calls. See [Upstream MCP Servers Guide](docs/upstream-mcp-servers.md).
136
136
  - **Simple config with CLI**: Create the pctx.json config with a simple CLI. pctx.json manages auth, upstream MCPs, logging, and more. See [Config Guide](docs/config.md).
137
137
  - **Secure authentication**: Source secrets from environment variables, system keychain, and external commands. See [Authentication Section](docs/config.md#authentication) in the CLI configuration docs for more details.
138
138
 
@@ -24,7 +24,7 @@
24
24
  "hasInstallScript": true,
25
25
  "license": "MIT",
26
26
  "name": "@portofcontext/pctx",
27
- "version": "0.5.0"
27
+ "version": "0.7.0"
28
28
  },
29
29
  "node_modules/@isaacs/balanced-match": {
30
30
  "engines": {
@@ -897,5 +897,5 @@
897
897
  }
898
898
  },
899
899
  "requires": true,
900
- "version": "0.5.0"
900
+ "version": "0.7.0"
901
901
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.5.0",
2
+ "artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.7.0",
3
3
  "bin": {
4
4
  "generate-cli-docs": "run-generate-cli-docs.js",
5
5
  "pctx": "run-pctx.js"
@@ -92,7 +92,7 @@
92
92
  "zipExt": ".tar.gz"
93
93
  }
94
94
  },
95
- "version": "0.5.0",
95
+ "version": "0.7.0",
96
96
  "volta": {
97
97
  "node": "18.14.1",
98
98
  "npm": "9.5.0"