@ontrails/mcp 1.0.0-beta.39 → 1.0.0-beta.41
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 +11 -0
- package/README.md +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ontrails/mcp
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.41
|
|
4
|
+
|
|
5
|
+
## 1.0.0-beta.40
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- [`5adb995`](https://github.com/outfitter-dev/trails/commit/5adb99551c2dda6190d46cce7f60bb08d63c99aa): Complete the v1 hard cutover from the authored `blaze` field to
|
|
10
|
+
`implementation` across trail contracts, surface projections, tests, examples,
|
|
11
|
+
and public source-analysis helpers. Existing applications must rename authored
|
|
12
|
+
trail behavior fields and direct trail-object access before upgrading.
|
|
13
|
+
|
|
3
14
|
## 1.0.0-beta.39
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ const greet = trail('greet', {
|
|
|
20
20
|
name: 'Ada',
|
|
21
21
|
},
|
|
22
22
|
],
|
|
23
|
-
|
|
23
|
+
implementation: (input) => Result.ok({ greeting: `Hello, ${input.name}!` }),
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
const graph = topo('myapp', { greet });
|
|
@@ -112,15 +112,15 @@ Trail IDs become MCP tool names with the app prefix: `entity.show` in app `myapp
|
|
|
112
112
|
|
|
113
113
|
## Resource resolution
|
|
114
114
|
|
|
115
|
-
Declared resources on each trail are resolved into the context before the
|
|
115
|
+
Declared resources on each trail are resolved into the context before the implementation receives input.
|
|
116
116
|
|
|
117
117
|
## Progress bridge
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
Implementations report progress through `ctx.progress`. On MCP, these bridge to `notifications/progress` when the client sends a `progressToken`:
|
|
120
120
|
|
|
121
121
|
```typescript
|
|
122
122
|
const importTrail = trail('data.import', {
|
|
123
|
-
|
|
123
|
+
implementation: async (input, ctx) => {
|
|
124
124
|
for (let i = 0; i < items.length; i++) {
|
|
125
125
|
await processItem(items[i]);
|
|
126
126
|
ctx.progress?.({ type: 'progress', current: i + 1, total: items.length });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ontrails/mcp",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.41",
|
|
4
4
|
"files": [
|
|
5
5
|
"src/**/*.ts",
|
|
6
6
|
"!src/**/__tests__/**",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ontrails/core": "^1.0.0-beta.
|
|
25
|
+
"@ontrails/core": "^1.0.0-beta.41"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.28.0",
|