@kya-os/mcp-i 1.6.4-canary.slugfix.0 → 1.6.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/dist/cli-adapter/index.js +1 -10
- package/dist/runtime/adapter-express.js +7 -1
- package/dist/runtime/adapter-express.js.LICENSE.txt +7 -2
- package/dist/runtime/adapter-nextjs.js +7 -1
- package/dist/runtime/adapter-nextjs.js.LICENSE.txt +188 -1
- package/dist/runtime/http.js +7 -1
- package/dist/runtime/http.js.LICENSE.txt +7 -2
- package/dist/runtime/session.js +2 -0
- package/dist/runtime/stdio.js +7 -1
- package/dist/runtime/stdio.js.LICENSE.txt +234 -1
- package/dist/runtime/utils/server.d.ts +17 -0
- package/dist/runtime/utils/tools.js +1 -0
- package/package.json +5 -5
|
@@ -1 +1,234 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* accepts
|
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* body-parser
|
|
10
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
11
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
12
|
+
* MIT Licensed
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* body-parser
|
|
17
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
18
|
+
* MIT Licensed
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/*!
|
|
22
|
+
* bytes
|
|
23
|
+
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
24
|
+
* Copyright(c) 2015 Jed Watson
|
|
25
|
+
* MIT Licensed
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/*!
|
|
29
|
+
* content-disposition
|
|
30
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
31
|
+
* MIT Licensed
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/*!
|
|
35
|
+
* content-type
|
|
36
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
37
|
+
* MIT Licensed
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/*!
|
|
41
|
+
* cookie
|
|
42
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
43
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
44
|
+
* MIT Licensed
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/*!
|
|
48
|
+
* depd
|
|
49
|
+
* Copyright(c) 2014-2018 Douglas Christopher Wilson
|
|
50
|
+
* MIT Licensed
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/*!
|
|
54
|
+
* ee-first
|
|
55
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
56
|
+
* MIT Licensed
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/*!
|
|
60
|
+
* encodeurl
|
|
61
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
62
|
+
* MIT Licensed
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/*!
|
|
66
|
+
* escape-html
|
|
67
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
68
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
69
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
70
|
+
* MIT Licensed
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/*!
|
|
74
|
+
* etag
|
|
75
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
76
|
+
* MIT Licensed
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/*!
|
|
80
|
+
* express
|
|
81
|
+
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
82
|
+
* Copyright(c) 2013 Roman Shtylman
|
|
83
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
84
|
+
* MIT Licensed
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/*!
|
|
88
|
+
* express
|
|
89
|
+
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
90
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
91
|
+
* MIT Licensed
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/*!
|
|
95
|
+
* finalhandler
|
|
96
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
97
|
+
* MIT Licensed
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/*!
|
|
101
|
+
* forwarded
|
|
102
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
103
|
+
* MIT Licensed
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/*!
|
|
107
|
+
* fresh
|
|
108
|
+
* Copyright(c) 2012 TJ Holowaychuk
|
|
109
|
+
* Copyright(c) 2016-2017 Douglas Christopher Wilson
|
|
110
|
+
* MIT Licensed
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/*!
|
|
114
|
+
* http-errors
|
|
115
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
116
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
117
|
+
* MIT Licensed
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/*!
|
|
121
|
+
* media-typer
|
|
122
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
123
|
+
* MIT Licensed
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
/*!
|
|
127
|
+
* mime-db
|
|
128
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
129
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
130
|
+
* MIT Licensed
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
/*!
|
|
134
|
+
* mime-types
|
|
135
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
136
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
137
|
+
* MIT Licensed
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/*!
|
|
141
|
+
* negotiator
|
|
142
|
+
* Copyright(c) 2012 Federico Romero
|
|
143
|
+
* Copyright(c) 2012-2014 Isaac Z. Schlueter
|
|
144
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145
|
+
* MIT Licensed
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
/*!
|
|
149
|
+
* on-finished
|
|
150
|
+
* Copyright(c) 2013 Jonathan Ong
|
|
151
|
+
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
152
|
+
* MIT Licensed
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/*!
|
|
156
|
+
* parseurl
|
|
157
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
158
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
159
|
+
* MIT Licensed
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
/*!
|
|
163
|
+
* proxy-addr
|
|
164
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
165
|
+
* MIT Licensed
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
/*!
|
|
169
|
+
* range-parser
|
|
170
|
+
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
171
|
+
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
172
|
+
* MIT Licensed
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/*!
|
|
176
|
+
* raw-body
|
|
177
|
+
* Copyright(c) 2013-2014 Jonathan Ong
|
|
178
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
179
|
+
* MIT Licensed
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
/*!
|
|
183
|
+
* router
|
|
184
|
+
* Copyright(c) 2013 Roman Shtylman
|
|
185
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
186
|
+
* MIT Licensed
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
/*!
|
|
190
|
+
* send
|
|
191
|
+
* Copyright(c) 2012 TJ Holowaychuk
|
|
192
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
193
|
+
* MIT Licensed
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/*!
|
|
197
|
+
* serve-static
|
|
198
|
+
* Copyright(c) 2010 Sencha Inc.
|
|
199
|
+
* Copyright(c) 2011 TJ Holowaychuk
|
|
200
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
201
|
+
* MIT Licensed
|
|
202
|
+
*/
|
|
203
|
+
|
|
204
|
+
/*!
|
|
205
|
+
* statuses
|
|
206
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
207
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
208
|
+
* MIT Licensed
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
/*!
|
|
212
|
+
* toidentifier
|
|
213
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
214
|
+
* MIT Licensed
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
/*!
|
|
218
|
+
* type-is
|
|
219
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
220
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
221
|
+
* MIT Licensed
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/*!
|
|
225
|
+
* unpipe
|
|
226
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
227
|
+
* MIT Licensed
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
/*!
|
|
231
|
+
* vary
|
|
232
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
233
|
+
* MIT Licensed
|
|
234
|
+
*/
|
|
@@ -23,9 +23,18 @@ export declare function createServer(): Promise<McpServer<{
|
|
|
23
23
|
method: string;
|
|
24
24
|
params?: {
|
|
25
25
|
[x: string]: unknown;
|
|
26
|
+
task?: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
ttl?: number | null | undefined;
|
|
29
|
+
pollInterval?: number | undefined;
|
|
30
|
+
} | undefined;
|
|
26
31
|
_meta?: {
|
|
27
32
|
[x: string]: unknown;
|
|
28
33
|
progressToken?: string | number | undefined;
|
|
34
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
taskId: string;
|
|
37
|
+
} | undefined;
|
|
29
38
|
} | undefined;
|
|
30
39
|
} | undefined;
|
|
31
40
|
}, {
|
|
@@ -34,11 +43,19 @@ export declare function createServer(): Promise<McpServer<{
|
|
|
34
43
|
[x: string]: unknown;
|
|
35
44
|
_meta?: {
|
|
36
45
|
[x: string]: unknown;
|
|
46
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
taskId: string;
|
|
49
|
+
} | undefined;
|
|
37
50
|
} | undefined;
|
|
38
51
|
} | undefined;
|
|
39
52
|
}, {
|
|
40
53
|
[x: string]: unknown;
|
|
41
54
|
_meta?: {
|
|
42
55
|
[x: string]: unknown;
|
|
56
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
taskId: string;
|
|
59
|
+
} | undefined;
|
|
43
60
|
} | undefined;
|
|
44
61
|
}>>;
|
|
@@ -549,6 +549,7 @@ async function addToolsToServer(server, toolModules, identityConfig) {
|
|
|
549
549
|
timestamp,
|
|
550
550
|
lastActivity: timestamp,
|
|
551
551
|
ttlMinutes: 30,
|
|
552
|
+
identityState: "anonymous", // Phase 5: Synthesized sessions are anonymous
|
|
552
553
|
};
|
|
553
554
|
// Determine scopeId from tool protection configuration
|
|
554
555
|
// This enables AgentShield tool auto-discovery
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/mcp-i",
|
|
3
|
-
"version": "1.6.4
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "The TypeScript MCP framework with identity features built-in",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"model-context-protocol"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@kya-os/contracts": "^1.6.
|
|
67
|
-
"@kya-os/mcp-i-core": "^1.3.
|
|
66
|
+
"@kya-os/contracts": "^1.6.5",
|
|
67
|
+
"@kya-os/mcp-i-core": "^1.3.12",
|
|
68
68
|
"@modelcontextprotocol/sdk": "^1.11.4",
|
|
69
69
|
"@swc/core": "^1.11.24",
|
|
70
70
|
"@types/express": "^5.0.1",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"ts-loader": "^9.4.2",
|
|
118
118
|
"typescript": "^5.3.0",
|
|
119
119
|
"vitest": "^4.0.5",
|
|
120
|
-
"zod": "^3.
|
|
120
|
+
"zod": "^3.25.76"
|
|
121
121
|
},
|
|
122
122
|
"engines": {
|
|
123
123
|
"node": ">=20.0.0"
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"json-canonicalize": "^2.0.0",
|
|
127
127
|
"swc-loader": "^0.2.6",
|
|
128
|
-
"zod": "^3.
|
|
128
|
+
"zod": "^3.25.76"
|
|
129
129
|
},
|
|
130
130
|
"author": "MCP-I Team",
|
|
131
131
|
"license": "MIT",
|