@portofcontext/pctx 0.1.2 → 0.1.3

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
@@ -7,13 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [UNRELEASED] - YYYY-MM-DD
9
9
 
10
- ## [0.1.2] - 2025-12-10
10
+ ## [v0.1.3] - 2025-11-13
11
+
12
+ ### Added
13
+
14
+ - `pctx add` now accepts `--header` and `--bearer` to add authentication without interaction
15
+ - `pctx.json` config now accepts version which gets returned as the MCP's version in the `initialize` MCP response
16
+ - add typescript type check runtime capabilities including more typical string/array utils
17
+ - tool descriptions updated for consistent behavior
18
+
19
+ ### Fixed
20
+
21
+ - Catch user cancellations when adding MCP servers in `pctx init`
22
+
23
+ ## [v0.1.2] - 2025-11-12
11
24
 
12
25
  ### Fixed
13
26
 
14
27
  - Synced deno runtime op stubs and JS config interfaces to match dev, supporting auth in built CLI.
15
28
 
16
- ## [0.1.1] - 2025-11-10
29
+ ## [v0.1.1] - 2025-11-10
17
30
 
18
31
  ### Added
19
32
 
@@ -31,13 +44,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
44
  - No filesystem, environment, or system access beyond allowed hosts
32
45
  - MCP clients are authenticated, credentials hidden from LLMs an Deno env
33
46
 
34
- ## [0.1.0] - 2025-11-10
47
+ ## [v0.1.0] - 2025-11-10
35
48
 
36
49
  ### Added
37
50
 
38
51
  - Initial public release
39
52
 
40
- [Unreleased]: https://github.com/portofcontext/pctx/compare/v0.1.2...HEAD
41
- [0.1.2]: https://github.com/portofcontext/pctx/compare/v0.1.2
42
- [0.1.1]: https://github.com/portofcontext/pctx/compare/v0.1.1
43
- [0.1.0]: https://github.com/portofcontext/pctx/releases/tag/v0.1.0
53
+ [Unreleased]: https://github.com/portofcontext/pctx/compare/v0.1.3...HEAD
54
+ [v0.1.3]: https://github.com/portofcontext/pctx/compare/v0.1.3
55
+ [v0.1.2]: https://github.com/portofcontext/pctx/compare/v0.1.2
56
+ [v0.1.1]: https://github.com/portofcontext/pctx/compare/v0.1.1
57
+ [v0.1.0]: https://github.com/portofcontext/pctx/releases/tag/v0.1.0
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Made by](https://img.shields.io/badge/MADE%20BY-Port%20of%20Context-1e40af.svg?style=for-the-badge&labelColor=0c4a6e)](https://portofcontext.com)
6
6
 
7
- [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/portofcontext/pctx/blob/main/LICENSE)
7
+ ![NPM Version](https://img.shields.io/npm/v/%40portofcontext%2Fpctx)
8
8
  [![Rust](https://img.shields.io/badge/rust-1.89%2B-blue.svg)](https://www.rust-lang.org)
9
9
  [![CI](https://github.com/portofcontext/pctx/workflows/CI/badge.svg)](https://github.com/portofcontext/pctx/actions)
10
10
 
@@ -14,7 +14,6 @@
14
14
 
15
15
  The open source framework to connect AI agents to tools and services with [code mode](#what-is-code-mode)
16
16
 
17
-
18
17
  </div>
19
18
 
20
19
  ## Install
@@ -45,6 +44,7 @@ pctx start
45
44
  ```
46
45
 
47
46
  For complete CLI documentation, see [CLI.md](docs/CLI.md).
47
+ For configuration options, see [Configuration Guide](docs/config.md).
48
48
 
49
49
  ## What is pctx?
50
50
 
@@ -55,15 +55,17 @@ For complete CLI documentation, see [CLI.md](docs/CLI.md).
55
55
  Code mode replaces sequential tool calling with code execution. Rather than an agent calling tools one at a time and passing results through its context window, it writes TypeScript code that executes in a sandbox. Read Anthropic's overview [here](https://www.anthropic.com/engineering/code-execution-with-mcp).
56
56
 
57
57
  **Traditional MCP flow**:
58
+
58
59
  1. Agent calls `getSheet(id)`
59
60
  2. Server returns 1000 rows → agent's context
60
61
  3. Agent calls `filterRows(criteria)`
61
62
  4. Server returns 50 rows → agent's context
62
63
 
63
64
  **With Code Mode**:
65
+
64
66
  ```typescript
65
- const sheet = await gdrive.getSheet({ sheetId: 'abc' });
66
- const orders = sheet.filter(row => row.status === 'pending');
67
+ const sheet = await gdrive.getSheet({ sheetId: "abc" });
68
+ const orders = sheet.filter((row) => row.status === "pending");
67
69
  console.log(`Found ${orders.length} orders`);
68
70
  ```
69
71
 
@@ -116,16 +118,14 @@ console.log(`Found ${orders.length} orders`);
116
118
  └──────┴──────┴──────┴──────┘
117
119
  ```
118
120
 
119
-
120
121
  ## Security
121
122
 
122
123
  - LLM generated code runs in an isolated [Deno](https://deno.com) sandbox that can only access the network hosts specified in the configuration file.
123
124
  - No filesystem, environment, network (beyond allowed hosts), or system access.
124
125
  - MCP clients are authenticated in pctx. LLMs can never see your auth.
125
126
 
126
-
127
127
  ## Learn More
128
128
 
129
129
  - [Model Context Protocol (MCP)](https://modelcontextprotocol.io/)
130
130
  - [Code execution with MCP by Anthropic](https://www.anthropic.com/engineering/code-execution-with-mcp)
131
- - [Code Mode explanation by Cloudflare](https://blog.cloudflare.com/code-mode/)
131
+ - [Code Mode explanation by Cloudflare](https://blog.cloudflare.com/code-mode/)
@@ -24,7 +24,7 @@
24
24
  "hasInstallScript": true,
25
25
  "license": "MIT",
26
26
  "name": "@portofcontext/pctx",
27
- "version": "0.1.2"
27
+ "version": "0.1.3"
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.2"
900
+ "version": "0.1.3"
901
901
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.1.2",
2
+ "artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.1.3",
3
3
  "bin": {
4
4
  "generate-cli-docs": "run-generate-cli-docs.js",
5
5
  "pctx": "run-pctx.js"
@@ -76,7 +76,7 @@
76
76
  "zipExt": ".tar.gz"
77
77
  }
78
78
  },
79
- "version": "0.1.2",
79
+ "version": "0.1.3",
80
80
  "volta": {
81
81
  "node": "18.14.1",
82
82
  "npm": "9.5.0"