@portofcontext/pctx 0.1.4 → 0.2.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
@@ -13,16 +13,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
  ### Fixed
14
14
 
15
15
 
16
+ ## [v0.2.1] - 2025-11-25
17
+
18
+ ### Added
19
+
20
+ - All tools return define `outputSchema` and return `structuredOutput` alongside the text content.
21
+
22
+ ### Fixed
23
+
24
+ - `pctx add`
25
+ - Prefer env var over keychain auth in interactive upstream mcp adding
26
+ - `pctx dev`
27
+ - Better error state reporting (e.g. invalid config, port already in use)
28
+ - Scroll out of bounds for tool details panel
29
+
30
+
31
+ ### Changed
32
+
33
+ - Auth type `custom`, changed to `headers` to be more descriptive. `custom` retained as an alias for backwards compatibility
34
+
35
+ ## [v0.2.0] - 2025-11-19
36
+
37
+ ### Added
38
+
39
+ - `pctx dev` command with Terminal UI to explore CodeMode interface and track requests when running PCTX locally
40
+ - `logger` configuration in `pctx.json` (`pctx_config::logger::LoggerConfig`) that supports configuring stdout logging level, format, and colorization
41
+ - `telemetry` configuration in `pctx.json` (`pctx_config::telemetry::TelemetryConfig`) that supports enabling exporters for traces and metrics
42
+ - `examples/telemetry` example docker compose setup for Tempo/Prometheus/Grafana to try out these new configs
43
+
16
44
  ## [v0.1.4] - 2025-11-14
17
45
 
18
46
  ### Added
47
+
19
48
  - nasa mcp server example with scripts for running/deploying pctx
20
49
 
21
50
  ### Fixed
51
+
22
52
  - ts code ignore syncing
23
53
  - remove slow intel mac runner
24
54
 
25
-
26
55
  ## [v0.1.3] - 2025-11-13
27
56
 
28
57
  ### Added
@@ -66,7 +95,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
95
 
67
96
  - Initial public release
68
97
 
69
- [Unreleased]: https://github.com/portofcontext/pctx/compare/v0.1.4...HEAD
98
+ [Unreleased]: https://github.com/portofcontext/pctx/compare/v0.2.0...HEAD
99
+ [v0.2.0]: https://github.com/portofcontext/pctx/compare/v0.2.0
70
100
  [v0.1.4]: https://github.com/portofcontext/pctx/compare/v0.1.4
71
101
  [v0.1.3]: https://github.com/portofcontext/pctx/compare/v0.1.3
72
102
  [v0.1.2]: https://github.com/portofcontext/pctx/compare/v0.1.2
package/README.md CHANGED
@@ -6,7 +6,6 @@
6
6
 
7
7
  [![NPM Version](https://img.shields.io/npm/v/%40portofcontext%2Fpctx)](https://www.npmjs.com/package/@portofcontext/pctx)
8
8
  [![Rust](https://img.shields.io/badge/rust-1.89%2B-blue.svg)](https://www.rust-lang.org)
9
- [![CI](https://github.com/portofcontext/pctx/workflows/CI/badge.svg)](https://github.com/portofcontext/pctx/actions)
10
9
 
11
10
  </div>
12
11
 
@@ -22,10 +21,10 @@ The open source framework to connect AI agents to tools and services with [code
22
21
  # Homebrew
23
22
  brew install portofcontext/tap/pctx
24
23
 
25
- # Curl
24
+ # cURL
26
25
  curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/portofcontext/pctx/main/install.sh | sh
27
26
 
28
- # NPM
27
+ # npm
29
28
  npm i -g @portofcontext/pctx
30
29
  ```
31
30
 
@@ -39,13 +38,18 @@ pctx init
39
38
  pctx add my-local-server http://localhost:3000/mcp
40
39
  pctx add stripe https://mcp.stripe.com
41
40
 
42
- # Start the unified MCP server
43
- pctx start
41
+ # Start the unified MCP server in dev mode
42
+ pctx dev
43
+
44
+ # copy the pctx url and connect to agents with --transport http
44
45
  ```
45
46
 
46
47
  For complete CLI documentation, see [CLI.md](docs/CLI.md).
47
48
  For configuration options, see [Configuration Guide](docs/config.md).
48
49
 
50
+ <img width="1020" height="757" alt="Screenshot 2025-11-21 at 11 03 20 AM" src="https://github.com/user-attachments/assets/d61be46d-5a4b-40fd-953a-7dc725266e63" />
51
+
52
+
49
53
  ## What is pctx?
50
54
 
51
55
  `pctx` sits between AI agents and MCP servers. It aggregates multiple upstream MCP servers, handles authentication, and exposes tools through a unified [Code Mode](#what-is-code-mode) interface. Instead of agents managing connections to individual MCP servers, they connect once to pctx.
@@ -75,7 +79,8 @@ console.log(`Found ${orders.length} orders`);
75
79
 
76
80
  - **Code Mode interface**: Tools exposed as TypeScript functions for efficient agent interaction. See [Code Mode Guide](docs/code-mode.md).
77
81
  - **Upstream MCP server aggregation**: Connect to multiple MCP servers through a single interface. See [Upstream MCP Servers Guide](docs/upstream-mcp-servers.md).
78
- - **Secure authentication**: OAuth, environment variables, system keychain, and external commands. See [Authentication Guide](docs/mcp-auth.md).
82
+ - **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).
83
+ - **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.
79
84
 
80
85
  ## Architecture
81
86
 
@@ -124,6 +129,22 @@ console.log(`Found ${orders.length} orders`);
124
129
  - No filesystem, environment, network (beyond allowed hosts), or system access.
125
130
  - MCP clients are authenticated in pctx. LLMs can never see your auth.
126
131
 
132
+ ## Update
133
+
134
+ Depending on the installation method (Homebrew/npm/cURL) the update method is different. Run `which pctx` if you are unsure what you used to install it.
135
+
136
+ ```bash
137
+ # Homebrew update
138
+ brew upgrade pctx
139
+
140
+ # cURL update
141
+ pctx-update
142
+
143
+ # npm update
144
+ npm upgrade -g @portofcontext/pctx
145
+
146
+ ```
147
+
127
148
  ## Learn More
128
149
 
129
150
  - [Model Context Protocol (MCP)](https://modelcontextprotocol.io/)
@@ -24,7 +24,7 @@
24
24
  "hasInstallScript": true,
25
25
  "license": "MIT",
26
26
  "name": "@portofcontext/pctx",
27
- "version": "0.1.4"
27
+ "version": "0.2.1"
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.1.4"
900
+ "version": "0.2.1"
901
901
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.1.4",
2
+ "artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.2.1",
3
3
  "bin": {
4
4
  "generate-cli-docs": "run-generate-cli-docs.js",
5
5
  "pctx": "run-pctx.js"
@@ -68,7 +68,7 @@
68
68
  "zipExt": ".tar.gz"
69
69
  }
70
70
  },
71
- "version": "0.1.4",
71
+ "version": "0.2.1",
72
72
  "volta": {
73
73
  "node": "18.14.1",
74
74
  "npm": "9.5.0"