@vess-id/vess 0.2.0-alpha.29 → 0.2.0-alpha.30
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.factory.d.ts","sourceRoot":"","sources":["../../../src/adapter/mcp/mcp-server.factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AAuDnE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QAChC,QAAQ,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;QACnE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAC1B,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC;QAAC,kBAAkB,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC,CAAA;IAC/G,mBAAmB,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACzH,kBAAkB,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,KAAK,CAA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;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,CAqHlE"}
|
|
@@ -56,6 +56,20 @@ function createMcpServer(handler) {
|
|
|
56
56
|
name: 'VESS',
|
|
57
57
|
version: version_1.CLI_VERSION,
|
|
58
58
|
});
|
|
59
|
+
// Migrated from the deprecated `server.tool(name, description, schema, cb)`
|
|
60
|
+
// overload to the v1.29+ `server.registerTool(name, config, cb)` API.
|
|
61
|
+
// Two reasons:
|
|
62
|
+
// 1. `server.tool()` is marked @deprecated in @modelcontextprotocol/sdk
|
|
63
|
+
// 1.29 (all six overloads — see dist/esm/server/mcp.d.ts).
|
|
64
|
+
// 2. The old overload's Zod schema inference blew up after the SDK
|
|
65
|
+
// bump in PR #274, producing TS2589 "Type instantiation is
|
|
66
|
+
// excessively deep and possibly infinite" on this file's three
|
|
67
|
+
// call sites. `registerTool` takes a simpler config shape whose
|
|
68
|
+
// inference doesn't recurse.
|
|
69
|
+
// Cast through `(...args: any[]) => any` to sidestep the generic
|
|
70
|
+
// constraint on `inputSchema` — mirrors the pattern already in use
|
|
71
|
+
// at packages/remote-mcp/src/server/mcp-server.factory.ts:94.
|
|
72
|
+
const registerTool = server.registerTool.bind(server);
|
|
59
73
|
const formatResult = (result) => {
|
|
60
74
|
if (result.waitingForApproval) {
|
|
61
75
|
return {
|
|
@@ -82,17 +96,20 @@ function createMcpServer(handler) {
|
|
|
82
96
|
isError: true,
|
|
83
97
|
};
|
|
84
98
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
.describe('
|
|
99
|
+
registerTool('aidentity_call_tool', {
|
|
100
|
+
description: CALL_TOOL_DESCRIPTION,
|
|
101
|
+
inputSchema: {
|
|
102
|
+
tool: toolEnum,
|
|
103
|
+
action: zod_1.z.string().describe(ACTION_FORMAT_DESC),
|
|
104
|
+
parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional().describe('Tool-specific parameters'),
|
|
105
|
+
approval: zod_1.z.object({
|
|
106
|
+
token: zod_1.z.string().describe('HMAC-signed approval token from a previous approval_required response'),
|
|
107
|
+
choice: zod_1.z.enum(['one_time', 'persistent', 'deny_once', 'deny_persistent']).describe('User approval choice'),
|
|
108
|
+
vcTTLMinutes: zod_1.z.number().min(5).max(1440).optional().describe('Custom VC TTL in minutes (5-1440)'),
|
|
109
|
+
}).optional().describe('Approval response — only provide when re-calling after an approval_required response'),
|
|
110
|
+
pendingRequestId: zod_1.z.string().optional()
|
|
111
|
+
.describe('Request ID from a previous waiting_for_approval response. Use to check if approval was completed.'),
|
|
112
|
+
},
|
|
96
113
|
}, async (args) => {
|
|
97
114
|
const result = await handler.callTool({
|
|
98
115
|
tool: args.tool,
|
|
@@ -103,11 +120,14 @@ function createMcpServer(handler) {
|
|
|
103
120
|
});
|
|
104
121
|
return formatResult(result);
|
|
105
122
|
});
|
|
106
|
-
|
|
107
|
-
'
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
123
|
+
registerTool('aidentity_request_permission', {
|
|
124
|
+
description: 'OPTIONAL: Pre-request permission for multiple actions at once. ' +
|
|
125
|
+
'In most cases, use aidentity_call_tool directly instead — it handles permissions automatically.',
|
|
126
|
+
inputSchema: {
|
|
127
|
+
tool: toolEnum,
|
|
128
|
+
actions: zod_1.z.array(zod_1.z.string().describe(ACTION_FORMAT_DESC))
|
|
129
|
+
.describe('One or more actions to request permission for'),
|
|
130
|
+
},
|
|
111
131
|
}, async (args) => {
|
|
112
132
|
const result = await handler.issueToolPermission({
|
|
113
133
|
tool: args.tool,
|
|
@@ -115,7 +135,16 @@ function createMcpServer(handler) {
|
|
|
115
135
|
});
|
|
116
136
|
return formatResult(result);
|
|
117
137
|
});
|
|
118
|
-
|
|
138
|
+
registerTool('aidentity_list_available_tools', {
|
|
139
|
+
description: 'List all available tools and their supported actions.',
|
|
140
|
+
// Explicit empty shape mirrors the same pattern at
|
|
141
|
+
// packages/remote-mcp/src/server/mcp-server.factory.ts:197. The
|
|
142
|
+
// `any` cast above lets TS accept a missing `inputSchema`, but
|
|
143
|
+
// at runtime SDK 1.29 still wants the key present — omitting it
|
|
144
|
+
// silently works today but becomes a footgun if the SDK
|
|
145
|
+
// tightens the contract.
|
|
146
|
+
inputSchema: {},
|
|
147
|
+
}, async () => {
|
|
119
148
|
const result = await handler.listAvailableTools();
|
|
120
149
|
return formatResult(result);
|
|
121
150
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.factory.js","sourceRoot":"","sources":["../../../src/adapter/mcp/mcp-server.factory.ts"],"names":[],"mappings":";;AAmEA,
|
|
1
|
+
{"version":3,"file":"mcp-server.factory.js","sourceRoot":"","sources":["../../../src/adapter/mcp/mcp-server.factory.ts"],"names":[],"mappings":";;AAmEA,0CAqHC;AAxLD,oEAAmE;AACnE,sDAAiF;AACjF,6BAAuB;AACvB,kDAAkD;AAElD,oEAAoE;AACpE,MAAM,QAAQ,GAAG,OAAC,CAAC,IAAI,CAAC,6BAAwC,CAAC,CAAA;AAEjE,4DAA4D;AAC5D,MAAM,kBAAkB,GACtB,+DAA+D;IAC/D,IAAA,uCAAyB,GAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAExC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mFAwCqD,CAAA;AAcnF,SAAgB,eAAe,CAAC,OAAuB;IACrD,MAAM,MAAM,GAAG,IAAI,kBAAS,CAAC;QAC3B,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,qBAAW;KACrB,CAAC,CAAA;IAEF,4EAA4E;IAC5E,sEAAsE;IACtE,eAAe;IACf,0EAA0E;IAC1E,gEAAgE;IAChE,qEAAqE;IACrE,gEAAgE;IAChE,oEAAoE;IACpE,qEAAqE;IACrE,kCAAkC;IAClC,iEAAiE;IACjE,mEA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;YACd,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;iBACtD,QAAQ,CAAC,+CAA+C,CAAC;SAC7D;KACF,EACD,KAAK,EAAE,IAAS,EAAE,EAAE;QAClB,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,mBAAmB,CAAC;YAC/C,IAAI,EAAE,IAAI,CAAC,IAAc;YACzB,OAAO,EAAE,IAAI,CAAC,OAAmB;SAClC,CAAC,CAAA;QACF,OAAO,YAAY,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC,CACF,CAAA;IAED,YAAY,CACV,gCAAgC,EAChC;QACE,WAAW,EAAE,uDAAuD;QACpE,mDAAmD;QACnD,gEAAgE;QAChE,+DAA+D;QAC/D,gEAAgE;QAChE,wDAAwD;QACxD,yBAAyB;QACzB,WAAW,EAAE,EAAE;KAChB,EACD,KAAK,IAAI,EAAE;QACT,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,kBAAkB,EAAE,CAAA;QACjD,OAAO,YAAY,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC,CACF,CAAA;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vess-id/vess",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.30",
|
|
4
4
|
"description": "VESS local AI agent runtime — manages agent identity, permissions, and execution boundaries",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"semantic-release": "semantic-release"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
20
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
21
21
|
"@napi-rs/keyring": "^1.2.0",
|
|
22
22
|
"@sd-jwt/crypto-nodejs": "^0.15.0",
|
|
23
23
|
"@sd-jwt/sd-jwt-vc": "^0.15.1",
|
|
24
|
-
"@vess-id/ai-identity": "0.5.0-alpha.
|
|
25
|
-
"better-sqlite3": "^11.
|
|
26
|
-
"commander": "^12.
|
|
27
|
-
"zod": "^3.
|
|
24
|
+
"@vess-id/ai-identity": "0.5.0-alpha.13",
|
|
25
|
+
"better-sqlite3": "^11.10.0",
|
|
26
|
+
"commander": "^12.1.0",
|
|
27
|
+
"zod": "^3.25.76"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"node-mac-auth": "^1.
|
|
30
|
+
"node-mac-auth": "^1.1.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@semantic-release/changelog": "^6.0.3",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"@semantic-release/exec": "^7.1.0",
|
|
36
36
|
"@semantic-release/git": "^10.0.1",
|
|
37
37
|
"@semantic-release/github": "^12.0.6",
|
|
38
|
-
"@semantic-release/npm": "^13.
|
|
38
|
+
"@semantic-release/npm": "^13.1.5",
|
|
39
39
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
40
|
-
"@types/better-sqlite3": "^7.6.
|
|
41
|
-
"@types/jest": "^29.5.
|
|
42
|
-
"@types/node": "^22.
|
|
43
|
-
"conventional-changelog-conventionalcommits": "^9.3.
|
|
40
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
41
|
+
"@types/jest": "^29.5.14",
|
|
42
|
+
"@types/node": "^22.19.17",
|
|
43
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"semantic-release": "^25.0.3",
|
|
46
|
-
"ts-jest": "^29.
|
|
47
|
-
"typescript": "^5.3
|
|
46
|
+
"ts-jest": "^29.4.9",
|
|
47
|
+
"typescript": "^5.9.3"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=22.0.0"
|