@portofcontext/pctx 0.1.2 → 0.1.4
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 +38 -7
- package/README.md +7 -7
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -10
package/CHANGELOG.md
CHANGED
|
@@ -7,13 +7,42 @@ 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
|
-
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [v0.1.4] - 2025-11-14
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- nasa mcp server example with scripts for running/deploying pctx
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- ts code ignore syncing
|
|
23
|
+
- remove slow intel mac runner
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [v0.1.3] - 2025-11-13
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- `pctx add` now accepts `--header` and `--bearer` to add authentication without interaction
|
|
31
|
+
- `pctx.json` config now accepts version which gets returned as the MCP's version in the `initialize` MCP response
|
|
32
|
+
- add typescript type check runtime capabilities including more typical string/array utils
|
|
33
|
+
- tool descriptions updated for consistent behavior
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Catch user cancellations when adding MCP servers in `pctx init`
|
|
38
|
+
|
|
39
|
+
## [v0.1.2] - 2025-11-12
|
|
11
40
|
|
|
12
41
|
### Fixed
|
|
13
42
|
|
|
14
43
|
- Synced deno runtime op stubs and JS config interfaces to match dev, supporting auth in built CLI.
|
|
15
44
|
|
|
16
|
-
## [
|
|
45
|
+
## [v0.1.1] - 2025-11-10
|
|
17
46
|
|
|
18
47
|
### Added
|
|
19
48
|
|
|
@@ -31,13 +60,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
31
60
|
- No filesystem, environment, or system access beyond allowed hosts
|
|
32
61
|
- MCP clients are authenticated, credentials hidden from LLMs an Deno env
|
|
33
62
|
|
|
34
|
-
## [
|
|
63
|
+
## [v0.1.0] - 2025-11-10
|
|
35
64
|
|
|
36
65
|
### Added
|
|
37
66
|
|
|
38
67
|
- Initial public release
|
|
39
68
|
|
|
40
|
-
[Unreleased]: https://github.com/portofcontext/pctx/compare/v0.1.
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
69
|
+
[Unreleased]: https://github.com/portofcontext/pctx/compare/v0.1.4...HEAD
|
|
70
|
+
[v0.1.4]: https://github.com/portofcontext/pctx/compare/v0.1.4
|
|
71
|
+
[v0.1.3]: https://github.com/portofcontext/pctx/compare/v0.1.3
|
|
72
|
+
[v0.1.2]: https://github.com/portofcontext/pctx/compare/v0.1.2
|
|
73
|
+
[v0.1.1]: https://github.com/portofcontext/pctx/compare/v0.1.1
|
|
74
|
+
[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
|
[](https://portofcontext.com)
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/@portofcontext/pctx)
|
|
8
8
|
[](https://www.rust-lang.org)
|
|
9
9
|
[](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:
|
|
66
|
-
const orders = sheet.filter(row => row.status ===
|
|
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/)
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"hasInstallScript": true,
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"name": "@portofcontext/pctx",
|
|
27
|
-
"version": "0.1.
|
|
27
|
+
"version": "0.1.4"
|
|
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.
|
|
900
|
+
"version": "0.1.4"
|
|
901
901
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.1.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/portofcontext/pctx/releases/download/v0.1.4",
|
|
3
3
|
"bin": {
|
|
4
4
|
"generate-cli-docs": "run-generate-cli-docs.js",
|
|
5
5
|
"pctx": "run-pctx.js"
|
|
@@ -59,14 +59,6 @@
|
|
|
59
59
|
},
|
|
60
60
|
"zipExt": ".tar.gz"
|
|
61
61
|
},
|
|
62
|
-
"x86_64-apple-darwin": {
|
|
63
|
-
"artifactName": "pctx-x86_64-apple-darwin.tar.gz",
|
|
64
|
-
"bins": {
|
|
65
|
-
"generate-cli-docs": "generate-cli-docs",
|
|
66
|
-
"pctx": "pctx"
|
|
67
|
-
},
|
|
68
|
-
"zipExt": ".tar.gz"
|
|
69
|
-
},
|
|
70
62
|
"x86_64-unknown-linux-gnu": {
|
|
71
63
|
"artifactName": "pctx-x86_64-unknown-linux-gnu.tar.gz",
|
|
72
64
|
"bins": {
|
|
@@ -76,7 +68,7 @@
|
|
|
76
68
|
"zipExt": ".tar.gz"
|
|
77
69
|
}
|
|
78
70
|
},
|
|
79
|
-
"version": "0.1.
|
|
71
|
+
"version": "0.1.4",
|
|
80
72
|
"volta": {
|
|
81
73
|
"node": "18.14.1",
|
|
82
74
|
"npm": "9.5.0"
|